mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 06:34:59 +00:00
Revert "Adds factory for Pokemon class"
This reverts commit d304d223bd.
This commit is contained in:
@@ -549,7 +549,7 @@ def customTrainerBattle(trainerName, trainerType, party_array, default_level=50,
|
||||
if pokemon.is_a?(Pokemon)
|
||||
party << pokemon
|
||||
elsif pokemon.is_a?(Symbol)
|
||||
party << Pokemon.create(pokemon,default_level,trainer)
|
||||
party << Pokemon.new(pokemon,default_level,trainer)
|
||||
end
|
||||
}
|
||||
trainer.party=party
|
||||
|
||||
@@ -394,7 +394,7 @@ end
|
||||
# Applies wild Pokémon modifiers (wild held item, shiny chance modifiers,
|
||||
# Pokérus, gender/nature forcing because of player's lead Pokémon).
|
||||
def pbGenerateWildPokemon(species,level,isRoamer=false)
|
||||
genwildpoke = Pokemon.create(species,level)
|
||||
genwildpoke = Pokemon.new(species,level)
|
||||
# Give the wild Pokémon a held item
|
||||
items = genwildpoke.wildHoldItems
|
||||
first_pkmn = $Trainer.first_pokemon
|
||||
|
||||
Reference in New Issue
Block a user