numCycleForGrowth() function now accoutns for BitNode growth multiplier. Cleaned up docuemntation

This commit is contained in:
danielyxie
2019-03-19 17:53:46 -07:00
parent f7fd3c859f
commit 4bdb34bc7b
6 changed files with 15 additions and 9 deletions
+3 -2
View File
@@ -18,7 +18,8 @@ export function numCycleForGrowth(server: Server, growth: number, p: IPlayer) {
const serverGrowthPercentage = server.serverGrowth / 100;
const cycles = Math.log(growth)/(Math.log(ajdGrowthRate) * p.hacking_grow_mult * serverGrowthPercentage);
const cycles = Math.log(growth)/(Math.log(ajdGrowthRate) * p.hacking_grow_mult * serverGrowthPercentage * BitNodeMultipliers.ServerGrowthRate);
return cycles;
}
@@ -96,7 +97,7 @@ export function GetServerByHostname(hostname: string): Server | null {
}
}
}
return null;
}