mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-11 23:24:59 +00:00
Adds factory for Pokemon class
This commit is contained in:
@@ -166,7 +166,7 @@ end
|
||||
|
||||
|
||||
def createPokemon(species, level, iv, trainer)
|
||||
pkmn = Pokemon.new(species, level, trainer)
|
||||
pkmn = Pokemon.create(species, level, trainer)
|
||||
pkmn.personalID = rand(2 ** 16) | rand(2 ** 16) << 16
|
||||
GameData::Stat.each_main { |s| pkmn.iv[s.id] = iv }
|
||||
pkmn.calc_stats
|
||||
|
||||
Reference in New Issue
Block a user