Use new Pokemon::Owner methods

This commit is contained in:
jonisavo
2020-10-16 12:19:15 +03:00
parent 66c255546d
commit 2b2df4ae8f
7 changed files with 11 additions and 14 deletions

View File

@@ -192,8 +192,7 @@ end
def pbHatch(pokemon)
speciesname = pokemon.speciesName
pokemon.name = speciesname
pokemon.trainerID = $Trainer.id
pokemon.ot = $Trainer.name
pokemon.owner = Pokemon::Owner.new_from_trainer($Trainer)
pokemon.happiness = 120
pokemon.timeEggHatched = pbGetTimeNow
pokemon.obtainMode = 1 # hatched from egg