Replace all usage of pbNewPkmn with Pokemon.new

This commit is contained in:
Joni Savolainen
2020-09-20 21:34:06 +03:00
parent 1b7ec64d98
commit 7257c7479f
11 changed files with 18 additions and 18 deletions

View File

@@ -404,7 +404,7 @@ end
#===============================================================================
# Returns a Pokémon generated by a wild encounter, given its species and level.
def pbGenerateWildPokemon(species,level,isRoamer=false)
genwildpoke = pbNewPkmn(species,level)
genwildpoke = Pokemon.new(species,level)
# Give the wild Pokémon a held item
items = genwildpoke.wildHoldItems
firstPkmn = $Trainer.firstPokemon

View File

@@ -205,7 +205,7 @@ def pbDayCareGenerateEgg
getConst(PBSpecies,:ILLUMISE)][rand(2)]
end
# Generate egg
egg = pbNewPkmn(babyspecies,EGG_LEVEL)
egg = Pokemon.new(babyspecies,EGG_LEVEL)
# Randomise personal ID
pid = rand(65536)
pid |= (rand(65536)<<16)