fixes crash when downloading base pokemon sprites

This commit is contained in:
infinitefusion
2023-09-17 19:39:26 -04:00
parent 84648ad7b5
commit bd7b6bfa43
2 changed files with 2 additions and 2 deletions

View File

@@ -115,7 +115,7 @@ def download_unfused_alt_sprites(dex_num)
end
def download_alt_sprites(head_id,body_id)
base_url = Settings::CUSTOM_SPRITES_REPO_URL +"{1}.{2}"
base_url = "#{Settings::CUSTOM_SPRITES_REPO_URL}{1}.{2}"
extension = ".png"
destPath = _INTL("{1}{2}", Settings::CUSTOM_BATTLERS_FOLDER_INDEXED, head_id)
if !Dir.exist?(destPath)

View File

@@ -7,5 +7,5 @@ module Settings
AUTOGEN_SPRITES_REPO_URL = "https://gitlab.com/pokemoninfinitefusion/autogen-fusion-sprites/-/raw/master/Battlers/"
CUSTOM_SPRITES_REPO_URL = "https://gitlab.com/pokemoninfinitefusion/customsprites/-/raw/master/CustomBattlers/"
BASE_POKEMON_SPRITES_REPO_URL = "https://gitlab.com/pokemoninfinitefusion/autogen-fusion-sprites/-/raw/master/Battlers/"
BASE_POKEMON_ALT_SPRITES_REPO_URL = "https://gitlab.com/pokemoninfinitefusion/customsprites/-/raw/master/Other/Base%20Sprites/"
BASE_POKEMON_ALT_SPRITES_REPO_URL = "https://gitlab.com/pokemoninfinitefusion/customsprites/-/raw/master/Other/BaseSprites/"
end