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

@@ -206,7 +206,7 @@ def pbStartTrade(pokemonIndex,newpoke,nickname,trainerName,trainerGender=0)
raise _INTL("Species does not exist ({1}).",newpoke) if !hasConst?(PBSpecies,newpoke)
newpoke = getID(PBSpecies,newpoke)
end
yourPokemon = pbNewPkmn(newpoke,myPokemon.level,opponent)
yourPokemon = Pokemon.new(newpoke,myPokemon.level,opponent)
end
yourPokemon.name = nickname
yourPokemon.obtainMode = 2 # traded

View File

@@ -212,14 +212,14 @@ class PurifyChamber # German: der Kryptorbis
def debugAddShadow(set,species)
species=getID(PBSpecies,species)
pkmn=pbNewPkmn(species,1)
pkmn=Pokemon.new(species,1)
pkmn.makeShadow
setShadow(set,pkmn)
end
def debugAddNormal(set,species)
species=getID(PBSpecies,species)
pkmn=pbNewPkmn(species,1)
pkmn=Pokemon.new(species,1)
insertAfter(set,setCount(set),pkmn)
end