Adds art gallery

This commit is contained in:
infinitefusion
2023-04-09 16:57:26 -04:00
parent a2416d7055
commit f855f8e951
17 changed files with 42925 additions and 25 deletions

View File

@@ -208,13 +208,20 @@ def getEvolution(speciesParam, halfToEvolve=nil)
end
end
def getFusionSpecies(body, head)
def getFusionSpeciesSymbol(body, head)
body_num = dexNum(body)
head_num = dexNum(head)
id = body_num * Settings::NB_POKEMON + head_num
return GameData::Species.get(id).species
end
def getFusionSpecies(body, head)
body_num = dexNum(body)
head_num = dexNum(head)
id = body_num * Settings::NB_POKEMON + head_num
return GameData::Species.get(id)
end
#
def evolveHead(species)
species_id = getDexNumberForSpecies(species)
@@ -225,7 +232,7 @@ def evolveHead(species)
head = getBasePokemonID(species_id, false)
body = getBasePokemonID(species_id)
headEvo = getEvolution(head)
return headEvo == -1 ? species_id : getFusionSpecies(body, headEvo)
return headEvo == -1 ? species_id : getFusionSpeciesSymbol(body, headEvo)
end
def evolveBody(species)
@@ -237,7 +244,7 @@ def evolveBody(species)
head = getBasePokemonID(species_id, false)
body = getBasePokemonID(species_id)
bodyEvo = getEvolution(body)
return bodyEvo == -1 ? species_id : getFusionSpecies(bodyEvo, head)
return bodyEvo == -1 ? species_id : getFusionSpeciesSymbol(bodyEvo, head)
end
def getCorrectEvolvedSpecies(pokemon)