feat(battle): add Nuclear Escalation tactical and strategic nuclear carriers
Connect stage-unlocked nuclear carriers to Air Realistic sub-mode 103 (Nuclear Escalation) and expose a player toggle for stage-3 megaton strategic bombers: - Dataset & profile grants: extract tactical killstreak nuclear carriers (5 kt / 30 kt Nuclear Escalation presets) and megaton strategic bombers (nt_b_52h / nt_tu_95m) from wpcost.blk in battle-spawn-rules (v4), and grant their required weapon/modification records in support-plane-modifications.ts. - Server slot selection & tuning: add nuclearEscalationStrategicBombers (default true) in tuning/battle.jsonc, battle-tuning.ts, and launcher-tuning.ts; add one nation-matched tactical carrier per session rank bracket (with allowedWeapons limited to its Nuclear Escalation presets) and, when enabled, one stage-3 strategic bomber to extraBattleSlots; include modeTag in battle launch notifications. - GUI patch & launcher UI: add battle/filter-extra-slot-weapons on scripts/weaponry/weaponryinfo.nut to filter extra-slot presets by allowedWeapons (hiding Ground RB zero-yield presets at stage 0) and to fall back to LocalMP launch metadata for GameModeRestrictions; expose the strategic bomber toggle in the launcher Battle tuning section. Verified with root and launcher typechecks, launcher build, full check-gui on 2.61.0.37 and 2.61.0.58 (49 patches across 37 .nut files), and slot selection check across all 10 nations on 2.61.0.58 stock data; pending in-game verification.
This commit is contained in:
1 parent
f1ec034994
commit
d0e4797fe7
19 files changed
+247
-15
No files matched your search
@@ -463,6 +463,7 @@
|
||||
"tankBotRespawns": "AI tank respawns",
|
||||
"airBotRespawns": "AI aircraft respawns",
|
||||
"strikeUcavSpawnScore": "Strike UCAV spawn points",
|
||||
"nuclearEscalationStrategicBombers": "Nuclear Escalation stage-3 strategic bombers (B-52H / Tu-95M)",
|
||||
"silverLions": "Starting Silver Lions",
|
||||
"goldenEagles": "Starting Golden Eagles",
|
||||
"preferLineSuccessor": "Prefer the next vehicle in the line",
|
||||
|
||||
@@ -463,6 +463,7 @@
|
||||
"tankBotRespawns": "AI 坦克重生次数",
|
||||
"airBotRespawns": "AI 飞机重生次数",
|
||||
"strikeUcavSpawnScore": "打击无人机所需出生点数",
|
||||
"nuclearEscalationStrategicBombers": "核战冲突启用第 3 阶段战略核轰炸机(B-52H / Tu-95M)",
|
||||
"silverLions": "初始银狮",
|
||||
"goldenEagles": "初始金鹰",
|
||||
"preferLineSuccessor": "优先研发同系载具",
|
||||
|
||||
@@ -11,7 +11,7 @@ type Field = keyof TuningValues;
|
||||
type Draft = Partial<Record<Field, string | boolean>>;
|
||||
const fields = {
|
||||
rewards: ['rewardMultiplierSilverLions', 'rewardMultiplierResearchPoints', 'friendlyKillPenaltyMul'],
|
||||
battle: ['maxPlayers', 'smallTeamsMaxPlayers', 'brSpreadMrank', 'subModeChance', 'tankBotRespawns', 'airBotRespawns', 'strikeUcavSpawnScore'],
|
||||
battle: ['maxPlayers', 'smallTeamsMaxPlayers', 'brSpreadMrank', 'subModeChance', 'tankBotRespawns', 'airBotRespawns', 'strikeUcavSpawnScore', 'nuclearEscalationStrategicBombers'],
|
||||
newProfile: ['silverLions', 'goldenEagles'],
|
||||
research: ['preferLineSuccessor', 'autoTargetPick'],
|
||||
} as const satisfies Record<TuningSection, readonly Field[]>;
|
||||
@@ -70,7 +70,7 @@ export function TuningPage({ copy, section, onError }: Props) {
|
||||
const editor = (field: Field): ReactNode => {
|
||||
const active = draft[field] ?? inputValue(field, loaded.effective[field]);
|
||||
const label = t(`tuning.fields.${field}`);
|
||||
if (field === 'preferLineSuccessor') {
|
||||
if (typeof loaded.defaults[field] === 'boolean') {
|
||||
return <input type="checkbox" aria-label={label} disabled={saving} checked={active === true} onChange={(event) => set(field, event.target.checked)} />;
|
||||
}
|
||||
if (field === 'autoTargetPick') {
|
||||
|
||||
@@ -12,6 +12,7 @@ export const TuningValuesSchema = z.object({
|
||||
tankBotRespawns: z.number().int().min(1).max(10),
|
||||
airBotRespawns: z.number().int().min(1).max(10),
|
||||
strikeUcavSpawnScore: z.number().int().min(1).max(10000),
|
||||
nuclearEscalationStrategicBombers: z.boolean(),
|
||||
silverLions: z.number().int().nonnegative(),
|
||||
goldenEagles: z.number().int().min(0).max(0x7fffffff),
|
||||
preferLineSuccessor: z.boolean(),
|
||||
|
||||
Reference in new issue
Block a user