Cap costs at max safe integer
This commit is contained in:
1 parent
2f10f6789c
commit
4ad0dbeaa8
2 files changed
+2
-2
No files matched your search
@@ -1513,7 +1513,7 @@ export class ModifierTypeOption {
|
||||
constructor(type: ModifierType, upgradeCount: integer, cost: number = 0) {
|
||||
this.type = type;
|
||||
this.upgradeCount = upgradeCount;
|
||||
this.cost = Math.round(cost);
|
||||
this.cost = Math.min(Math.round(cost), Number.MAX_SAFE_INTEGER);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user