feat(m77-c): battle SFX (contract BAT 1-60), region-1 battle/boss music and beat audio wiring

This commit is contained in:
2026-09-15 00:17:21 +08:00
parent eb324ecdc3
commit 92e7cfdedd
374 changed files with 8861 additions and 76 deletions
+8 -3
View File
@@ -476,8 +476,8 @@ func _check_audio() -> bool:
push_error("M76-C audio: shell has no audio service")
return false
var service = shell.audio_service
if int(service.events.size()) != 144:
push_error("M76-C audio: expected 144 mapped events, got %d" % int(service.events.size()))
if int(service.events.size()) != 204:
push_error("M76-C audio: expected 204 mapped events, got %d" % int(service.events.size()))
return false
var families: Array = []
var page_opens := 0
@@ -495,7 +495,8 @@ func _check_audio() -> bool:
for family in required_families:
if not families.has(family):
missing_families.append(family)
var required_events := ["recruit_hire_commit", "risk_commit", "battle_start_commit", "reward_accept"]
var required_events := ["recruit_hire_commit", "risk_commit", "battle_start_commit", "reward_accept",
"battle_begin", "enemy_forecast_begin", "ranged_release", "area_resolve", "heal_small", "melee_impact_heavy"]
var missing_events: Array = []
for event_name in required_events:
if not committed.has(event_name):
@@ -503,6 +504,10 @@ func _check_audio() -> bool:
if not missing_families.is_empty() or not missing_events.is_empty() or page_opens < 8:
push_error("M76-C audio: missing families=%s events=%s page_opens=%d" % [str(missing_families), str(missing_events), page_opens])
return false
if families.has("battle"):
print("ABG_M77_BATTLE_AUDIO_OK battle_family=true cues=%d" % committed.size())
else:
push_error("M77-C battle audio: the battle family never played")
print("ABG_M76_AUDIO_CYCLE_OK families=%d page_open=%d events=%d switches=%d" % [families.size(), page_opens, committed.size(), int(service.music_switches)])
return true