Merge pull request #2814 from SagePtr/patch-1

Add rounding to getPurchaseServerCost
This commit is contained in:
hydroflame
2022-01-26 00:30:45 -05:00
committed by GitHub

View File

@ -30,7 +30,7 @@ export function getPurchaseServerCost(ram: number): number {
const upg = Math.max(0, Math.log(sanitizedRam) / Math.log(2) - 6); const upg = Math.max(0, Math.log(sanitizedRam) / Math.log(2) - 6);
return ( return Math.round(
sanitizedRam * sanitizedRam *
CONSTANTS.BaseCostFor1GBOfRamServer * CONSTANTS.BaseCostFor1GBOfRamServer *
BitNodeMultipliers.PurchasedServerCost * BitNodeMultipliers.PurchasedServerCost *