MULTS: Make BitNodeMultipliers.ServerMaxMoney more sensible (#280)

This commit is contained in:
David Walker
2023-01-05 17:31:54 -08:00
committed by GitHub
parent 7b5080a42b
commit aa32e235fa
2 changed files with 12 additions and 13 deletions
+3 -3
View File
@@ -70,9 +70,9 @@ export class Server extends BaseServer {
/* Hacking information (only valid for "foreign" aka non-purchased servers) */
this.requiredHackingSkill = params.requiredHackingSkill != null ? params.requiredHackingSkill : 1;
this.moneyAvailable =
params.moneyAvailable != null ? params.moneyAvailable * BitNodeMultipliers.ServerStartingMoney : 0;
this.moneyMax = 25 * this.moneyAvailable * BitNodeMultipliers.ServerMaxMoney;
const baseMoney = params.moneyAvailable ?? 0;
this.moneyAvailable = baseMoney * BitNodeMultipliers.ServerStartingMoney;
this.moneyMax = 25 * baseMoney * BitNodeMultipliers.ServerMaxMoney;
//Hack Difficulty is synonymous with server security. Base Difficulty = Starting difficulty
const realDifficulty =