More additions to the battle debug menu

This commit is contained in:
Maruno17
2021-12-21 20:50:08 +00:00
parent 6b3fa5e1bf
commit 022dc7aadb
5 changed files with 490 additions and 393 deletions

View File

@@ -4,7 +4,6 @@
Positions (Battle::ActivePosition)
PBEffects::HealingWish
PBEffects::LunarDance
backdrop, backdropBase
turnCount
items (of foe trainers)
initialItems - Array of two arrays, each with one value per party index
@@ -92,7 +91,7 @@ BattleDebugMenuCommands.register("list_player_battlers", {
loop do
cmd = pbMessage("\\ts[]" + _INTL("Choose a Pokémon."), cmds, -1, nil, cmd)
break if cmd < 0
battle.pbBattleBattlerDebug(battlers[cmd])
battle.pbBattlePokemonDebug(battlers[cmd].pokemon, battlers[cmd])
end
}
})
@@ -113,7 +112,7 @@ BattleDebugMenuCommands.register("list_foe_battlers", {
loop do
cmd = pbMessage("\\ts[]" + _INTL("Choose a Pokémon."), cmds, -1, nil, cmd)
break if cmd < 0
battle.pbBattleBattlerDebug(battlers[cmd])
battle.pbBattlePokemonDebug(battlers[cmd].pokemon, battlers[cmd])
end
}
})
@@ -293,6 +292,31 @@ BattleDebugMenuCommands.register("environment", {
}
})
BattleDebugMenuCommands.register("backdrop", {
"parent" => "field",
"name" => _INTL("Backdrop Names"),
"description" => _INTL("Set the names of the backdrop and base graphics."),
"always_show" => true,
"effect" => proc { |battle|
loop do
cmd = pbMessage("\\ts[]" + _INTL("Set which backdrop name?"),
[_INTL("Backdrop"),
_INTL("Base modifier")], -1)
break if cmd < 0
case cmd
when 0 # Backdrop
text = pbMessageFreeText("\\ts[]" + _INTL("Set the backdrop's name."),
battle.backdrop, false, 100, Graphics.width)
battle.backdrop = (nil_or_empty?(text)) ? "Indoor1" : text
when 1 # Base modifier
text = pbMessageFreeText("\\ts[]" + _INTL("Set the base modifier text."),
battle.backdropBase, false, 100, Graphics.width)
battle.backdropBase = (nil_or_empty?(text)) ? nil : text
end
end
}
})
BattleDebugMenuCommands.register("set_field_effects", {
"parent" => "field",
"name" => _INTL("Other Field Effects..."),