Fix tons of typos

This commit is contained in:
Olivier Gagnon
2022-10-09 01:25:31 -04:00
parent f8a3a046de
commit f6f023eeb4
110 changed files with 212 additions and 207 deletions
+4 -4
View File
@@ -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);