mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 05:34:58 +00:00
fetch custom sprites list from github (small fixes)
This commit is contained in:
@@ -361,7 +361,6 @@ def Kernel.pbShuffleTrainersCustom(bst_range = 50)
|
||||
|
||||
Kernel.pbMessage(_INTL("Parsing custom sprites folder"))
|
||||
customsList = getCustomSpeciesList(true)
|
||||
p customsList
|
||||
Kernel.pbMessage(_INTL("{1} sprites found", customsList.length.to_s))
|
||||
|
||||
if customsList.length == 0
|
||||
@@ -383,7 +382,6 @@ def Kernel.pbShuffleTrainersCustom(bst_range = 50)
|
||||
Kernel.pbShuffleTrainers(bst_range, true, customsList)
|
||||
end
|
||||
|
||||
|
||||
# trainers=load_data("Data/trainers.dat")
|
||||
# i=0
|
||||
# for trainer in trainers
|
||||
@@ -412,7 +410,6 @@ end
|
||||
# return (body*NB_POKEMON)+head
|
||||
#end
|
||||
|
||||
|
||||
def getCustomSpeciesList(allowOnline = false)
|
||||
speciesList = []
|
||||
|
||||
@@ -432,9 +429,8 @@ def getCustomSpeciesList(allowOnline=false)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
if speciesList.length <= 200 && allowOnline
|
||||
Kernel.pbMessage(_INTL("Not enough local sprites found, attempting to fetch list from the internet."))
|
||||
if Kernel.pbConfirmMessage(_INTL("Not enough local sprites found. Attempt to fetch list from the internet?"))
|
||||
#try to get list from github
|
||||
online_list = list_online_custom_sprites(true)
|
||||
return speciesList if !online_list
|
||||
@@ -445,7 +441,7 @@ def getCustomSpeciesList(allowOnline=false)
|
||||
end
|
||||
return species_id_list
|
||||
end
|
||||
|
||||
end
|
||||
return speciesList
|
||||
end
|
||||
|
||||
@@ -482,7 +478,6 @@ end
|
||||
# end
|
||||
# end
|
||||
|
||||
|
||||
def Kernel.getBaseStats(species)
|
||||
if $pkmn_dex[species] == nil
|
||||
print species
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user