Merge pull request #3754 from phyzical/bugfix/fix-dev-build

BUGFIX: fix compliation error in dev
This commit is contained in:
hydroflame 2022-05-25 10:48:45 -04:00 committed by GitHub
commit 0856680bab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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