mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 13:44:59 +00:00
Fixed prevolution data not being determined for species that don't evolve further
This commit is contained in:
@@ -862,7 +862,6 @@ def pbCompilePokemonData
|
|||||||
end
|
end
|
||||||
# Add prevolution data to all species as the first "evolution method".
|
# Add prevolution data to all species as the first "evolution method".
|
||||||
for sp in 1..maxValue
|
for sp in 1..maxValue
|
||||||
next if !evolutions[sp]
|
|
||||||
preSpecies = -1
|
preSpecies = -1
|
||||||
evoData = nil
|
evoData = nil
|
||||||
# Check for another species that evolves into sp.
|
# Check for another species that evolves into sp.
|
||||||
@@ -878,6 +877,7 @@ def pbCompilePokemonData
|
|||||||
end
|
end
|
||||||
next if !evoData # evoData[1]=method, evoData[2]=level - both are unused
|
next if !evoData # evoData[1]=method, evoData[2]=level - both are unused
|
||||||
# Found a species that evolves into e, record it as a prevolution.
|
# Found a species that evolves into e, record it as a prevolution.
|
||||||
|
evolutions[sp] = [] if !evolutions[sp]
|
||||||
evolutions[sp] = [[preSpecies,evoData[1],evoData[2],true]].concat(evolutions[sp])
|
evolutions[sp] = [[preSpecies,evoData[1],evoData[2],true]].concat(evolutions[sp])
|
||||||
end
|
end
|
||||||
# Save evolutions data.
|
# Save evolutions data.
|
||||||
|
|||||||
Reference in New Issue
Block a user