mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-12 07:35:00 +00:00
Replace all usage of pbNewPkmn with Pokemon.new
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user