Merge pull request #3743 from fdellwing/patch-1

MISC: Fix #3742 manualHack() should use correct BitNode Multiplier
This commit is contained in:
hydroflame 2022-05-24 20:22:01 -04:00 committed by GitHub
commit 31fe43715e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -412,7 +412,11 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS {
server.moneyAvailable = 0;
}
const moneyGained = moneyDrained * BitNodeMultipliers.ScriptHackMoneyGain;
if (manual) {
const moneyGained = moneyDrained * BitNodeMultipliers.ManualHackMoney;
} else {
const moneyGained = moneyDrained * BitNodeMultipliers.ScriptHackMoneyGain;
}
Player.gainMoney(moneyGained, "hacking");
workerScript.scriptRef.onlineMoneyMade += moneyGained;