mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 14:14:59 +00:00
More tweaks from the Rubocop overlord
This commit is contained in:
@@ -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))
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user