fix: describe enemy loot rewards in HUD
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user