This commit is contained in:
Fabian Dellwing 2022-05-24 18:28:10 +02:00 committed by GitHub
parent 682b12d05a
commit 4d41d2deaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -427,8 +427,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;