REVERSED MODE

This commit is contained in:
infinitefusion
2021-12-26 15:36:25 -05:00
parent 98d365a2b7
commit 56c13d0907
14 changed files with 16 additions and 0 deletions

View File

@@ -356,5 +356,15 @@ def getArceusPlateType(heldItem)
end
end
def reverseFusionSpecies(species)
dexId = getDexNumberForSpecies(species)
return species if dexId <= NB_POKEMON
return species if dexId > (NB_POKEMON * NB_POKEMON) + NB_POKEMON
body = getBasePokemonID(dexId, true)
head = getBasePokemonID(dexId, false)
newspecies = (head) * NB_POKEMON + body
return getPokemon(newspecies)
end