mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
Removed all deprecated code slated for removal, removed support for pre-v19 save files
This commit is contained in:
@@ -14,21 +14,6 @@ end
|
||||
|
||||
|
||||
|
||||
# @deprecated Use {Mail} instead. PokemonMail is slated to be removed in v20.
|
||||
class PokemonMail
|
||||
attr_reader :item, :message, :sender, :poke1, :poke2, :poke3
|
||||
|
||||
def self.convert(mail)
|
||||
return mail if mail.is_a?(Mail)
|
||||
item.poke1[0] = GameData::Species.get(item.poke1[0]).id if item.poke1
|
||||
item.poke2[0] = GameData::Species.get(item.poke2[0]).id if item.poke2
|
||||
item.poke3[0] = GameData::Species.get(item.poke3[0]).id if item.poke3
|
||||
return Mail.new(mail.item, item.message, item.sender, item.poke1, item.poke2, item.poke3)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
def pbMoveToMailbox(pokemon)
|
||||
$PokemonGlobal.mailbox = [] if !$PokemonGlobal.mailbox
|
||||
return false if $PokemonGlobal.mailbox.length>=10
|
||||
|
||||
Reference in New Issue
Block a user