Add rounding to getPurchaseServerCost

This commit is contained in:
Sage Pointer 2022-01-26 06:02:05 +02:00 committed by GitHub
parent 07fe3c1906
commit 98f40ca092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 *