mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
Make hashnet perfectly convert overflow
This commit is contained in:
@@ -426,7 +426,7 @@ function processAllHacknetServerEarnings(player: IPlayer, numCycles: number): nu
|
||||
if (upgrade === null) throw new Error("Could not get the hash upgrade");
|
||||
if (!upgrade.cost) throw new Error("Upgrade is not properly configured");
|
||||
|
||||
const multiplier = Math.floor(wastedHashes / upgrade.cost);
|
||||
const multiplier = wastedHashes / upgrade.cost;
|
||||
if (multiplier > 0) {
|
||||
player.gainMoney(upgrade.value * multiplier, "hacknet");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user