Fixed previous commit always causing recompiling if shadow_pokemon.dat doesn't exist, also rubocopping

This commit is contained in:
Maruno17
2023-01-23 22:27:04 +00:00
parent f6213057d8
commit b0b6e675c3
103 changed files with 1099 additions and 1302 deletions

View File

@@ -1,4 +1,6 @@
#===============================================================================
# Data structure representing mail that the Pokémon can hold
#===============================================================================
class Mail
attr_accessor :item, :message, :sender, :poke1, :poke2, :poke3
@@ -12,8 +14,9 @@ class Mail
end
end
#===============================================================================
#
#===============================================================================
def pbMoveToMailbox(pokemon)
$PokemonGlobal.mailbox = [] if !$PokemonGlobal.mailbox
return false if $PokemonGlobal.mailbox.length >= 10