def __init__(self, name, displayName=None, description=None, shortDescription=None, inventory=None, aliases=None, isGettable=False, displayAutomatically=True): if inventory is None: inventory = InventoryManager(on=False, inside=True, under=False) inventory.slots['inside'].exposed = False Item.__init__(self, name=name, displayName=displayName, description=description, shortDescription=shortDescription, inventory=inventory, aliases=aliases, isGettable=isGettable, displayAutomatically=displayAutomatically) self.open = False
def __init__(self, name, description=''): Item.__init__(self, name=name, displayName='crate', description=description)
def __init__(self, name): Item.__init__(self, name=name, displayName='rope', description='There is a rope here. It frays in a few places, but is generally sturdy.', aliases=['rope'], isGettable=True)
def __init__(self, name, description="", inventory=None): if inventory is None: inventory = InventoryManager(on=False, inside=True, under=False) inventory.slots["inside"].exposed = False Item.__init__( self, name=name, description=description, inventory=inventory, displayName="tree", displayAutomatically=True ) self.stateMachine = StateMachine(owner=self, startingState=acornStillInTree)
def __init__(self, name, description=''): Item.__init__(self, name=name, description=description, displayName='acorn', displayAutomatically=True, isGettable=True)
def __init__(self, name): Item.__init__(self, name, displayAutomatically=True, isGettable=True, displayName='paper', aliases=['paper']) self.text = ''
def __init__(self, name, description=''): Item.__init__(self, name=name, description=description, displayName='pond', aliases=['pond', 'lake', 'water'], displayAutomatically=True)
def __init__(self, name, displayName=None, description=None, shortDescription=None, inventory=None, aliases=None, isGettable=False, displayAutomatically=False): Item.__init__(self, name=name, displayName=displayName, description=description, shortDescription=shortDescription, inventory=inventory, aliases=aliases, isGettable=isGettable, displayAutomatically=displayAutomatically)