Fixes new bug crash

This commit is contained in:
infinitefusion
2023-05-07 20:45:28 -04:00
parent 88d8afc05a
commit 4a2cf4342f
16 changed files with 2 additions and 4 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -401,6 +401,7 @@ class PokemonLoadScreen
when cmd_new_game
@scene.pbEndScene
Game.start_new
$PokemonGlobal.alt_sprite_substitutions = {} if !$PokemonGlobal.alt_sprite_substitutions
return
when cmd_new_game_plus
@scene.pbEndScene

View File

@@ -221,6 +221,7 @@ class PokemonPokedexInfo_Scene
end
selected_sprite = @available[index]
species_id = getDexNumberForSpecies(@species)
$PokemonGlobal.alt_sprite_substitutions = {} if !$PokemonGlobal.alt_sprite_substitutions
if $PokemonGlobal.alt_sprite_substitutions[species_id]
return $PokemonGlobal.alt_sprite_substitutions[species_id] == selected_sprite
end
@@ -293,10 +294,6 @@ end
class PokemonGlobalMetadata
attr_accessor :alt_sprite_substitutions
def initialize
@alt_sprite_substitutions = {}
end
end
def set_alt_sprite_substitution(original_sprite_name, selected_alt)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

0
System.rxdata Normal file
View File