fix(battle): enable fast ticket drain in single-sortie air battles
Pass the native no-respawn ticket rule when the mode limits each pilot to a single sortie. The Air Realistic mission headers omit this setting.
This commit is contained in:
1 parent
d165a80a4a
commit
44e64fa414
1 file changed
+1
@@ -63,6 +63,7 @@ export function battleMissionSettings(plan: BattleLaunchPlan, scores: Readonly<R
|
|||||||
setParam(settings, 'allowSpare', flag(!plan.selectedSlot));
|
setParam(settings, 'allowSpare', flag(!plan.selectedSlot));
|
||||||
if (plan.selectedSlot) {
|
if (plan.selectedSlot) {
|
||||||
setParam(settings, 'maxRespawns', integer(SINGLE_SPAWN));
|
setParam(settings, 'maxRespawns', integer(SINGLE_SPAWN));
|
||||||
|
setParam(settings, 'ctaInstantDecreaseTicketsWhenNoRespawn', flag(true));
|
||||||
// The native mission loader reads the AI limit at the top level, after its bots.blk default.
|
// The native mission loader reads the AI limit at the top level, after its bots.blk default.
|
||||||
setParam(settings, 'numBotRespawns', integer(plan.airBotRespawns));
|
setParam(settings, 'numBotRespawns', integer(plan.airBotRespawns));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user