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
+16
View File
@@ -25,6 +25,22 @@ func before_each() -> void:
func after_each() -> void:
OS.set_environment("DCW_AUDIO_HOME", previous_audio_home)
func test_normal_game_starts_with_bundled_exploration_music_playing() -> void:
# This scene uses the production AudioLibrary rather than the isolated
# replacement installed by before_each.
game.queue_free()
await get_tree().process_frame
game = GameScene.instantiate()
add_child_autofree(game)
await get_tree().process_frame
var audio := game.get_node("AudioLibrary") as AudioLibrary
assert_eq(audio.current_ambience_context, "exploration")
assert_true(audio.has_playable_ambience())
assert_true(audio.get_ambience_player().playing)
if audio.get_ambience_stream() != null:
assert_string_contains(audio.get_ambience_stream().resource_path, "assets/audio/")
func test_real_game_resolves_combat_with_empty_audio_home() -> void:
var audio = game.get_node("AudioLibrary")