Add files via upload

This commit is contained in:
Fouton
2021-03-12 16:51:16 -05:00
committed by GitHub
parent 1e63d3957d
commit 2a1eb07d73
2 changed files with 59 additions and 41 deletions

View File

@@ -1378,6 +1378,11 @@ class Door(object):
else:
self.passage = False
def kind(self, world):
if self.roomIndex != -1 and self.doorListPos != -1:
return world.get_room(self.roomIndex, self.player).kind(self)
return None
def __eq__(self, other):
return isinstance(other, self.__class__) and self.name == other.name