mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
fix for generated sprites in pokedex sprites page + colored background for current sprite
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user