def __init__(self, **kwargs): """Initialise instance""" Container.__init__(self, **kwargs) self.items = { "head": Slot(), "neck": Slot(), "shoulders": Slot(), "chest": Slot(), "abdomen": Slot(), "left_arm": Slot(), "right_arm": Slot(), "groin": Slot(), "hips": Slot(), "left_leg": Slot(), "right_leg": Slot(), "left_hand": Slot(), "right_hand": Slot(), "ready": Container(), "backpack": Container(), } for key, item in self.items.iteritems(): item.name = key kwargs = {} kwargs["container"] = item item.setScript("onPlaceItem", self.onChildPlaceItem, kwargs=kwargs) self.item_lookup = {}
def __init__(self, ID, *args, **kwargs): self.name = "All-purpose carry-all" self.text = "What is this? I dont know" GameObject.__init__(self, ID, **kwargs) Lockable.__init__(self, **kwargs) Container.__init__(self, **kwargs) Living.__init__(self, **kwargs) Scriptable.__init__(self, **kwargs) CharStats.__init__(self, **kwargs) Wearable.__init__(self, "left_arm", **kwargs) Usable.__init__(self, **kwargs) Weapon.__init__(self, **kwargs) Destructable.__init__(self, **kwargs) Trapable.__init__(self, **kwargs) Carryable.__init__(self, **kwargs)
def __init__ (self, ID, **kwargs): GameObject.__init__(self, ID, **kwargs) Container.__init__(self, **kwargs)