Fixed: some items not working in battle, typo in Shell Trap's AI, Vs animation not triggering, Battle Factory Pokémon being chosen incorrectly, Battle Factory double mode being single battles, some game data not being cleared when compiling

This commit is contained in:
Maruno17
2021-06-12 15:44:13 +01:00
parent 7c3fdb9ef8
commit 63fb7aadf7
9 changed files with 19 additions and 10 deletions

View File

@@ -873,6 +873,7 @@ module Compiler
# Compile wild encounter data
#=============================================================================
def compile_encounters(path = "PBS/encounters.txt")
GameData::Encounter::DATA.clear
new_format = nil
encounter_hash = nil
step_chances = nil
@@ -1110,6 +1111,7 @@ module Compiler
# Compile individual trainer data
#=============================================================================
def compile_trainers(path = "PBS/trainers.txt")
GameData::Trainer::DATA.clear
schema = GameData::Trainer::SCHEMA
max_level = GameData::GrowthRate.max_level
trainer_names = []