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

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);

View File

@@ -125,7 +125,7 @@ export class HacknetNode implements IHacknetNode {
return Generic_toJSON("HacknetNode", this);
}
/** Initiatizes a HacknetNode object from a JSON save state. */
/** Initializes a HacknetNode object from a JSON save state. */
static fromJSON(value: IReviverValue): HacknetNode {
return Generic_fromJSON(HacknetNode, value.data);
}

View File

@@ -50,7 +50,7 @@ export class HacknetServer extends BaseServer implements IHacknetNode {
// Total number of hashes earned by this server
totalHashesGenerated = 0;
// Flag indicating wehther this is a purchased server
// Flag indicating whether this is a purchased server
purchasedByPlayer = true;
constructor(params: IConstructorParams = { hostname: "", ip: createRandomIp() }) {

View File

@@ -150,7 +150,7 @@ export class HashManager {
return Generic_toJSON("HashManager", this);
}
// Initiatizes a HashManager object from a JSON save state.
// Initializes a HashManager object from a JSON save state.
static fromJSON(value: IReviverValue): HashManager {
return Generic_fromJSON(HashManager, value.data);
}