mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 00:32:51 +02:00
Fix tons of typos
This commit is contained in:
@@ -400,9 +400,9 @@ function processAllHacknetServerEarnings(numCycles: number): number {
|
||||
// hacknetNodes array only contains the IP addresses of the servers.
|
||||
// Also, update the hash rate before processing
|
||||
const ip = Player.hacknetNodes[i];
|
||||
if (ip instanceof HacknetNode) throw new Error(`player nodes should not be HacketNode`);
|
||||
if (ip instanceof HacknetNode) throw new Error(`player nodes should not be HacknetNode`);
|
||||
const hserver = GetServer(ip);
|
||||
if (!(hserver instanceof HacknetServer)) throw new Error(`player nodes shoud not be Server`);
|
||||
if (!(hserver instanceof HacknetServer)) throw new Error(`player nodes should not be Server`);
|
||||
hserver.updateHashRate(Player.mults.hacknet_node_money);
|
||||
const h = hserver.process(numCycles);
|
||||
hashes += h;
|
||||
@@ -536,7 +536,7 @@ export function purchaseHashUpgrade(upgName: string, upgTarget: string, count =
|
||||
break;
|
||||
}
|
||||
case "Exchange for Bladeburner Rank": {
|
||||
// This will throw if player isnt in Bladeburner
|
||||
// This will throw if player isn't in Bladeburner
|
||||
const bladeburner = Player.bladeburner;
|
||||
if (bladeburner === null) {
|
||||
Player.hashManager.refundUpgrade(upgName, count);
|
||||
@@ -546,7 +546,7 @@ export function purchaseHashUpgrade(upgName: string, upgTarget: string, count =
|
||||
break;
|
||||
}
|
||||
case "Exchange for Bladeburner SP": {
|
||||
// This will throw if player isnt in Bladeburner
|
||||
// This will throw if player isn't in Bladeburner
|
||||
const bladeburner = Player.bladeburner;
|
||||
if (bladeburner === null) {
|
||||
Player.hashManager.refundUpgrade(upgName, count);
|
||||
|
||||
Reference in New Issue
Block a user