mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 14:14:59 +00:00
Replace all usage of pbNewPkmn with Pokemon.new
This commit is contained in:
@@ -348,7 +348,7 @@ def pbDebugMenuActions(cmd="",sprites=nil,viewport=nil)
|
||||
params.setCancelValue(0)
|
||||
level = pbMessageChooseNumber(_INTL("Set the wild {1}'s level.",PBSpecies.getName(species)),params)
|
||||
if level>0
|
||||
pkmn.push(pbNewPkmn(species,level))
|
||||
pkmn.push(Pokemon.new(species,level))
|
||||
end
|
||||
end
|
||||
else # Edit a Pokémon
|
||||
@@ -563,7 +563,7 @@ def pbDebugMenuActions(cmd="",sprites=nil,viewport=nil)
|
||||
end
|
||||
cname = getConstantName(PBSpecies,i) rescue nil
|
||||
next if !cname
|
||||
pkmn = pbNewPkmn(i,50)
|
||||
pkmn = Pokemon.new(i,50)
|
||||
$PokemonStorage[(i-1)/$PokemonStorage.maxPokemon(0),
|
||||
(i-1)%$PokemonStorage.maxPokemon(0)] = pkmn
|
||||
# Record all forms of this Pokémon as seen and owned
|
||||
|
||||
@@ -527,7 +527,7 @@ def pbCreatePokemon
|
||||
for i in 0...party.length
|
||||
species = party[i]
|
||||
# Generate Pokémon with species and level 20
|
||||
$Trainer.party[i] = pbNewPkmn(species,20)
|
||||
$Trainer.party[i] = Pokemon.new(species,20)
|
||||
$Trainer.seen[species] = true # Set this species to seen and owned
|
||||
$Trainer.owned[species] = true
|
||||
pbSeenForm($Trainer.party[i])
|
||||
|
||||
Reference in New Issue
Block a user