mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixes new pokemon sprites not displaying in pokeradar
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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.
Reference in New Issue
Block a user