From 98f40ca092c4459a54b6e786498ec3d5d27d4b0b Mon Sep 17 00:00:00 2001 From: Sage Pointer Date: Wed, 26 Jan 2022 06:02:05 +0200 Subject: [PATCH] Add rounding to getPurchaseServerCost --- src/Server/ServerPurchases.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Server/ServerPurchases.ts b/src/Server/ServerPurchases.ts index 3cf62635d..c8e9baabe 100644 --- a/src/Server/ServerPurchases.ts +++ b/src/Server/ServerPurchases.ts @@ -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 *