mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-05 16:45:28 +00:00
events dissappear after 10s
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user