mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Added more save data conversions
This commit is contained in:
@@ -18,7 +18,8 @@ end
|
||||
class PokemonMail
|
||||
attr_reader :item, :message, :sender, :poke1, :poke2, :poke3
|
||||
|
||||
def self.copy(mail)
|
||||
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
|
||||
|
||||
@@ -190,6 +190,8 @@ end
|
||||
# The PC item storage object, which actually contains all the items
|
||||
#===============================================================================
|
||||
class PCItemStorage
|
||||
attr_reader :items
|
||||
|
||||
MAX_SIZE = 999 # Number of different slots in storage
|
||||
MAX_PER_SLOT = 999 # Max. number of items per slot
|
||||
|
||||
|
||||
Reference in New Issue
Block a user