mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43:48 +01:00
Merge pull request #3743 from fdellwing/patch-1
MISC: Fix #3742 manualHack() should use correct BitNode Multiplier
This commit is contained in:
commit
31fe43715e
@ -412,7 +412,11 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS {
|
|||||||
server.moneyAvailable = 0;
|
server.moneyAvailable = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (manual) {
|
||||||
|
const moneyGained = moneyDrained * BitNodeMultipliers.ManualHackMoney;
|
||||||
|
} else {
|
||||||
const moneyGained = moneyDrained * BitNodeMultipliers.ScriptHackMoneyGain;
|
const moneyGained = moneyDrained * BitNodeMultipliers.ScriptHackMoneyGain;
|
||||||
|
}
|
||||||
|
|
||||||
Player.gainMoney(moneyGained, "hacking");
|
Player.gainMoney(moneyGained, "hacking");
|
||||||
workerScript.scriptRef.onlineMoneyMade += moneyGained;
|
workerScript.scriptRef.onlineMoneyMade += moneyGained;
|
||||||
|
Loading…
Reference in New Issue
Block a user