fix(battle): enable in-flight reload in air arcade
Air arcade battles previously set isLimitedAmmo=true via VERSUS_SWITCHES. Both the native in-flight rearm request and its host handler require unlimited reserve ammunition, which prevented airborne reloading in Air AB. Move isLimitedAmmo out of VERSUS_SWITCHES and set it to false only when modeName is air_arcade, keeping limited ammunition for all other modes. Verified with root npm run typecheck; pending in-game verification.
This commit is contained in:
1 parent
be772c0cea
commit
7bd17c4f74
1 file changed
+3
-1
@@ -28,7 +28,7 @@ const RULE_KEYS: readonly string[] = [
|
||||
/** Game type switches of a versus battle with tickets, capture zones and session rewards. */
|
||||
const VERSUS_SWITCHES: readonly string[] = [
|
||||
'gt_versus', 'gt_mp_tickets', 'gt_mp_capture', 'gt_use_wp', 'gt_use_xp', 'gt_use_stats', 'gt_use_unlocks',
|
||||
'isLimitedAmmo', 'allowUseArtillerySupport', 'isBotsAllowed', 'autoBalance',
|
||||
'allowUseArtillerySupport', 'isBotsAllowed', 'autoBalance',
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -60,6 +60,8 @@ export function battleMissionSettings(plan: BattleLaunchPlan, scores: Readonly<R
|
||||
setParam(settings, 'symmetricTeams', flag(plan.symmetricTeams));
|
||||
setParam(settings, 'gt_mp_solo', flag(false));
|
||||
for (const name of VERSUS_SWITCHES) setParam(settings, name, flag(true));
|
||||
// The native in-flight rearm request and its receiver both require unlimited reserve ammunition.
|
||||
setParam(settings, 'isLimitedAmmo', flag(plan.modeName !== 'air_arcade'));
|
||||
setParam(settings, 'allowSpare', flag(!plan.selectedSlot));
|
||||
if (plan.selectedSlot) {
|
||||
setParam(settings, 'maxRespawns', integer(SINGLE_SPAWN));
|
||||
|
||||
Reference in new issue
Block a user