mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-18 17:53:29 +00:00
make shells free
This commit is contained in:
@@ -278,6 +278,9 @@ export class PlayerImpl implements MutablePlayer {
|
||||
}
|
||||
|
||||
removeGold(toRemove: Gold): void {
|
||||
if (toRemove > this._gold) {
|
||||
throw Error(`Player ${this} does not enough gold (${toRemove} vs ${this._gold}))`)
|
||||
}
|
||||
this._gold -= toRemove
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user