def __init__(self, name="item slot", canEquip=[], default=None, *arg, **kwarg): MudObject.__init__(self, name, *arg, **kwarg) self.shortDescription = name self._default = default self._slot = default self._canEquip = canEquip
def evt_die(self): for slot in self.gear: self.unequip(slot) for thing in self.inventory: self.drop(thing) MudObject.evt_die(self)
def __init__(self, *arg, **kwarg): MudObject.__init__(self, *arg, **kwarg) self.primaryWeaponSlot = 0 self.foe = None self.name = "unnamed mobile" self.isAlive = True self.exp = 0 self.gear = MudInventory() self.inventory = MudList(owner=self) self.identified = []
def __init__(self, exitsTo=None, magicWord=None, *arg, **kwarg): MudObject.__init__(self, *arg, **kwarg) self.exitsTo = exitsTo self.isOpen = True self._pair = None # if this door gets opened, then open the pair if magicWord != None: self.magicWord = magicWord.lower() else: self.magicWord = None
def __init__(self, gearClass=None, *arg, **kwarg): MudObject.__init__(self, *arg, **kwarg) self.name = "unnamed gear" self.gearClass = gearClass
def __init__(self, *arg, **kwarg): MudObject.__init__(self) MudList.__init__(self, *arg, **kwarg) self.channel = evt.TalkChannel("room channel - %s" % self.name) super(Room, self).Bind(evt.EVT_LOOK, self.on_look)
def __init__(self): MudObject.__init__(self) self.name = "Unidentified" self.shortDescription = "An unidentified thing"
def __init__(self, thing, *arg, **kwarg): MudObject.__init__(self, *arg, **kwarg) self.control = thing
def __init__(self, q=1, *arg, **kwarg): self.quantity = q MudObject.__init__(self, *arg, **kwarg)