<gameobj> 'room:playroom
#:name "a toy chest"
#:goes-by '("toy chest" "chest")
- #:desc "A brightly painted wooden chest. The word \"TOYS\" is engraved
-on it. What could be inside?"
+ #:desc (lambda (toy-chest whos-looking)
+ (let ((contents (gameobj-occupants toy-chest)))
+ `((p "A brightly painted wooden chest. The word \"TOYS\" is "
+ "engraved on it.")
+ (p "Inside you see:"
+ ,(if (eq? (pk 'contents contents) '())
+ " nothing! It's empty!"
+ `(ul ,(map (lambda (occupant)
+ `(li ,(mbody-val
+ (<-wait occupant 'get-name))))
+ (gameobj-occupants toy-chest))))))))
#:take-from-me? #t
#:put-in-me? #t)