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

@ -411,8 +411,12 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS {
if (server.moneyAvailable < 0) {
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;