From 42b8275151c022dcc76cdbda89975847a5ec9066 Mon Sep 17 00:00:00 2001 From: N0VAN0M4LY <224130499+N0VAN0M4LY@users.noreply.github.com> Date: Thu, 3 Dec 2026 05:22:40 +0800 Subject: [PATCH] fix(battle): write root numBotRespawns and numTankBotRespawns for all modes MissionSettings::load (2.61.0.37 0x126b1f4..0x126b2e6) initializes AI respawn limits from global config/bots.blk defaults (numBotRespawnsInMultiSlot=1, numTankBotRespawnsInMultiSlot=3) and then overrides them from the mission root fields numBotRespawns and numTankBotRespawns rather than customRules/customBots. Previously only single-slot modes wrote numBotRespawns at the mission root, so Air Arcade and other multi-slot modes stayed at 1 aircraft respawn and all modes ignored tuning.battle.tankBotRespawns. Write both root fields unconditionally using the per-mode values already resolved by BattleMatchmaker. Credit to duduyagame for identifying the missing root numBotRespawns in Air Arcade (PR #7). Checks: root `npm run typecheck` passed. In-game acceptance pending on an isolated client copy. Co-authored-by: duduyagame <259639371+duduyagame@users.noreply.github.com> --- apps/server/src/battle/battle-mission-settings.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/server/src/battle/battle-mission-settings.ts b/apps/server/src/battle/battle-mission-settings.ts index 8689ec3..1099625 100644 --- a/apps/server/src/battle/battle-mission-settings.ts +++ b/apps/server/src/battle/battle-mission-settings.ts @@ -76,9 +76,11 @@ export function battleMissionSettings(plan: BattleLaunchPlan, scores: Readonly