Many more Rubocop-inspired code improvements

This commit is contained in:
Maruno17
2021-12-18 19:06:22 +00:00
parent d17fc40a47
commit 13a238cc6a
107 changed files with 651 additions and 652 deletions

View File

@@ -47,12 +47,13 @@ class StorageSystemPC
_INTL("Return to the previous menu.")], -1, command
)
if command >= 0 && command < 3
if command == 1 # Withdraw
case command
when 1 # Withdraw
if $PokemonStorage.party_full?
pbMessage(_INTL("Your party is full!"))
next
end
elsif command == 2 # Deposit
when 2 # Deposit
count = 0
for p in $PokemonStorage.party
count += 1 if p && !p.egg? && p.hp > 0