mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-22 22:22:26 +01:00
Merge pull request #2814 from SagePtr/patch-1
Add rounding to getPurchaseServerCost
This commit is contained in:
commit
5dd1c0224a
@ -30,7 +30,7 @@ export function getPurchaseServerCost(ram: number): number {
|
||||
|
||||
const upg = Math.max(0, Math.log(sanitizedRam) / Math.log(2) - 6);
|
||||
|
||||
return (
|
||||
return Math.round(
|
||||
sanitizedRam *
|
||||
CONSTANTS.BaseCostFor1GBOfRamServer *
|
||||
BitNodeMultipliers.PurchasedServerCost *
|
||||
|
Loading…
Reference in New Issue
Block a user