mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 15:43:49 +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
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user