diff --git a/Data/Scripts/013_Items/004_1_PokeradarUI.rb b/Data/Scripts/013_Items/004_1_PokeradarUI.rb index 3a25dc9f1..f9721783b 100644 --- a/Data/Scripts/013_Items/004_1_PokeradarUI.rb +++ b/Data/Scripts/013_Items/004_1_PokeradarUI.rb @@ -111,7 +111,7 @@ class PokeRadar_UI bitmap1 = AnimatedBitmap.new(GameData::Species.icon_filename(headPoke)) bitmap2 = AnimatedBitmap.new(GameData::Species.icon_filename(bodyPoke)) - + ensureFusionIconExists() bitmapFileName = sprintf("Graphics/Pokemon/FusionIcons/icon%03d", pokemonId) headPokeFileName = GameData::Species.icon_filename(headPoke) bitmapPath = sprintf("%s.png", bitmapFileName) diff --git a/Data/Scripts/014_Pokemon/001_Pokemon-related/003_Pokemon_Sprites.rb b/Data/Scripts/014_Pokemon/001_Pokemon-related/003_Pokemon_Sprites.rb index 6c8a97268..da25ddfcf 100644 --- a/Data/Scripts/014_Pokemon/001_Pokemon-related/003_Pokemon_Sprites.rb +++ b/Data/Scripts/014_Pokemon/001_Pokemon-related/003_Pokemon_Sprites.rb @@ -188,6 +188,7 @@ class PokemonIconSprite < SpriteWrapper icon2 = AnimatedBitmap.new(GameData::Species.icon_filename(bodyPoke)) dexNum = getDexNumberForSpecies(@pokemon.species) + ensureFusionIconExists bitmapFileName = sprintf("Graphics/Pokemon/FusionIcons/icon%03d", dexNum) headPokeFileName = GameData::Species.icon_filename(headPoke) bitmapPath = sprintf("%s.png", bitmapFileName) diff --git a/Data/Scripts/016_UI/017_UI_PokemonStorage.rb b/Data/Scripts/016_UI/017_UI_PokemonStorage.rb index 669779865..783cf08ee 100644 --- a/Data/Scripts/016_UI/017_UI_PokemonStorage.rb +++ b/Data/Scripts/016_UI/017_UI_PokemonStorage.rb @@ -35,6 +35,7 @@ class PokemonBoxIcon < IconSprite icon2 = AnimatedBitmap.new(GameData::Species.icon_filename(bodyPoke)) dexNum = getDexNumberForSpecies(species) + ensureFusionIconExists bitmapFileName = sprintf("Graphics/Pokemon/FusionIcons/icon%03d", dexNum) headPokeFileName = GameData::Species.icon_filename(headPoke) bitmapPath = sprintf("%s.png", bitmapFileName) diff --git a/Data/Scripts/050_AddOns/GeneralUtils.rb b/Data/Scripts/050_AddOns/GeneralUtils.rb index 81d5ff810..89b090c8c 100644 --- a/Data/Scripts/050_AddOns/GeneralUtils.rb +++ b/Data/Scripts/050_AddOns/GeneralUtils.rb @@ -48,6 +48,11 @@ def pbAddPokemonID(pokemon_id, level = 1, see_form = true, skip_randomize = fals end +def ensureFusionIconExists + directory_name = "Graphics/Pokemon/FusionIcons" + Dir.mkdir(directory_name) unless File.exists?(directory_name) +end + def addNewTripleFusion(pokemon1,pokemon2,pokemon3,level = 1) return if !pokemon1 return if !pokemon2 diff --git a/Data/System.rxdata b/Data/System.rxdata index 147c3ffdd..b20b3942f 100644 Binary files a/Data/System.rxdata and b/Data/System.rxdata differ