fix(battle): enable limited fuel in LocalMP versus battles
MissionSettings initializes isLimitedFuel to false by default (2.61.0.37 0x12620af), leaving LocalMP versus battles with infinite fuel, no fuel burn weight reduction, and no HUD fuel timer. Set isLimitedFuel=true in battleMissionSettings across all versus modes to match live behavior. Verified with root npm run typecheck. In-game acceptance pending on an isolated 2.61.0.58 client copy.
This commit is contained in:
1 parent
dce9b59765
commit
5c09c4e47a
1 file changed
+2
@@ -70,6 +70,8 @@ export function battleMissionSettings(plan: BattleLaunchPlan, scores: Readonly<R
|
||||
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'));
|
||||
// MissionSettings defaults isLimitedFuel to false, which disables fuel consumption and HUD timers.
|
||||
setParam(settings, 'isLimitedFuel', flag(true));
|
||||
setParam(settings, 'allowSpare', flag(!plan.selectedSlot && plan.maxRespawns !== UNLIMITED_RESPAWNS));
|
||||
if (plan.maxRespawns !== undefined) setParam(settings, 'maxRespawns', integer(plan.maxRespawns));
|
||||
if (plan.selectedSlot) {
|
||||
|
||||
Reference in new issue
Block a user