From ce51718ffe6a585ffdf5b65dc16696a1328bc9b4 Mon Sep 17 00:00:00 2001 From: Xavion3 Date: Fri, 21 Feb 2025 18:54:13 +1100 Subject: [PATCH] Make shop costs round to the nearest multiple of 10 --- src/modifier/modifier-type.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modifier/modifier-type.ts b/src/modifier/modifier-type.ts index 112a3c9aa35..4578d568955 100644 --- a/src/modifier/modifier-type.ts +++ b/src/modifier/modifier-type.ts @@ -2536,7 +2536,7 @@ export class ModifierTypeOption { constructor(type: ModifierType, upgradeCount: number, cost: number = 0) { this.type = type; this.upgradeCount = upgradeCount; - this.cost = Math.min(Math.round(cost), Number.MAX_SAFE_INTEGER); + this.cost = Math.min(Math.round(cost / 10) * 10, Number.MAX_SAFE_INTEGER); } }