def __init__(self, map, con, x,y, char, color, fighter=None, level=None): Object.__init__(self, None, con, x,y, char, libtcod.namegen_generate('Celtic male'), color, True, fighter=fighter, level=level ) map.player = self self.inventory = Inventory() self.mods = Inventory() class Item: stack_limit = 5 obj = Object(None, con, None,None, 'b', 'boost', color, item=Item()) obj.mod = mods.Boost() self.mods.add_item(obj)