mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-02 14:58:07 +00:00
Use bigint for gold (#1000)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user