mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53: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
@ -411,8 +411,12 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS {
|
|||||||
if (server.moneyAvailable < 0) {
|
if (server.moneyAvailable < 0) {
|
||||||
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");
|
Player.gainMoney(moneyGained, "hacking");
|
||||||
workerScript.scriptRef.onlineMoneyMade += moneyGained;
|
workerScript.scriptRef.onlineMoneyMade += moneyGained;
|
||||||
|
Loading…
Reference in New Issue
Block a user