${!(
this.gameMode === GameMode.Team &&
this.teamCount === HumansVsNations
)
? this.renderOptionToggle(
"host_modal.disable_nations",
this.disableNations,
this.handleDisableNationsChange,
)
: ""}
${this.renderOptionToggle(
"host_modal.instant_build",
this.instantBuild,
this.handleInstantBuildChange,
)}
${this.renderOptionToggle(
"host_modal.random_spawn",
this.randomSpawn,
this.handleRandomSpawnChange,
)}
${this.renderOptionToggle(
"host_modal.donate_gold",
this.donateGold,
this.handleDonateGoldChange,
)}
${this.renderOptionToggle(
"host_modal.donate_troops",
this.donateTroops,
this.handleDonateTroopsChange,
)}
${this.renderOptionToggle(
"host_modal.infinite_gold",
this.infiniteGold,
this.handleInfiniteGoldChange,
)}
${this.renderOptionToggle(
"host_modal.infinite_troops",
this.infiniteTroops,
this.handleInfiniteTroopsChange,
)}
${this.renderOptionToggle(
"host_modal.compact_map",
this.compactMap,
this.handleCompactMapChange,
)}
this.maxTimer,
(val) => (this.maxTimer = val),
() => this.maxTimerValue,
(val) => (this.maxTimerValue = val),
30,
).click}
@keydown=${this.createToggleHandlers(
() => this.maxTimer,
(val) => (this.maxTimer = val),
() => this.maxTimerValue,
(val) => (this.maxTimerValue = val),
30,
).keydown}
class="relative p-3 rounded-xl border transition-all duration-200 flex flex-col items-center justify-between gap-2 h-full cursor-pointer min-h-[100px] ${this
.maxTimer
? "bg-blue-500/20 border-blue-500/50 shadow-[0_0_15px_rgba(59,130,246,0.2)]"
: "bg-white/5 border-white/10 hover:bg-white/10 hover:border-white/20 opacity-80"}"
>
${this.maxTimer
? html`
`
: ""}
${this.maxTimer
? html`
e.stopPropagation()}
@input=${this.handleMaxTimerValueChanges}
@keydown=${this.handleMaxTimerValueKeyDown}
placeholder=${translateText(
"host_modal.mins_placeholder",
)}
/>
`
: html`
`}
${translateText("host_modal.max_timer")}
this.spawnImmunity,
(val) => (this.spawnImmunity = val),
() => this.spawnImmunityDurationMinutes,
(val) => (this.spawnImmunityDurationMinutes = val),
5,
).click}
@keydown=${this.createToggleHandlers(
() => this.spawnImmunity,
(val) => (this.spawnImmunity = val),
() => this.spawnImmunityDurationMinutes,
(val) => (this.spawnImmunityDurationMinutes = val),
5,
).keydown}
class="relative p-3 rounded-xl border transition-all duration-200 flex flex-col items-center justify-between gap-2 h-full cursor-pointer min-h-[100px] ${this
.spawnImmunity
? "bg-blue-500/20 border-blue-500/50 shadow-[0_0_15px_rgba(59,130,246,0.2)]"
: "bg-white/5 border-white/10 hover:bg-white/10 hover:border-white/20 opacity-80"}"
>
${this.spawnImmunity
? html`
`
: ""}
${this.spawnImmunity
? html`
e.stopPropagation()}
@input=${this.handleSpawnImmunityDurationInput}
@keydown=${this.handleSpawnImmunityDurationKeyDown}
placeholder=${translateText(
"host_modal.mins_placeholder",
)}
/>
`
: html`
`}
${translateText("host_modal.player_immunity_duration")}
this.goldMultiplier,
(val) => (this.goldMultiplier = val),
() => this.goldMultiplierValue,
(val) => (this.goldMultiplierValue = val),
2,
).click}
@keydown=${this.createToggleHandlers(
() => this.goldMultiplier,
(val) => (this.goldMultiplier = val),
() => this.goldMultiplierValue,
(val) => (this.goldMultiplierValue = val),
2,
).keydown}
class="relative p-3 rounded-xl border transition-all duration-200 flex flex-col items-center justify-between gap-2 h-full cursor-pointer min-h-[100px] ${this
.goldMultiplier
? "bg-blue-500/20 border-blue-500/50"
: "bg-white/5 border-white/10 hover:bg-white/10 hover:border-white/20"}"
>
${this.goldMultiplier
? html`
`
: ""}
${this.goldMultiplier
? html`
`
: html`
`}
${translateText("single_modal.gold_multiplier")}
this.startingGold,
(val) => (this.startingGold = val),
() => this.startingGoldValue,
(val) => (this.startingGoldValue = val),
5000000,
).click}
@keydown=${this.createToggleHandlers(
() => this.startingGold,
(val) => (this.startingGold = val),
() => this.startingGoldValue,
(val) => (this.startingGoldValue = val),
5000000,
).keydown}
class="relative p-3 rounded-xl border transition-all duration-200 flex flex-col items-center justify-between gap-2 h-full cursor-pointer min-h-[100px] ${this
.startingGold
? "bg-blue-500/20 border-blue-500/50"
: "bg-white/5 border-white/10 hover:bg-white/10 hover:border-white/20"}"
>
${this.startingGold
? html`
`
: ""}
${this.startingGold
? html`
`
: html`
`}
${translateText("single_modal.starting_gold")}