Fix bug smaller than a tardigrate (#653)

This commit is contained in:
Meggal
2023-06-28 16:21:15 -04:00
committed by GitHub
parent 1d5a735941
commit bc00a1c134

View File

@ -491,7 +491,7 @@ function hack(
maxThreadNeeded = 1e6;
}
let moneyDrained = Math.floor(server.moneyAvailable * percentHacked) * threads;
let moneyDrained = server.moneyAvailable * percentHacked * threads;
// Over-the-top safety checks
if (moneyDrained <= 0) {