mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-17 05:39:13 +00:00
added spawn timer bar
This commit is contained in:
@@ -71,7 +71,7 @@ export class AttackExecution implements Execution {
|
||||
if (!this.active) {
|
||||
return
|
||||
}
|
||||
if (ticks < this.mg.config().turnsUntilGameStart()) {
|
||||
if (ticks < this.mg.config().numSpawnPhaseTurns()) {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ export class BotExecution implements Execution {
|
||||
|
||||
tick(ticks: number) {
|
||||
|
||||
if (ticks < this.mg.config().turnsUntilGameStart()) {
|
||||
if (ticks < this.mg.config().numSpawnPhaseTurns()) {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ export class PlayerExecution implements Execution {
|
||||
}
|
||||
|
||||
tick(ticks: number) {
|
||||
if (ticks < this.config.turnsUntilGameStart()) {
|
||||
if (ticks < this.config.numSpawnPhaseTurns()) {
|
||||
return
|
||||
}
|
||||
this.player.setTroops(this.config.player().troopAdditionRate(this.player))
|
||||
|
||||
@@ -23,7 +23,7 @@ export class SpawnExecution implements Execution {
|
||||
return
|
||||
}
|
||||
|
||||
if (ticks >= this.mg.config().turnsUntilGameStart()) {
|
||||
if (ticks >= this.mg.config().numSpawnPhaseTurns()) {
|
||||
this.active = false
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user