Skip to content

Commit

Permalink
Fix scenario BG/BGM without text. #22.
Browse files Browse the repository at this point in the history
  • Loading branch information
laqieer committed Aug 20, 2022
1 parent f677719 commit 2a50740
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion content/chapter_event/X0004Event.S
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ MiscBasedEvents:
DefeatAll(EndingScene)
END_MAIN
BeginningScene:
ShowBG(BG001_Brave)
LOU1 EnemyUnits
ENUN
LOU1 AllyUnits
Expand Down
7 changes: 4 additions & 3 deletions tool/chapter/make_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,8 @@ def load_unit(object: TiledObject, side: UnitSide):

def load_scenario(scenario: Scenario):
text = '{}_MID_SCENARIO_{}'.format(map_name, scenario.name)
if text not in texts:
return
bgm = text + '_BGM'
bg = text + '_IMAGE'
if bg in bgs:
Expand All @@ -728,9 +730,8 @@ def load_scenario(scenario: Scenario):
if bgm in bgms:
bgm = bgms[bgm]
print('\tMUSC ' + bgm)
if text in texts:
print('\tTEX1 EvTx_' + text)
print('\tREMA')
print('\tTEX1 EvTx_' + text)
print('\tREMA')

map_name = get_filename(sys.argv[1])
map_file = Path(sys.argv[1])
Expand Down

0 comments on commit 2a50740

Please sign in to comment.