chainsol

Untitled

Sep 19th, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. return_appearance( self, looker ):
  2.     # set description to self.desc to start
  3.     desc = self.desc
  4.     # loop over contents, only look at poseable items
  5.     for item in self.contents:
  6.         # check if they're poseable
  7.         if inherits_from( item, "typeclasses.objects.Poseable" ):
  8.             # Add the description to our desc
  9.             desc += item.return_appearance(looker)
  10.     desc += "\nExits:\n"
  11.     for exit in room.exits:
  12.         desc += exit.return_appearance(looker)
  13.     return desc
Advertisement
Add Comment
Please, Sign In to add comment