def destroy(self): 'Get rid of this exit.' if self.room is not None: self.room.rmexit(self) remove(self) TZObj.destroy(self)
def destroy(self): 'Get rid of this item and remove it from the index.' container = self.container room = self.room if container is not None: container.remove(self) remove(self) TZObj.destroy(self) if room is not None: room.action(dict(act='destroy_item', delay=0.4, actor=None, item=self))