mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Converted Shadow Pokémon PBS file to a section-based format, improved Shadow Pokémon mechanics
This commit is contained in:
@@ -1144,7 +1144,7 @@ DebugMenuCommands.register("createpbs", {
|
||||
"pokemon_metrics.txt",
|
||||
"regional_dexes.txt",
|
||||
"ribbons.txt",
|
||||
"shadow_movesets.txt",
|
||||
"shadow_pokemon.txt",
|
||||
"town_map.txt",
|
||||
"trainer_types.txt",
|
||||
"trainers.txt",
|
||||
@@ -1169,7 +1169,7 @@ DebugMenuCommands.register("createpbs", {
|
||||
when 13 then Compiler.write_pokemon_metrics
|
||||
when 14 then Compiler.write_regional_dexes
|
||||
when 15 then Compiler.write_ribbons
|
||||
when 16 then Compiler.write_shadow_movesets
|
||||
when 16 then Compiler.write_shadow_pokemon
|
||||
when 17 then Compiler.write_town_map
|
||||
when 18 then Compiler.write_trainer_types
|
||||
when 19 then Compiler.write_trainers
|
||||
|
||||
@@ -1132,10 +1132,10 @@ PokemonDebugMenuCommands.register("shadowpkmn", {
|
||||
if pkmn.shadowPokemon?
|
||||
oldheart = pkmn.heart_gauge
|
||||
params = ChooseNumberParams.new
|
||||
params.setRange(0, Pokemon::HEART_GAUGE_SIZE)
|
||||
params.setRange(0, pkmn.max_gauge_size)
|
||||
params.setDefaultValue(pkmn.heart_gauge)
|
||||
val = pbMessageChooseNumber(
|
||||
_INTL("Set the heart gauge (max. {1}).", Pokemon::HEART_GAUGE_SIZE),
|
||||
_INTL("Set the heart gauge (max. {1}).", pkmn.max_gauge_size),
|
||||
params) { screen.pbUpdate }
|
||||
if val != oldheart
|
||||
pkmn.adjustHeart(val - oldheart)
|
||||
|
||||
Reference in New Issue
Block a user