Fix for messages not being reloaded after the game is compiled

This commit is contained in:
Maruno17
2021-06-12 19:05:22 +01:00
parent 8dec89bb50
commit 128a002324
3 changed files with 56 additions and 58 deletions

View File

@@ -512,7 +512,7 @@ module Compiler
end
return nil if battles.length<=0
# Run trainer check now, except in editor
trainerChecker.pbTrainerBattleCheck(trtype,trname,battleid) if !$INEDITOR
trainerChecker.pbTrainerBattleCheck(trtype,trname,battleid)
# Set the event's charset to one depending on the trainer type if the event
# doesn't have a charset
if firstpage.graphic.character_name=="" && GameData::TrainerType.exists?(trtype)
@@ -570,7 +570,7 @@ module Compiler
# Write rematch and last pages
for i in 1...battles.length
# Run trainer check now, except in editor
trainerChecker.pbTrainerBattleCheck(trtype,trname,battleid+i) if !$INEDITOR
trainerChecker.pbTrainerBattleCheck(trtype,trname,battleid+i)
if i==battles.length-1
push_branch(rematchpage.list,sprintf("pbPhoneBattleCount(%s)>=%d",safetrcombo,i))
push_branch(lastpage.list,sprintf("pbPhoneBattleCount(%s)>%d",safetrcombo,i))