Files
airdef/airdef-mod/tests/wasm_contract.toml
T
chexit 02f99c31f6
build / mod (push) Successful in 30m51s
Fire P1-SUN on network fire plots, make S-400/S-500 launchers only, give radars own models
Gameplay fixes and art from the owner's balance review of 2026-12-05.

- The P1-SUN never launched (0 launches in 12 seeds of a 196-target raid): it
  has no radar of its own and only a separate launcher could fire on another
  station's plot. A unit without its own radar now fires like one
  (`why::on_network`), on the fresh own fire plot of an engagement or
  multifunction radar within link reach. Seven P1-SUN then launch 26-42 and
  kill 13-24 per raid; the leak count does not change.
- The С-400 and С-500 exist only as separate launchers (`mode: "launcher"` in
  the catalog). The `s400_launcher`/`s500_launcher` variants and their remotes
  are gone: `deploy s400`/`s500` and their remotes place a launcher. A system
  saved with its own radar loads as a launcher; `battery <n> integrated` is
  refused for these kinds.
- Every radar role has its own model: a wide curved array (search), a
  parabolic dish (engagement), a small head on mast sections (height); the
  multifunction radar keeps its panel, the optical post gets its own post and
  a turning head with a lens. A variant may carry its own `parts` in
  `catalog/content.json`; `Sam::parts()` resolves them.
- The enemy remembers the sides each approach raided from: a raid ordered the
  same way and within 200 blocks of the same distance comes from the same
  sides, so its sites stand where the last ones did. A launch area the radars
  fixed is remembered (up to 32): a site placed there again is known before
  its first launch and can be struck at once. Neither is saved yet.
- `sim/balance.rs` flies several raids over one cluster with stocked depots
  (`supply_raids`). With the 16-block depot reach, depots 30 blocks from the
  batteries leave 10 / 36 / 80 leaks over three raids against 6 / 10 / 17 for
  depots within reach; the reach itself is unchanged by decision of the owner.

The saturation checkpoint is re-recorded (123 kills / 323 launches instead of
129 / 344): that loadout has no fire radar, so its С-400/С-500 fire less as
launchers.

Verified: airdef-core release 363 passed and 8 scenarios; airdef-mod 135 passed,
1 boundary, 2 saturation, 5 scenarios; gen_catalog/gen_models/gen_sounds --check;
test_gen_assets, test_model_bounds, test_web_panel; git diff --check. Not run:
the actual WASM contract, the models in game, CI.
Co-Authored-By: ZCode <zcode@localhost>
2026-12-05 23:38:14 +03:00

136 lines
4.1 KiB
TOML
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.
# Actual .hmod in the engine sandbox, with default fuel/memory limits.
# Missing render replies exercise fallback paths, not GPU correctness.
[[step]]
ticks = 2
frames = 2
expect.commands = ["airdef"]
[[step]]
command = "airdef capabilities"
[[step]]
command = "airdef deploy patriot"
[[step]]
command = "airdef deploy s400"
[[step]]
command = "airdef ground-cancel 2"
expect.error = "Нет ожидающей заявки RM48U"
# Exercise the typed inventory through the actual WASM command boundary.
[[step]]
command = "airdef ground-load 2"
expect.error = "Нет живого склада с RM48U рядом (16 блоков)"
[[step]]
command = "airdef deploy depot"
[[step]]
command = "airdef ground-stock 3 0"
expect.feedback = "Sandbox: задан начальный запас склада №3: RM48U 0"
[[step]]
command = "airdef ground-load 2"
expect.error = "Склад №3 рядом, но RM48U: 0. Задайте запас: /airdef ground-stock 3 <количество>"
[[step]]
command = "airdef ground-stock 3 2"
expect.feedback = "Sandbox: задан начальный запас склада №3: RM48U 2"
[[step]]
command = "airdef ground-load 2"
expect.feedback = "С-400 №2: загружена RM48U (игровой профиль), ударных 1, ПВО 3; на складе RM48U 1, снятых ракет ПВО 1"
[[step]]
command = "airdef ground-unload 2"
expect.feedback = "С-400 №2: выгружена RM48U; ударных 0, ПВО 4"
[[step]]
command = "airdef autostrike on"
expect.feedback = "Автоудар по ПУ: вкл — свободный С-400 без ожидаемых воздушных задач закажет RM48U, выберет разведанную площадку и нанесёт удар во время налёта"
[[step]]
command = "airdef autostrike off"
expect.feedback = "Автоудар по ПУ: выкл — удары по площадкам задаются вручную (/airdef strike <номер>)"
# Split battery configuration crosses the same saved command boundary.
[[step]]
command = "airdef battery 2 launcher"
expect.feedback = "№2 С-400: режим launcher"
[[step]]
command = "airdef deploy radar_track"
# The profile is chosen at deployment (#134): the old role switch is refused,
# and says where the profile comes from instead of retuning the station.
[[step]]
command = "airdef radar 4 search"
expect.error = "Профиль РЛС задаётся при размещении (deploy radar_search|radar_track|radar_height); переключение в search не меняет оборудование. Доступно on/off."
[[step]]
command = "airdef radar 4 engagement"
expect.error = "Профиль РЛС задаётся при размещении (deploy radar_search|radar_track|radar_height); переключение в engagement не меняет оборудование. Доступно on/off."
[[step]]
command = "airdef radar 4 off"
expect.feedback = "№4 РЛС дальнего обнаружения: излучение РЛС off"
[[step]]
command = "airdef radar 4 on"
expect.feedback = "№4 РЛС дальнего обнаружения: излучение РЛС on"
[[step]]
command = "airdef radar 2 off"
expect.error = "У комплекса нет активной РЛС"
[[step]]
command = "airdef deploy s500"
# The wave screen's preset button through the command boundary; an empty wave cannot launch.
[[step]]
command = "airdef preset 0"
expect.feedback = "Готовый: Рой Шахедов"
[[step]]
command = "airdef preset 6"
expect.feedback = "Готовый: Пусто"
[[step]]
command = "airdef raid"
expect.error = "Налёт пуст: выберите типы и число"
[[step]]
command = "airdef wave mix 40 1500"
[[step]]
ticks = 240
frames = 120
[[step]]
command = "airdef clear"
[[step]]
ticks = 140
frames = 10
[[step]]
command = "airdef replay stop"
[[step]]
title-screen = true
ticks = 2
frames = 2
[[step]]
player = { x = 100.5, y = 64.0, z = 100.5 }
clock = { game-time = 500, day-time = 6000 }
ticks = 3
frames = 3
[[step]]
reload = true
ticks = 2
frames = 2
expect.commands = ["airdef"]