mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
WIP 5.1 stuff
This commit is contained in:
@@ -85,75 +85,6 @@ def extract_custom_sprites_that_evolve_into_non_customs(includeOnlyNextEvos=true
|
||||
|
||||
end
|
||||
|
||||
def listAllFinalEvos
|
||||
finalEvos = []
|
||||
for dexNum in 1..PBSpecies.maxValue
|
||||
species = GameData::Species.get(dexNum)
|
||||
if species.get_evolutions.length==0
|
||||
finalEvos << species
|
||||
end
|
||||
end
|
||||
return finalEvos
|
||||
end
|
||||
|
||||
def getPreEvoCustomSprites(species, customSPritesList)
|
||||
pre_evos_with_custom_sprites = []
|
||||
|
||||
for species_id in species.get_pre_evolutions
|
||||
species = GameData::Species.get(species_id)
|
||||
dexNum = species.id_number
|
||||
if customSPritesList.include?(dexNum)
|
||||
pre_evos_with_custom_sprites << species
|
||||
# echo species
|
||||
# echo "\n"
|
||||
end
|
||||
end
|
||||
return pre_evos_with_custom_sprites
|
||||
end
|
||||
|
||||
def extract_pokes_with_non_custom_final_evos2()
|
||||
|
||||
outfile = "nonCustomFinals2.csv"
|
||||
customSpecies = getCustomSpeciesList()
|
||||
alreadyWritten = []
|
||||
finalEvolutions = listAllFinalEvos()
|
||||
echo "\n\n"
|
||||
echo "WRITING FILE..."
|
||||
echo "\n\n"
|
||||
|
||||
File.open(outfile,"wb") { |f|
|
||||
for evo in finalEvolutions
|
||||
dexnum = evo.id_number
|
||||
if !customSpecies.include?(dexnum)
|
||||
preEvoCustomSprites = getPreEvoCustomSprites(evo,customSpecies)
|
||||
if preEvoCustomSprites.length >0
|
||||
|
||||
body = getBodyID(evo.id_number)
|
||||
head = getHeadID(evo.id_number,body)
|
||||
|
||||
# f.write((head.to_s) +";")
|
||||
# f.write(".;")
|
||||
# f.write((body.to_s) +";")
|
||||
f.write((head.to_s + "." + body.to_s) +";")
|
||||
f.write(" evolves from : ;")
|
||||
written_prevos=[]
|
||||
for prevo in preEvoCustomSprites
|
||||
next if written_prevos.include?(prevo)
|
||||
prevoBody = getBodyID(prevo.id_number)
|
||||
prevoHead = getHeadID(prevo.id_number,prevoBody)
|
||||
|
||||
f.write((prevoHead.to_s + "." + prevoBody.to_s) +";")
|
||||
written_prevos << prevo
|
||||
end
|
||||
f.write("\n")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
|
||||
def extract_pokes_with_non_custom_final_evos(includeOnlyNextEvos=true)
|
||||
outfile = "nonCustomFinals.csv"
|
||||
|
||||
Reference in New Issue
Block a user