Added decent spacing to all scripts thanks to Rubocop

This commit is contained in:
Maruno17
2021-12-18 15:25:40 +00:00
parent f7b76ae62e
commit d17fc40a47
207 changed files with 18577 additions and 18587 deletions

View File

@@ -26,7 +26,7 @@ class StorageSystemPC
def name
if $player.seen_storage_creator
return _INTL("{1}'s PC",pbGetStorageCreator)
return _INTL("{1}'s PC", pbGetStorageCreator)
else
return _INTL("Someone's PC")
end
@@ -44,27 +44,27 @@ class StorageSystemPC
[_INTL("Organize the Pokémon in Boxes and in your party."),
_INTL("Move Pokémon stored in Boxes to your party."),
_INTL("Store Pokémon in your party in Boxes."),
_INTL("Return to the previous menu.")],-1,command
_INTL("Return to the previous menu.")], -1, command
)
if command>=0 && command<3
if command==1 # Withdraw
if command >= 0 && command < 3
if command == 1 # Withdraw
if $PokemonStorage.party_full?
pbMessage(_INTL("Your party is full!"))
next
end
elsif command==2 # Deposit
count=0
elsif command == 2 # Deposit
count = 0
for p in $PokemonStorage.party
count += 1 if p && !p.egg? && p.hp>0
count += 1 if p && !p.egg? && p.hp > 0
end
if count<=1
if count <= 1
pbMessage(_INTL("Can't deposit the last Pokémon!"))
next
end
end
pbFadeOutIn {
scene = PokemonStorageScene.new
screen = PokemonStorageScreen.new(scene,$PokemonStorage)
screen = PokemonStorageScreen.new(scene, $PokemonStorage)
screen.pbStartScreen(command)
}
else
@@ -94,11 +94,11 @@ module PokemonPCList
end
def self.callCommand(cmd)
return false if cmd<0 || cmd>=@@pclist.length
return false if cmd < 0 || cmd >= @@pclist.length
i = 0
for pc in @@pclist
next if !pc.shouldShow?
if i==cmd
if i == cmd
pc.access
return true
end
@@ -122,7 +122,7 @@ def pbPCItemStorage
[_INTL("Take out items from the PC."),
_INTL("Store items in the PC."),
_INTL("Throw away items stored in the PC."),
_INTL("Go back to the previous menu.")],-1,command
_INTL("Go back to the previous menu.")], -1, command
)
case command
when 0 # Withdraw Item
@@ -164,26 +164,26 @@ def pbPCItemStorage
end
def pbPCMailbox
if !$PokemonGlobal.mailbox || $PokemonGlobal.mailbox.length==0
if !$PokemonGlobal.mailbox || $PokemonGlobal.mailbox.length == 0
pbMessage(_INTL("There's no Mail here."))
else
loop do
command = 0
commands=[]
commands = []
for mail in $PokemonGlobal.mailbox
commands.push(mail.sender)
end
commands.push(_INTL("Cancel"))
command = pbShowCommands(nil,commands,-1,command)
if command>=0 && command<$PokemonGlobal.mailbox.length
command = pbShowCommands(nil, commands, -1, command)
if command >= 0 && command < $PokemonGlobal.mailbox.length
mailIndex = command
commandMail = pbMessage(_INTL("What do you want to do with {1}'s Mail?",
$PokemonGlobal.mailbox[mailIndex].sender),[
$PokemonGlobal.mailbox[mailIndex].sender), [
_INTL("Read"),
_INTL("Move to Bag"),
_INTL("Give"),
_INTL("Cancel")
],-1)
], -1)
case commandMail
when 0 # Read
pbFadeOutIn {
@@ -215,11 +215,11 @@ end
def pbTrainerPCMenu
command = 0
loop do
command = pbMessage(_INTL("What do you want to do?"),[
command = pbMessage(_INTL("What do you want to do?"), [
_INTL("Item Storage"),
_INTL("Mailbox"),
_INTL("Turn Off")
],-1,nil,command)
], -1, nil, command)
case command
when 0 then pbPCItemStorage
when 1 then pbPCMailbox
@@ -239,8 +239,8 @@ def pbPokeCenterPC
command = 0
loop do
commands = PokemonPCList.getCommandList
command = pbMessage(_INTL("Which PC should be accessed?"),commands,
commands.length,nil,command)
command = pbMessage(_INTL("Which PC should be accessed?"), commands,
commands.length, nil, command)
break if !PokemonPCList.callCommand(command)
end
pbSEPlay("PC close")