fix compliation error in dev

bugfix/fix-dev-build

File List:
src/NetscriptFunctions.ts
This commit is contained in:
phyzical 2022-05-25 17:20:32 +08:00
parent 31fe43715e
commit bec40e5274
No known key found for this signature in database
GPG Key ID: 91E97494BCA22BCF

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