mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-13 16:04:58 +00:00
Replace all usage of pbNewPkmn with Pokemon.new
This commit is contained in:
@@ -114,7 +114,7 @@ class BugContestState
|
||||
if !enc
|
||||
raise _INTL("No encounters for map {1}, so can't judge contest",@contestMap)
|
||||
end
|
||||
pokemon=pbNewPkmn(enc[0],enc[1])
|
||||
pokemon=Pokemon.new(enc[0],enc[1])
|
||||
pokemon.hp=1+rand(pokemon.totalhp-1)
|
||||
score=pbBugContestScore(pokemon)
|
||||
judgearray.push([cont,pokemon.species,score])
|
||||
|
||||
@@ -159,7 +159,7 @@ class PBPokemon
|
||||
end
|
||||
|
||||
def createPokemon(level,iv,trainer)
|
||||
pokemon=pbNewPkmn(@species,level,trainer,false)
|
||||
pokemon=Pokemon.new(@species,level,trainer,false)
|
||||
pokemon.setItem(@item)
|
||||
pokemon.personalID=rand(65536)
|
||||
pokemon.personalID|=rand(65536)<<8
|
||||
|
||||
Reference in New Issue
Block a user