Use bigint for gold (#1000)

This commit is contained in:
Scott Anderson
2025-06-02 15:48:24 -04:00
committed by 1brucben
parent cbecfac981
commit e763ade705
20 changed files with 128 additions and 101 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ import {
Difficulty,
Execution,
Game,
Gold,
Nation,
Player,
PlayerID,
@@ -543,7 +544,7 @@ export class FakeHumanExecution implements Execution {
return null;
}
private cost(type: UnitType): number {
private cost(type: UnitType): Gold {
if (this.player === null) throw new Error("not initialized");
return this.mg.unitInfo(type).cost(this.player);
}