Fixed bug with trainer data, tidied evolution-checking code

This commit is contained in:
Maruno17
2021-02-02 23:09:57 +00:00
parent 44e3c934ad
commit e1e9706cd9
5 changed files with 42 additions and 37 deletions

View File

@@ -177,7 +177,7 @@ def pbChangeLevel(pkmn,newlevel,scene)
pbLearnMove(pkmn,i[1],true) { scene.pbUpdate }
end
# Check for evolution
newspecies = EvolutionCheck.check(pkmn)
newspecies = EvolutionCheck.check_level_up_methods(pkmn)
if newspecies
pbFadeOutInWithMusic {
evo = PokemonEvolutionScene.new
@@ -490,7 +490,7 @@ def pbUseItem(bag,item,bagscene=nil)
if itm.is_evolution_stone?
annot = []
for pkmn in $Trainer.party
elig = EvolutionCheck.check(pkmn, item)
elig = EvolutionCheck.check_item_methods(pkmn, item)
annot.push((elig) ? _INTL("ABLE") : _INTL("NOT ABLE"))
end
end