Makes it possible to download sprites at runtime

This commit is contained in:
chardub
2023-02-02 21:43:05 -05:00
parent ee2e718361
commit ad2e6e728c
7 changed files with 43 additions and 28 deletions

View File

@@ -132,7 +132,7 @@ end
def getRandomCustomFusionForIntro(returnRandomPokemonIfNoneFound = true, customPokeList = [], maxPoke = -1, recursionLimit = 3)
if customPokeList.length == 0
customPokeList = getCustomSpeciesList()
customPokeList = getCustomSpeciesList(false )
end
randPoke = []
if customPokeList.length >= 5000
@@ -401,9 +401,18 @@ def customSpriteExists(species)
head = getBasePokemonID(species, false)
body = getBasePokemonID(species, true)
pathCustom = getCustomSpritePath(body,head)
return pbResolveBitmap(pathCustom) != nil
return true if pbResolveBitmap(pathCustom) != nil
return download_custom_sprite(head, body) != nil
end
def customSpriteExistsBase(head,body)
pathCustom = getCustomSpritePath(body,head)
return true if pbResolveBitmap(pathCustom) != nil
return download_custom_sprite(head, body) != nil
end
def getArceusPlateType(heldItem)
return :NORMAL if heldItem == nil
case heldItem