Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. from evennia import DefaultRoom
  2.  
  3. class altRoom(DefaultRoom)
  4. def at_object_creation(self):
  5. self.db.descalt = ""
  6. self.db.desc = "A normal room"
  7. def return_appearance(self, looker):
  8. desctiption = str()
  9. if not self.db.descalt is None:
  10. if looker.tags.get("normal", category="vision"):
  11. description = self.db.desc
  12. if looker.tags.get("xray", category="vision"):
  13. description = self.db.descalt
  14. if self.db.descalt is None:
  15. description = self.db.desc
  16.  
  17. description += super().return_appearance(looker)
  18.  
  19. return description
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement