Added "beneath map" height for overworld animations, fixed new games inheriting Jukebox BGM from save file, added PokeBall property for trainer types, fixed Cramorant form changing effects

This commit is contained in:
Maruno17
2024-03-11 23:31:48 +00:00
parent 47be44a54c
commit 1ff5b12acd
10 changed files with 46 additions and 7 deletions

View File

@@ -774,6 +774,12 @@ module Compiler
end
def validate_compiled_trainer_type(hash)
# Ensure valid Poké Ball
if hash[:poke_ball]
if !GameData::Item.get(hash[:poke_ball]).is_poke_ball?
raise _INTL("Value '{1}' isn't a defined Poké Ball.", hash[:poke_ball]) + "\n" + FileLineData.linereport
end
end
end
def validate_all_compiled_trainer_types