Super shininess can now be set for a Pokémon, and trainers.txt can define a Pokémon as super shiny

This commit is contained in:
Maruno17
2021-06-24 18:21:47 +01:00
parent bb429a2680
commit 223d480e0f
4 changed files with 50 additions and 38 deletions

View File

@@ -863,19 +863,26 @@ PokemonDebugMenuCommands.register("setshininess", {
"effect" => proc { |pkmn, pkmnid, heldpoke, settingUpBattle, screen|
cmd = 0
loop do
msg = [_INTL("Is shiny."), _INTL("Is normal (not shiny).")][pkmn.shiny? ? 0 : 1]
msg_idx = pkmn.shiny? ? (pkmn.super_shiny? ? 1 : 0) : 2
msg = [_INTL("Is shiny."), _INTL("Is super shiny."), _INTL("Is normal (not shiny).")][msg_idx]
cmd = screen.pbShowCommands(msg, [
_INTL("Make shiny"),
_INTL("Make super shiny"),
_INTL("Make normal"),
_INTL("Reset")], cmd)
break if cmd < 0
case cmd
when 0 # Make shiny
pkmn.shiny = true
when 1 # Make normal
pkmn.super_shiny = false
when 1 # Make super shiny
pkmn.super_shiny = true
when 2 # Make normal
pkmn.shiny = false
when 2 # Reset
pkmn.super_shiny = false
when 3 # Reset
pkmn.shiny = nil
pkmn.super_shiny = nil
end
screen.pbRefreshSingle(pkmnid)
end