added spawn timer bar

This commit is contained in:
evanpelle
2024-08-26 09:13:05 -07:00
parent 51650eb930
commit 8c902a70b8
13 changed files with 47 additions and 16 deletions
+1 -1
View File
@@ -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
}
+1 -1
View File
@@ -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
}
+1 -1
View File
@@ -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))
+1 -1
View File
@@ -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
}