Fixes path issue after downloading autogen and unfused alt sprites

This commit is contained in:
infinitefusion
2023-11-19 09:33:46 -05:00
parent 7bfaec31f2
commit 6e5f7bbce2
16 changed files with 7 additions and 9 deletions

View File

@@ -285,11 +285,11 @@ module GameData
["Garde", "voir"],
["Sur", "skit"],
["Masque", "rain"],
["Shroom", "mish"],
["Bre", "reloom"],
["Sla", "oth"],
["Vigor", "roth"],
["Slak", "aking"],
["Shroom", "ish"],
["Bre", "loom"],
["Sla", "koth"],
["Vigo", "roth"],
["Sla", "king"],
["Nin", "cada"],
["Nin", "jask"],
["Shed", "inja"],
@@ -299,7 +299,7 @@ module GameData
["Maku", "hita"],
["Hari", "yama"],
["Azu", "rill"],
["Nose", "ass"],
["Nose", "pass"],
["Skit", "itty"],
["Del", "catty"],
["Sabl", "eye"],

View File

@@ -56,7 +56,7 @@ def download_sprite(base_path, head_id, body_id, saveLocation = "Graphics/temp",
downloaded_file_name = _INTL("{1}/{2}.{3}{4}.png", saveLocation, head_id, body_id, alt_letter)
if !body_id || body_id == ""
downloaded_file_name = _INTL("{1}/{2}{3}.png", saveLocation, head_id, alt_letter)
downloaded_file_name = _INTL("{1}{2}{3}.png", saveLocation, head_id, alt_letter)
end
return downloaded_file_name if pbResolveBitmap(downloaded_file_name)
@@ -109,8 +109,6 @@ def download_unfused_main_sprite(dex_num, alt_letter="")
base_url = alt_letter == "" ? Settings::BASE_POKEMON_SPRITES_REPO_URL : Settings::BASE_POKEMON_ALT_SPRITES_REPO_URL
filename = _INTL("{1}{2}.png",dex_num,alt_letter)
url = base_url + filename
destPath = alt_letter == "" ? _INTL("{1}{2}", Settings::BATTLERS_FOLDER, dex_num) : Settings::CUSTOM_BASE_SPRITES_FOLDER
sprite = download_sprite(url, dex_num, nil, destPath,alt_letter)