feat: add multi-floor dungeon transitions
This commit is contained in:
@@ -48,7 +48,7 @@ func test_stairs_usage_triggers_exactly_one_enemy_response_without_transitioning
|
||||
assert_eq(state.player.cell, stairs)
|
||||
assert_same(state.map, map)
|
||||
|
||||
func test_stairs_usage_refreshes_exact_exit_prompt_and_writes_the_journal() -> void:
|
||||
func test_stairs_usage_transitions_to_floor_one_and_writes_the_journal() -> void:
|
||||
var game := GameScene.instantiate() as Game
|
||||
add_child_autofree(game)
|
||||
await get_tree().process_frame
|
||||
@@ -62,7 +62,8 @@ func test_stairs_usage_refreshes_exact_exit_prompt_and_writes_the_journal() -> v
|
||||
var results := game.submit_test_interact()
|
||||
|
||||
assert_eq(results[0].kind, &"stairs_used")
|
||||
assert_true(state.exit_reached)
|
||||
assert_eq(hud.get_context_prompt(), "Sortie atteinte — prochain étage bientôt disponible")
|
||||
assert_eq(prompt_label.text, "Sortie atteinte — prochain étage bientôt disponible")
|
||||
assert_eq(game.get_run_state().current_floor, 1)
|
||||
assert_eq(game.get_game_state().player.cell, game.get_game_state().floor_state.entrance)
|
||||
assert_eq(hud.get_context_prompt(), "Espace — Monter l’escalier")
|
||||
assert_eq(prompt_label.text, "Espace — Monter l’escalier")
|
||||
assert_string_contains(event_log.get_parsed_text(), "You descend the stairs.")
|
||||
|
||||
Reference in New Issue
Block a user