Added Setting that makes trainer-owned Pokémon give more Exp, other tweaks

This commit is contained in:
Maruno17
2022-07-03 17:39:44 +01:00
parent a2327c6280
commit 2976ee93ce
7 changed files with 24 additions and 2 deletions

View File

@@ -522,7 +522,18 @@ MenuHandlers.add(:debug_menu, :add_pokemon, {
params.setInitialValue(5)
params.setCancelValue(0)
level = pbMessageChooseNumber(_INTL("Set the Pokémon's level."), params)
pbAddPokemon(species, level) if level > 0
if level > 0
goes_to_party = !$player.party_full?
if pbAddPokemonSilent(species, level)
if goes_to_party
pbMessage(_INTL("Added {1} to party.", GameData::Species.get(species).name))
else
pbMessage(_INTL("Added {1} to Pokémon storage.", GameData::Species.get(species).name))
end
else
pbMessage(_INTL("Couldn't add Pokémon because party and storage are full."))
end
end
end
}
})