BUGFIX: Fix wrong money gain rate of Hacknet node (#1303)

This commit is contained in:
catloversg 2024-05-23 15:45:04 +07:00 committed by GitHub
parent 30c04f8152
commit b42f775493
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -379,6 +379,7 @@ function processAllHacknetNodeEarnings(numCycles: number): number {
for (let i = 0; i < Player.hacknetNodes.length; ++i) {
const node = Player.hacknetNodes[i];
if (typeof node === "string") throw new Error("player node should not be ip string");
node.updateMoneyGainRate(Player.mults.hacknet_node_money);
total += processSingleHacknetNodeEarnings(numCycles, node);
}