fix for generated sprites in pokedex sprites page + colored background for current sprite

This commit is contained in:
infinitefusion
2022-06-19 17:28:23 -04:00
parent f17ae642a3
commit da75c7fa95
17 changed files with 129 additions and 80 deletions

View File

@@ -104,8 +104,12 @@ module GameData
end
end
customPath = pbResolveBitmap(Settings::CUSTOM_BATTLERS_FOLDER + filename)
regularPath = Settings::BATTLERS_FOLDER + folder + "/" + filename
return customPath ? customPath : pbResolveBitmap(regularPath)
species = getSpecies(dex_number)
use_custom = customPath && !species.always_use_generated
if use_custom
return customPath
end
return Settings::BATTLERS_FOLDER + folder + "/" + filename
end
end