Skip to content

Commit

Permalink
fix compliation error in dev
Browse files Browse the repository at this point in the history
bugfix/fix-dev-build

File List:
src/NetscriptFunctions.ts
  • Loading branch information
phyzical committed May 25, 2022
1 parent 31fe437 commit bec40e5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/NetscriptFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,11 +411,10 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS {
if (server.moneyAvailable < 0) {
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");
Expand Down

0 comments on commit bec40e5

Please sign in to comment.