Merged class PokemonTemp into class Game_Temp

This commit is contained in:
Maruno17
2021-10-21 22:01:59 +01:00
parent 5e51f702b3
commit ca680c9feb
37 changed files with 310 additions and 311 deletions

View File

@@ -1366,7 +1366,7 @@ def pbRegionalDexEditorMain
[_INTL("Yes"), _INTL("No"), _INTL("Cancel")], 3)
when 0 # Save all changes to Dexes
save_data(dex_lists, "Data/regional_dexes.dat")
$PokemonTemp.regionalDexes = nil
$game_temp.regional_dexes_data = nil
Compiler.write_regional_dexes
pbMessage(_INTL("Data saved."))
break
@@ -1489,7 +1489,7 @@ def pbAnimationsOrganiser
if cmd2==0
# Save animations here
save_data(list,"Data/PkmnAnimations.rxdata")
$PokemonTemp.battleAnims = nil
$game_temp.battle_animations_data = nil
pbMessage(_INTL("Data saved."))
end
break

View File

@@ -138,7 +138,7 @@ def pbConvertAnimsToNewFormat
end
if count>0
save_data(animations,"Data/PkmnAnimations.rxdata")
$PokemonTemp.battleAnims = nil
$game_temp.battle_animations_data = nil
end
pbMessage(_INTL("{1} animations converted to new format.",count))
end

View File

@@ -1021,7 +1021,7 @@ def animationEditorMain(animation)
save_data(animation,"Data/PkmnAnimations.rxdata")
end
if pbConfirmMessage(_INTL("Exit from the editor?"))
$PokemonTemp.battleAnims = nil
$game_temp.battle_animations_data = nil
break
end
end

View File

@@ -212,7 +212,7 @@ DebugMenuCommands.register("testwildbattle", {
level = pbMessageChooseNumber(_INTL("Set the wild {1}'s level.",
GameData::Species.get(species).name), params)
if level > 0
$PokemonTemp.encounterType = nil
$game_temp.encounter_type = nil
pbWildBattle(species, level)
end
end
@@ -242,7 +242,7 @@ DebugMenuCommands.register("testwildbattleadvanced", {
next
end
setBattleRule(sprintf("%dv%d", size0, pkmn.length))
$PokemonTemp.encounterType = nil
$game_temp.encounter_type = nil
pbWildBattleCore(*pkmn)
break
elsif pkmnCmd == pkmnCmds.length - 2 # Set player side size

View File

@@ -676,7 +676,7 @@ def pbImportAllAnimations
}
end
save_data(animations,"Data/PkmnAnimations.rxdata")
$PokemonTemp.battleAnims = nil
$game_temp.battle_animations_data = nil
pbDisposeMessageWindow(msgwindow)
pbMessage(_INTL("All animations were imported."))
end