feat: add deterministic world chest loot
This commit is contained in:
@@ -34,7 +34,10 @@ func test_real_input_opens_door_then_chest_and_preserves_stairs_route() -> void:
|
||||
assert_eq(game.last_turn_results[0].kind, &"chest_opened")
|
||||
assert_eq(state.map.get_cell(Vector2i(4, 7)), GridMapState.CellKind.FLOOR)
|
||||
assert_eq(hud.get_context_prompt(), "")
|
||||
assert_string_contains(event_log.get_parsed_text(), "You open the chest.")
|
||||
assert_string_contains(event_log.get_parsed_text(), "Coffre ouvert :")
|
||||
assert_true(game.get_node("HUD/LootPanel").visible)
|
||||
game._unhandled_input(_key_event(KEY_SPACE))
|
||||
assert_false(game.get_node("HUD/LootPanel").visible)
|
||||
game._unhandled_input(_key_event(KEY_UP))
|
||||
assert_eq(state.player.cell, Vector2i(4, 7))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user