mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-23 00:32:28 +02:00
Make shop costs round to the nearest multiple of 10
This commit is contained in:
parent
071ca60f1e
commit
ce51718ffe
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user