Make shop costs round to the nearest multiple of 10

This commit is contained in:
Xavion3 2025-02-21 18:54:13 +11:00
parent 071ca60f1e
commit ce51718ffe

View File

@ -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);
}
}