Fixed inconsistency in

Data/Scripts/001_Settings.rb sprite folder paths
and modified all references to these constants
to match the new convention. These paths will now
always contain the ending slash.
This commit is contained in:
Samppa Alatalo
2023-03-20 01:48:32 +02:00
parent 3849fac249
commit 579daa126d
6 changed files with 16 additions and 17 deletions

View File

@@ -14,12 +14,12 @@ class PokedexUtils
head_id = getHeadID(species, body_id)
baseFilename = head_id.to_s + "." + body_id.to_s
baseFilePath = Settings::CUSTOM_BATTLERS_FOLDER_INDEXED + "/" + head_id.to_s + "/" + baseFilename + ".png"
baseFilePath = Settings::CUSTOM_BATTLERS_FOLDER_INDEXED + head_id.to_s + "/" + baseFilename + ".png"
if pbResolveBitmap(baseFilePath)
ret << baseFilePath
end
POSSIBLE_ALTS.each { |alt_letter|
altFilePath = Settings::CUSTOM_BATTLERS_FOLDER_INDEXED + "/" + head_id.to_s + "/" + baseFilename + alt_letter + ".png"
altFilePath = Settings::CUSTOM_BATTLERS_FOLDER_INDEXED + head_id.to_s + "/" + baseFilename + alt_letter + ".png"
if pbResolveBitmap(altFilePath)
ret << altFilePath
end