increase spawn imm 10 seconds

This commit is contained in:
evanpelle
2026-01-24 15:51:22 -08:00
parent 91ee3232ac
commit dc60aaa5d8
3 changed files with 14 additions and 2 deletions
+5 -1
View File
@@ -41,7 +41,11 @@ export class ImmunityTimer extends LitElement implements Layer {
const immunityDuration = this.game.config().spawnImmunityDuration();
const spawnPhaseTurns = this.game.config().numSpawnPhaseTurns();
if (immunityDuration <= 5 * 10 || this.game.inSpawnPhase()) {
if (
immunityDuration <= this.game.config().defaultSpawnImmunityDuration() ||
this.game.inSpawnPhase()
) {
// Don't show the timer if default immunity.
this.setInactive();
return;
}
+1
View File
@@ -58,6 +58,7 @@ export interface NukeMagnitude {
export interface Config {
spawnImmunityDuration(): Tick;
defaultSpawnImmunityDuration(): Tick;
serverConfig(): ServerConfig;
gameConfig(): GameConfig;
theme(): Theme;
+8 -1
View File
@@ -163,7 +163,14 @@ export class DefaultConfig implements Config {
return 30 * 10; // 30 seconds
}
spawnImmunityDuration(): Tick {
return this._gameConfig.spawnImmunityDuration ?? 5 * 10; // default to 5 seconds
return (
this._gameConfig.spawnImmunityDuration ??
this.defaultSpawnImmunityDuration()
);
}
defaultSpawnImmunityDuration(): Tick {
return 10 * 10; // 10 seconds.
}
gameConfig(): GameConfig {