mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 06:34:59 +00:00
Use new Pokemon::Owner methods
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user