Exemple #1
0
    def destroy(self):
        'Get rid of this exit.'

        if self.room is not None:
            self.room.rmexit(self)
        remove(self)
        TZObj.destroy(self)
Exemple #2
0
    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))