Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from evennia import DefaultRoom
- class altRoom(DefaultRoom)
- def at_object_creation(self):
- self.db.descalt = ""
- self.db.desc = "A normal room"
- def return_appearance(self, looker):
- desctiption = str()
- if not self.db.descalt is None:
- if looker.tags.get("normal", category="vision"):
- description = self.db.desc
- if looker.tags.get("xray", category="vision"):
- description = self.db.descalt
- if self.db.descalt is None:
- description = self.db.desc
- description += super().return_appearance(looker)
- return description
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement