Merge branch 'dev' into dev-gen8

This commit is contained in:
Maruno17
2021-07-10 19:49:08 +01:00
5 changed files with 24 additions and 8 deletions

View File

@@ -83,16 +83,20 @@ PokemonDebugMenuCommands.register("setstatus", {
ids = [:NONE]
GameData::Status.each do |s|
next if s.id == :NONE
commands.push(s.name)
commands.push(_INTL("Set {1}", s.name))
ids.push(s.id)
end
loop do
cmd = screen.pbShowCommands(_INTL("Set {1}'s status.", pkmn.name), commands, cmd)
msg = _INTL("Current status: {1}", GameData::Status.get(pkmn.status).name)
if pkmn.status == :SLEEP
msg = _INTL("Current status: {1} (turns: {2})",
GameData::Status.get(pkmn.status).name, pkmn.statusCount)
end
cmd = screen.pbShowCommands(msg, commands, cmd)
break if cmd < 0
case cmd
when 0 # Cure
pkmn.heal_status
screen.pbDisplay(_INTL("{1}'s status was cured.", pkmn.name))
screen.pbRefreshSingle(pkmnid)
else # Give status problem
count = 0