mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 20:25:45 +01:00
parent
e7fcda19c1
commit
b3c0027b66
@ -173,7 +173,7 @@ export const ns: InternalAPI<NSFull> = {
|
||||
const percentHacked = calculatePercentMoneyHacked(server, Player);
|
||||
|
||||
if (percentHacked === 0 || server.moneyAvailable === 0) {
|
||||
return 0; // To prevent returning infinity below
|
||||
return -1; // To prevent returning infinity below
|
||||
}
|
||||
|
||||
return hackAmount / (server.moneyAvailable * percentHacked);
|
||||
|
Loading…
Reference in New Issue
Block a user