mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 21:54:58 +00:00
Fixes kin island pokemon club trainers not using fusions
This commit is contained in:
@@ -604,32 +604,39 @@ DebugMenuCommands.register("fillboxes", {
|
||||
added = 0
|
||||
box_qty = $PokemonStorage.maxPokemon(0)
|
||||
completed = true
|
||||
GameData::Species.each do |species_data|
|
||||
sp = species_data.species
|
||||
f = species_data.form
|
||||
# Record each form of each species as seen and owned
|
||||
if f == 0
|
||||
if [:AlwaysMale, :AlwaysFemale, :Genderless].include?(species_data.gender_ratio)
|
||||
g = (species_data.gender_ratio == :AlwaysFemale) ? 1 : 0
|
||||
$Trainer.pokedex.register(sp, g, f, false)
|
||||
else # Both male and female
|
||||
$Trainer.pokedex.register(sp, 0, f, false)
|
||||
$Trainer.pokedex.register(sp, 1, f, false)
|
||||
end
|
||||
$Trainer.pokedex.set_owned(sp, false)
|
||||
elsif species_data.real_form_name && !species_data.real_form_name.empty?
|
||||
g = (species_data.gender_ratio == :AlwaysFemale) ? 1 : 0
|
||||
$Trainer.pokedex.register(sp, g, f, false)
|
||||
end
|
||||
# Add Pokémon (if form 0, i.e. one of each species)
|
||||
next if f != 0
|
||||
if added >= Settings::NUM_STORAGE_BOXES * box_qty
|
||||
completed = false
|
||||
next
|
||||
end
|
||||
added += 1
|
||||
$PokemonStorage[(added - 1) / box_qty, (added - 1) % box_qty] = Pokemon.new(sp, 50)
|
||||
for num in 1..NB_POKEMON
|
||||
pokemon = getPokemon(num)
|
||||
pbAddPokemonSilent(pokemon,50)
|
||||
end
|
||||
|
||||
|
||||
# GameData::Species.each do |species_data|
|
||||
# break if species_data.is_fusion
|
||||
# sp = species_data.species
|
||||
# f = species_data.form
|
||||
# # Record each form of each species as seen and owned
|
||||
# if f == 0
|
||||
# if [:AlwaysMale, :AlwaysFemale, :Genderless].include?(species_data.gender_ratio)
|
||||
# g = (species_data.gender_ratio == :AlwaysFemale) ? 1 : 0
|
||||
# $Trainer.pokedex.register(sp, g, f, false)
|
||||
# else # Both male and female
|
||||
# $Trainer.pokedex.register(sp, 0, f, false)
|
||||
# $Trainer.pokedex.register(sp, 1, f, false)
|
||||
# end
|
||||
# $Trainer.pokedex.set_owned(sp, false)
|
||||
# elsif species_data.real_form_name && !species_data.real_form_name.empty?
|
||||
# g = (species_data.gender_ratio == :AlwaysFemale) ? 1 : 0
|
||||
# $Trainer.pokedex.register(sp, g, f, false)
|
||||
# end
|
||||
# # Add Pokémon (if form 0, i.e. one of each species)
|
||||
# next if f != 0
|
||||
# if added >= Settings::NUM_STORAGE_BOXES * box_qty
|
||||
# completed = false
|
||||
# next
|
||||
# end
|
||||
# added += 1
|
||||
# $PokemonStorage[(added - 1) / box_qty, (added - 1) % box_qty] = Pokemon.new(sp, 50)
|
||||
# end
|
||||
$Trainer.pokedex.refresh_accessible_dexes
|
||||
pbMessage(_INTL("Storage boxes were filled with one Pokémon of each species."))
|
||||
if !completed
|
||||
|
||||
Reference in New Issue
Block a user