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

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -285,11 +285,11 @@ module GameData
["Garde", "voir"], ["Garde", "voir"],
["Sur", "skit"], ["Sur", "skit"],
["Masque", "rain"], ["Masque", "rain"],
["Shroom", "mish"], ["Shroom", "ish"],
["Bre", "reloom"], ["Bre", "loom"],
["Sla", "oth"], ["Sla", "koth"],
["Vigor", "roth"], ["Vigo", "roth"],
["Slak", "aking"], ["Sla", "king"],
["Nin", "cada"], ["Nin", "cada"],
["Nin", "jask"], ["Nin", "jask"],
["Shed", "inja"], ["Shed", "inja"],
@@ -299,7 +299,7 @@ module GameData
["Maku", "hita"], ["Maku", "hita"],
["Hari", "yama"], ["Hari", "yama"],
["Azu", "rill"], ["Azu", "rill"],
["Nose", "ass"], ["Nose", "pass"],
["Skit", "itty"], ["Skit", "itty"],
["Del", "catty"], ["Del", "catty"],
["Sabl", "eye"], ["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) downloaded_file_name = _INTL("{1}/{2}.{3}{4}.png", saveLocation, head_id, body_id, alt_letter)
if !body_id || body_id == "" 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 end
return downloaded_file_name if pbResolveBitmap(downloaded_file_name) 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 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) filename = _INTL("{1}{2}.png",dex_num,alt_letter)
url = base_url + filename url = base_url + filename
destPath = alt_letter == "" ? _INTL("{1}{2}", Settings::BATTLERS_FOLDER, dex_num) : Settings::CUSTOM_BASE_SPRITES_FOLDER 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) sprite = download_sprite(url, dex_num, nil, destPath,alt_letter)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.