make shells free

This commit is contained in:
Evan
2024-11-27 14:05:47 -08:00
parent 982caa3b23
commit 61515172c7
3 changed files with 5 additions and 2 deletions
+3
View File
@@ -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
}