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

@@ -408,7 +408,7 @@ end
#end
def getCustomSpeciesList()
def getCustomSpeciesList(allowOnline=true)
speciesList = []
for num in 1..NB_POKEMON
@@ -429,6 +429,16 @@ def getCustomSpeciesList()
end
end
if speciesList.length <= 200 && allowOnline
#try to get list from github
print "let's try it online bruh"
online_list = list_online_custom_sprites
return online_list if online_list !=nil
end
return speciesList
end
# def getCustomSpeciesList()