Fixes new pokemon sprites not displaying in pokeradar

This commit is contained in:
infinitefusion
2023-11-14 19:52:09 -05:00
parent e292078d17
commit e4ae8802d5
3 changed files with 4 additions and 4 deletions

View File

@@ -61,9 +61,9 @@ class PokeRadar_UI
def addPokemonIcon(species, blackened = false, rare=false)
pokemonId=dexNum(species)
iconId = _INTL("icon{1}", pokemonId)
iconId = _INTL("{1}", species)
pokemonBitmap = pbCheckPokemonIconFiles(getDexNumberForSpecies(pokemonId))
pokemonBitmap = pbCheckPokemonIconFiles(species)
if rare
outlineSprite = IconSprite.new(@current_x, @current_y)

View File

@@ -118,12 +118,12 @@ def pbPokemonIconFile(pokemon)
return bitmapFileName
end
def pbCheckPokemonIconFiles(speciesNum, egg = false, dna = false)
def pbCheckPokemonIconFiles(speciesID, egg = false, dna = false)
if egg
bitmapFileName = sprintf("Graphics/Icons/iconEgg")
return pbResolveBitmap(bitmapFileName)
else
bitmapFileName = sprintf("Graphics/Icons/icon%03d", speciesNum)
bitmapFileName = _INTL("Graphics/Pokemon/Icons/{1}", speciesID)
ret = pbResolveBitmap(bitmapFileName)
return ret if ret
end

Binary file not shown.