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
+10 -2
View File
@@ -22,8 +22,12 @@ func test_actual_menu_creation_flow_starts_game_and_emits_event() -> void:
assert_true(creation.visible)
(creation.get_node("Panel/Layout/Fields/NameEdit") as LineEdit).text = "A6 Hero"
(creation.get_node("Panel/Layout/Fields/ArchetypeOption") as OptionButton).select(1)
assert_null(creation.get_node_or_null("Panel/Layout/Fields/ArchetypeOption"))
assert_null(creation.get_node_or_null("Panel/Layout/Fields/RaceOption"))
(creation.get_node("Panel/Layout/Fields/PetCheck") as CheckBox).button_pressed = true
await get_tree().process_frame
(creation.get_node("Panel/Layout/Fields/PetDetails/PetNameEdit") as LineEdit).text = "Donut"
(creation.get_node("Panel/Layout/Fields/PetDetails/PetSpeciesEdit") as LineEdit).text = "Chatte devenue intelligente"
(creation.get_node("Panel/Layout/Fields/SeedEdit") as LineEdit).text = "A6-E2E-SEED"
(creation.get_node("Panel/Layout/Fields/DifficultyOption") as OptionButton).select(2)
(creation.get_node("Panel/Layout/Fields/PermadeathOption") as OptionButton).select(1)
@@ -39,8 +43,12 @@ func test_actual_menu_creation_flow_starts_game_and_emits_event() -> void:
assert_eq(game.get_run_state().settings.difficulty_id, &"veteran")
assert_true(game.get_run_state().settings.permadeath)
assert_true(game.get_run_state().settings.pet_enabled)
assert_eq(game.get_game_state().companion.name, "Donut")
assert_eq(game.get_game_state().companion.species, "Chatte devenue intelligente")
assert_eq(game.get_run_state().player_name, "A6 Hero")
assert_eq(game.get_run_state().base_archetype, &"mystic")
assert_eq(game.get_run_state().base_archetype, &"")
assert_eq(game.get_dialogue_player().race, &"")
assert_eq(game.get_dialogue_player().archetype, &"")
assert_eq(game.get_run_state().current_floor, 0)
assert_eq(game.get_run_state().recent_events(1)[0].kind, &"game_started")
assert_eq(started_events.size(), 1)