Add unit defeat event reactions

This commit is contained in:
2026-06-18 14:14:51 +09:00
parent 8c4d7c8822
commit 4f5e949d84
10 changed files with 218 additions and 7 deletions

View File

@@ -50,6 +50,7 @@ powershell -NoProfile -ExecutionPolicy Bypass -File tools\check_godot46_readines
- Hovering an occupied tile shows the unit's class, movement type, AGI, movement, range, equipped weapon/armor/accessory, and a HUD portrait thumbnail when no unit is selected, with empty gear slots shown as `-`.
- The battle HUD and briefing objective panels split objective, progress, and risk details, including pending unlocks, destination reach status, defeated enemy counts, named protected-unit or commander safety, and turns remaining.
- Scenario event `when.after_event` prerequisites keep follow-up events from firing before their one-shot setup event.
- `unit_defeated` scenario events fire named-unit reactions before final battle status checks, including Yan Liang and Wen Chou defeat dialogue.
- `set_objective` scenario events show concrete objective-update logs, play a UI confirmation sound, refresh the HUD immediately, and briefly show the objective notice panel.
- `withdraw_unit` and `withdraw_units` scenario events remove living targets from the battlefield without marking them defeated.
- Movement-triggered supply cache events grant battle inventory items with pickup feedback, and the items persist only after victory.