More tweaks from the Rubocop overlord

This commit is contained in:
Maruno17
2021-12-19 17:28:59 +00:00
parent 33781493f4
commit 65b1a8d6c3
161 changed files with 2839 additions and 2967 deletions

View File

@@ -813,12 +813,10 @@ DebugMenuCommands.register("dexlists", {
dexindex = dexescmd - 1
if dexindex < 0 # Toggle Pokédex ownership
$player.has_pokedex = !$player.has_pokedex
else # Toggle Regional Dex accessibility
if $player.pokedex.unlocked?(dexindex)
$player.pokedex.lock(dexindex)
else
$player.pokedex.unlock(dexindex)
end
elsif $player.pokedex.unlocked?(dexindex) # Toggle Regional Dex accessibility
$player.pokedex.lock(dexindex)
else
$player.pokedex.unlock(dexindex)
end
end
}
@@ -888,7 +886,7 @@ DebugMenuCommands.register("randomid", {
"name" => _INTL("Randomize Player ID"),
"description" => _INTL("Generate a random new ID for the player."),
"effect" => proc {
$player.id = rand(2**16) | rand(2**16) << 16
$player.id = rand(2**16) | (rand(2**16) << 16)
pbMessage(_INTL("The player's ID was changed to {1} (full ID: {2}).", $player.public_ID, $player.id))
}
})