feat(@projects/@magic-civilization): add new building completion audio events

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Natalie 2026-04-29 02:10:21 -04:00
parent 4fb2460c93
commit a8a47e534e
2 changed files with 16 additions and 2 deletions

View file

@ -437,6 +437,18 @@
"bus": "SFX",
"description": "Light scholarly tap — research building completed."
},
"building.complete": {
"stream": "audio/sfx/buildings/infrastructure_complete.ogg",
"volume_db": -6.0,
"bus": "SFX",
"description": "Generic stone settle — kind-only fallback for any building category."
},
"complete": {
"stream": "audio/sfx/buildings/infrastructure_complete.ogg",
"volume_db": -7.0,
"bus": "SFX",
"description": "Bare-kind fallback — last-resort for any 'complete' event."
},
"attack": {
"stream": "audio/sfx/generic/attack.ogg",
"volume_db": -7.0,

View file

@ -239,11 +239,13 @@ func test_new_event_signals_are_connected() -> void:
func _assert_chain_resolves(entity_id: String, kind: String) -> void:
var keys: Array[String] = AudioManager._resolve_keys(entity_id, kind)
var found: bool = false
for k: String in keys:
if AudioManager._sfx_events.has(k):
return
found = true
break
assert_true(
false,
found,
"no manifest entry for chain %s.%s -> %s" % [entity_id, kind, str(keys)]
)