class Game_Bag
def initialize
@data = {}
end
def method_missing(meth, *args)
begin
(@data[$game_party.actors[0].id] ||= {}).__send__(meth, *args)
rescue Exception
raise $!, $!.message, caller
end
end
end
$ORIG_PARTY = Game_Party.clone unless $ORIG_PARTY
class Game_Party < $ORIG_PARTY
def initialize
super
@items = Game_Bag.new
@armors = Game_Bag.new
@weapons = Game_Bag.new
end
end
class Game_Bag
def initialize
@data = {}
end
def method_missing(meth, *args)
begin
(@data[$game_party.actors[0].id] ||= {}).__send__(meth, *args)
rescue Exception
raise $!, $!.message, caller
end
end
end
$ORIG_PARTY = Game_Party.clone unless $ORIG_PARTY
class Game_Party < $ORIG_PARTY
def initialize
super
@items = Game_Bag.new
@armors = Game_Bag.new
@weapons = Game_Bag.new
end
end