diff --git a/src/Hacking.ts b/src/Hacking.ts index adb6ef44e..fa6855341 100644 --- a/src/Hacking.ts +++ b/src/Hacking.ts @@ -49,7 +49,7 @@ export function calculatePercentMoneyHacked(server: Server, player: IPlayer): nu const difficultyMult = (100 - server.hackDifficulty) / 100; const skillMult = (player.hacking - (server.requiredHackingSkill - 1)) / player.hacking; - const percentMoneyHacked = (difficultyMult * skillMult * player.hacking_money_mult) / balanceFactor; + const percentMoneyHacked = (difficultyMult * skillMult * player.hacking_money_mult * BitNodeMultipliers.ScriptHackMoney) / balanceFactor; if (percentMoneyHacked < 0) { return 0; } @@ -57,7 +57,7 @@ export function calculatePercentMoneyHacked(server: Server, player: IPlayer): nu return 1; } - return percentMoneyHacked * BitNodeMultipliers.ScriptHackMoney; + return percentMoneyHacked; } /**