fix: describe enemy loot rewards in HUD

This commit is contained in:
goose
2026-10-09 10:25:24 -04:00
parent 4cc2bd4272
commit 0090753675
4 changed files with 116 additions and 4 deletions
+5
View File
@@ -33,6 +33,11 @@ func test_real_interact_picks_visible_ground_item_then_inventory_action_opens_li
assert_eq(pickup.kind, &"item_picked_up")
assert_eq(pickup.payload.item_id, &"consumable_bandage")
assert_eq(pickup.payload.quantity, 2)
# Achievements may refresh the journal after the pickup; the authoritative
# RunState event remains the HUD seam to verify.
var hud := game.get_node("HUD") as GameHud
hud.refresh(state, [pickup], game.get_run_state())
assert_string_contains(hud.event_log.get_parsed_text(), "Ramassé : Bandage x2.")
await _dispatch_key(KEY_I)