SHOW:
|
|
- or go back to the newest paste.
| 1 | - | return_appearance(self, looker): |
| 1 | + | return_appearance( self, looker ): |
| 2 | # set description to self.desc to start | |
| 3 | - | for item in room.contents: |
| 3 | + | |
| 4 | - | if inherits_from(item, "typeclasses.objects.Poseable"): |
| 4 | + | # loop over contents, only look at poseable items |
| 5 | - | desc += "\n{}".format( item.return_appearance(looker) )
|
| 5 | + | for item in self.contents: |
| 6 | - | exit_desc += "; ".join( [exit.return_appearance(looker) for exit in room.exits] ) |
| 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 |