Show side event markers

This commit is contained in:
2026-06-19 19:42:00 +09:00
parent b01995db00
commit 6d95f13794
7 changed files with 220 additions and 4 deletions

View File

@@ -613,7 +613,7 @@ Movement-triggered pickups can use `grant_item` for one item or `grant_items` fo
{
"id": "northern_woods_cache",
"once": true,
"when": { "type": "unit_reaches_tile", "team": "player", "pos": [3, 2] },
"when": { "type": "unit_reaches_tile", "team": "player", "label": "북숲 보급고", "pos": [3, 2] },
"actions": [
{ "type": "log", "text": "The northern woods cache is recovered." },
{ "type": "grant_items", "items": ["bean", { "item_id": "antidote", "count": 2 }] }
@@ -621,6 +621,8 @@ Movement-triggered pickups can use `grant_item` for one item or `grant_items` fo
}
```
Rewarding `unit_reaches_tile` events are also exposed as optional side-event markers on the battlefield when they are not already objective cells. Use `when.label` to keep the map marker and tile-info text readable in Korean; otherwise the marker falls back to a short supply or gold label derived from its reward action.
Movement-triggered gold caches can use `grant_gold` with a positive `amount`. The gold is shown immediately through log and floating feedback, but it stays battle-only until victory commits the battle result.
```json