feat: complete playtest parity improvements

This commit is contained in:
goose
2026-10-08 19:06:19 -04:00
parent cce25a1908
commit eca098b4b9
139 changed files with 3001 additions and 982 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ func test_real_merchant_interaction_opens_shop_and_purchase_updates_inventory_an
var floor := state.floor_state
state.enemies.clear()
floor.npcs.clear()
var merchant := ActorState.new(&"merchant-e2e", Vector2i(5, 12), 1, 0, &"npc_wandering_merchant")
var merchant := ActorState.new(&"merchant-e2e", state.player.cell + Vector2i.RIGHT, 1, 0, &"npc_wandering_merchant")
floor.npcs[merchant.id] = merchant
game.get_run_state().gold = 100
var no_events: Array[GameEvent] = []
@@ -23,7 +23,7 @@ func test_real_merchant_interaction_opens_shop_and_purchase_updates_inventory_an
assert_eq((game.get_node("HUD/GoldLabel") as Label).text, "Or: 100")
await _dispatch_key(KEY_E)
var dialogue_entries := game.get_node("HUD/DialoguePanel/Entries") as RichTextLabel
var dialogue_entries := game.get_node("HUD/DialoguePanel/Layout/Entries") as RichTextLabel
assert_true((game.get_node("HUD/DialoguePanel") as PanelContainer).visible)
assert_string_contains(dialogue_entries.get_parsed_text(), "Voir toute sa marchandise.")
assert_eq(game.get_run_state().recent_events(1)[0].kind, &"dialogue_started")