mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-11 15:15:00 +00:00
Moved methods that return item/trainer graphics, refactored evolution helper methods, rearranged some methods
This commit is contained in:
@@ -574,7 +574,7 @@ $canEvolve = {}
|
||||
class BabyRestriction
|
||||
def isValid?(pokemon)
|
||||
baby=$babySpeciesData[pokemon.species] ? $babySpeciesData[pokemon.species] :
|
||||
($babySpeciesData[pokemon.species]=pbGetBabySpecies(pokemon.species))
|
||||
($babySpeciesData[pokemon.species]=EvolutionHelper.baby_species(pokemon.species))
|
||||
return baby==pokemon.species
|
||||
end
|
||||
end
|
||||
@@ -584,10 +584,10 @@ end
|
||||
class UnevolvedFormRestriction
|
||||
def isValid?(pokemon)
|
||||
baby=$babySpeciesData[pokemon.species] ? $babySpeciesData[pokemon.species] :
|
||||
($babySpeciesData[pokemon.species]=pbGetBabySpecies(pokemon.species))
|
||||
($babySpeciesData[pokemon.species]=EvolutionHelper.baby_species(pokemon.species))
|
||||
return false if baby!=pokemon.species
|
||||
canEvolve=($canEvolve[pokemon.species]!=nil) ? $canEvolve[pokemon.species] :
|
||||
($canEvolve[pokemon.species]=(pbGetEvolvedFormData(pokemon.species,true).length!=0))
|
||||
($canEvolve[pokemon.species]=(EvolutionHelper.evolutions(pokemon.species, true).length!=0))
|
||||
return false if !canEvolve
|
||||
return true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user