Fixed several more bugs. Rebalanced stock market changes to make the effects a bit less potent for now

This commit is contained in:
danielyxie
2019-05-14 04:23:55 -07:00
parent fef7aaba8f
commit bd02e724e5
9 changed files with 23 additions and 11 deletions

View File

@@ -426,7 +426,10 @@ function processAllHacknetServerEarnings(numCycles) {
let hashes = 0;
for (let i = 0; i < Player.hacknetNodes.length; ++i) {
const hserver = AllServers[Player.hacknetNodes[i]]; // hacknetNodes array only contains the IP addresses
// hacknetNodes array only contains the IP addresses of the servers.
// Also, update the hash rate before processing
const hserver = AllServers[Player.hacknetNodes[i]];
hserver.updateHashRate(Player.hacknet_node_money_mult);
hashes += hserver.process(numCycles);
}