Merge pull request #955 from ShaneMcGovernIE/shanemcgovernie-issue-945-cannot-edit-trainer-class-s-battle-theme-ad701b

Honor trainer battleTheme override (fixes #945)
This commit is contained in:
bryanthaboi
2026-08-07 12:40:55 -04:00
committed by GitHub
5 changed files with 220 additions and 7 deletions
+3
View File
@@ -577,6 +577,9 @@ R.trainers = {
aiMods = f.opt(f.any),
aiClass = f.opt(f.id("ai_classes")),
brain = f.opt(f.fn),
-- Per-trainer battle theme (an audio.songs id): overrides the
-- kind-based default (wild/trainer/gym/final) for this trainer's
-- battles. The victory jingle stays kind-based.
battleTheme = f.opt(f.id("music")),
},
example = 'mod.content.trainers:patch("OPP_BROCK", { baseMoney = 99 })',