events dissappear after 10s

This commit is contained in:
evanpelle
2024-09-20 20:01:18 -07:00
parent df99457867
commit a77831f4c8
5 changed files with 18 additions and 7 deletions
+1 -1
View File
@@ -176,7 +176,7 @@ export interface Game {
forEachTile(fn: (tile: Tile) => void): void
executions(): ExecutionView[]
terraNullius(): TerraNullius
tick(): void
executeNextTick(): void
ticks(): number
inSpawnPhase(): boolean
addExecution(...exec: Execution[]): void
+1 -1
View File
@@ -85,7 +85,7 @@ export class GameImpl implements MutableGame {
return this._ticks
}
tick() {
executeNextTick() {
this.execs.forEach(e => {
if (e.isActive() && (!this.inSpawnPhase() || e.activeDuringSpawnPhase())) {
e.tick(this._ticks)