feat: complete playtest parity improvements
This commit is contained in:
@@ -9,11 +9,11 @@ func test_hud_shows_exact_chest_prompt_only_while_the_chest_is_a_context_target(
|
||||
var state := game.get_game_state()
|
||||
var hud := game.get_node("HUD") as GameHud
|
||||
|
||||
state.map.set_cell(Vector2i(4, 11), GridMapState.CellKind.FLOOR)
|
||||
state.player.cell = Vector2i(4, 8)
|
||||
var chest := state.player.cell + Vector2i.UP
|
||||
state.map.set_cell(chest, GridMapState.CellKind.CHEST)
|
||||
hud.refresh(state)
|
||||
assert_eq(hud.get_context_prompt(), "Espace — Ouvrir le coffre")
|
||||
|
||||
state.player.cell = Vector2i(4, 10)
|
||||
state.map.set_cell(chest, GridMapState.CellKind.FLOOR)
|
||||
hud.refresh(state)
|
||||
assert_eq(hud.get_context_prompt(), "")
|
||||
|
||||
Reference in New Issue
Block a user