Files
airdef/catalog/content.json
T
chexit c59bfe9e54 Catalog typed battery variants (#91)
The battery deploy pieces (s400_launcher, s500_launcher, radar_search/
track/height) were described three times: the menu table and the
configuration match in lib.rs, and a chained id list in commands.rs. One
catalog decision instead: catalog/content.json gains a variants section
(mode/role reuse the existing SamMode/RadarRole save keys), gen_catalog.py
generates catalog::UnitVariant rows, and the loader rejects duplicates,
unknown kinds/modes and id collisions with kinds or items. The battery
menu, its click handler and the deploy completion read the generated
table; the historical row order and labels are unchanged.

No variant carries its own balance: per-variant ammo profiles stay open
pending a confirmed profile and an explicitly labelled game abstraction
(PAC-3 note on #91), so no new specs, no new matches and no save/replay
change - a variant is only a deploy key over the same kind.

Checks: gen_catalog.py --check and gen_models.py --check clean, the
python catalog/asset and sound tests pass, airdef-core 234 unit + 8
scenarios, airdef-mod 69 unit + 1 boundary + 5 scenarios (save/load and
state round trips included), zero failures.

Co-Authored-By: Kimi Code <noreply@moonshot.ai>
2026-11-20 21:34:07 +03:00

432 lines
7.2 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"aircraft": [
{
"kind": "Gerbera",
"item": null,
"raid": true
},
{
"kind": "Shahed",
"item": "launch_shahed",
"raid": true
},
{
"kind": "Geran3",
"item": "launch_geran3",
"raid": true
},
{
"kind": "Lancet",
"item": "launch_lancet",
"raid": true
},
{
"kind": "Kh101",
"item": "launch_kh101",
"raid": true
},
{
"kind": "Kalibr",
"item": "launch_kalibr",
"raid": true
},
{
"kind": "Kh22",
"item": "launch_kh22",
"raid": true
},
{
"kind": "Zircon",
"item": "launch_zircon",
"raid": true
},
{
"kind": "Iskander",
"item": "launch_iskander",
"raid": true
},
{
"kind": "Kinzhal",
"item": "launch_kinzhal",
"raid": true
},
{
"kind": "Oreshnik",
"item": "launch_oreshnik",
"raid": true
},
{
"kind": "OreshnikBlock",
"item": null,
"raid": false
},
{
"kind": "OreshnikSub",
"item": null,
"raid": false
}
],
"units": [
{
"kind": "Patriot",
"item": "deploy_patriot"
},
{
"kind": "Gepard",
"item": "deploy_gepard"
},
{
"kind": "Pantsir",
"item": "deploy_pantsir"
},
{
"kind": "S400",
"item": "deploy_s400"
},
{
"kind": "S500",
"item": "deploy_s500"
},
{
"kind": "IrisT",
"item": "deploy_irist"
},
{
"kind": "Nasams",
"item": "deploy_nasams"
},
{
"kind": "Buk",
"item": "deploy_buk"
},
{
"kind": "Tor",
"item": "deploy_tor"
},
{
"kind": "P1sun",
"item": "deploy_p1sun"
},
{
"kind": "Radar",
"item": "deploy_radar"
},
{
"kind": "Depot",
"item": "deploy_depot"
},
{
"kind": "Tzm",
"item": "deploy_tzm"
},
{
"kind": "Ew",
"item": "deploy_ew"
},
{
"kind": "Light",
"item": "deploy_light"
}
],
"variants": [
{
"id": "s400_launcher",
"kind": "S400",
"mode": "launcher",
"role": "multi",
"label": "С-400 — отдельная пусковая"
},
{
"id": "s500_launcher",
"kind": "S500",
"mode": "launcher",
"role": "multi",
"label": "С-500 — отдельная пусковая"
},
{
"id": "radar_search",
"kind": "Radar",
"mode": "integrated",
"role": "search",
"label": "РЛС обзора"
},
{
"id": "radar_track",
"kind": "Radar",
"mode": "integrated",
"role": "engagement",
"label": "РЛС сопровождения"
},
{
"id": "radar_height",
"kind": "Radar",
"mode": "integrated",
"role": "height",
"label": "Мачтовая РЛС"
}
],
"items": [
{
"id": "designator",
"title": "Целеуказатель",
"color": [
220,
50,
50
]
},
{
"id": "launch_shahed",
"title": "Пуск: Шахед-136",
"color": [
90,
92,
96
]
},
{
"id": "launch_geran3",
"title": "Пуск: Герань-3",
"color": [
30,
30,
34
]
},
{
"id": "deploy_patriot",
"title": "Развернуть Patriot",
"color": [
76,
86,
58
]
},
{
"id": "deploy_gepard",
"title": "Развернуть Гепард",
"color": [
104,
84,
54
]
},
{
"id": "deploy_pantsir",
"title": "Развернуть Панцирь-С1",
"color": [
82,
96,
60
]
},
{
"id": "deploy_s400",
"title": "Развернуть С-400",
"color": [
60,
80,
50
]
},
{
"id": "deploy_s500",
"title": "Развернуть С-500",
"color": [
108,
110,
80
]
},
{
"id": "launch_lancet",
"title": "Пуск: Ланцет-3",
"color": [
70,
78,
66
]
},
{
"id": "launch_kh101",
"title": "Пуск: Х-101",
"color": [
84,
88,
92
]
},
{
"id": "launch_kalibr",
"title": "Пуск: Калибр",
"color": [
150,
154,
156
]
},
{
"id": "launch_kh22",
"title": "Пуск: Х-22",
"color": [
226,
228,
222
]
},
{
"id": "launch_zircon",
"title": "Пуск: Циркон",
"color": [
52,
54,
52
]
},
{
"id": "launch_iskander",
"title": "Пуск: Искандер-М",
"color": [
108,
110,
80
]
},
{
"id": "launch_kinzhal",
"title": "Пуск: Кинжал",
"color": [
60,
62,
60
]
},
{
"id": "launch_oreshnik",
"title": "Пуск: Орешник",
"color": [
230,
120,
40
]
},
{
"id": "deploy_irist",
"title": "Развернуть IRIS-T SLM",
"color": [
76,
86,
58
]
},
{
"id": "deploy_nasams",
"title": "Развернуть NASAMS",
"color": [
76,
86,
58
]
},
{
"id": "deploy_buk",
"title": "Развернуть Бук-М2",
"color": [
82,
96,
60
]
},
{
"id": "deploy_tor",
"title": "Развернуть Тор-М2",
"color": [
108,
110,
80
]
},
{
"id": "deploy_p1sun",
"title": "Развернуть P1-SUN",
"color": [
52,
54,
52
]
},
{
"id": "deploy_radar",
"title": "Развернуть РЛС дальнего обнаружения",
"color": [
108,
110,
80
]
},
{
"id": "deploy_depot",
"title": "Развернуть склад боеприпасов",
"color": [
92,
78,
48
]
},
{
"id": "deploy_tzm",
"title": "Развернуть ТЗМ",
"color": [
82,
96,
60
]
},
{
"id": "deploy_ew",
"title": "Развернуть станцию РЭБ",
"color": [
108,
110,
80
]
},
{
"id": "deploy_light",
"title": "Развернуть прожектор",
"color": [
52,
54,
52
]
},
{
"id": "mover",
"title": "Пульт перемещения",
"color": [
60,
140,
220
]
},
{
"id": "flare_gun",
"title": "Осветительная ракета",
"color": [
255,
240,
180
]
},
{
"id": "remover",
"title": "Свернуть ПВО",
"color": [
200,
200,
200
]
}
]
}