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
+4 -4
View File
@@ -11,7 +11,9 @@ func before_each() -> void:
func test_context_prompt_describes_an_adjacent_closed_door_without_mutating_the_map() -> void:
var hud := game.get_node("HUD") as GameHud
var state := game.get_game_state()
var door_cell := Vector2i(4, 11)
var door_cell := Vector2i(36, 7)
state.player.cell = Vector2i(35, 7)
hud.refresh(state, [], game.get_run_state())
assert_eq(hud.get_context_prompt(), "Espace — Ouvrir la porte")
assert_eq(state.map.get_cell(door_cell), GridMapState.CellKind.CLOSED_DOOR)
@@ -20,9 +22,7 @@ func test_context_prompt_describes_stairs_under_player_and_nothing_else() -> voi
var hud := game.get_node("HUD") as GameHud
var state := game.get_game_state()
state.map.set_cell(Vector2i(4, 11), GridMapState.CellKind.FLOOR)
state.player.cell = Vector2i(18, 4)
game.get_run_state().current_floor_deadline().turns_remaining = 2 * FloorDeadline.TURNS_PER_DAY
state.player.cell = state.floor_state.exit
hud.refresh(state, [], game.get_run_state())
assert_eq(hud.get_context_prompt(), "Espace — Descendre l’escalier")