Changed Dunnet so that if a lamp is in the room that would otherwise be dark, the...
authorRon Schnell <ronnie@driver-aces.com>
Sat, 14 Jun 2014 20:57:34 +0000 (16:57 -0400)
committerRon Schnell <ronnie@driver-aces.com>
Sat, 14 Jun 2014 20:57:34 +0000 (16:57 -0400)
be eaten by a grue.

lisp/ChangeLog
lisp/play/dunnet.el

index 1ce8092..bd8bd6a 100644 (file)
@@ -1,3 +1,6 @@
+2014-06-14  Ron Schnell  <ronnie@driver-aces.com>      
+       * play/dunnet.el If a lamp is in the room, you won't be eaten by a grue.
+       
 2014-06-13  Glenn Morris  <rgm@gnu.org>
 
        * Makefile.in ($(lisp)/cus-load.el, $(lisp)/finder-inf.el)
index 0028b72..c82660f 100644 (file)
 
 (defun dun-describe-room (room)
   (if (and (not (member (abs room) dun-light-rooms))
-          (not (member obj-lamp dun-inventory)))
+          (not (member obj-lamp dun-inventory))
+          (not (member obj-lamp (nth dun-current-room dun-room-objects))))
       (dun-mprincl "It is pitch dark.  You are likely to be eaten by a grue.")
     (dun-mprincl (cadr (nth (abs room) dun-rooms)))
     (if (and (and (or (member room dun-visited)
@@ -615,7 +616,8 @@ just try dropping it.")
 
 (defun dun-move (dir)
   (if (and (not (member dun-current-room dun-light-rooms))
-          (not (member obj-lamp dun-inventory)))
+          (not (member obj-lamp dun-inventory))
+          (not (member obj-lamp (nth dun-current-room dun-room-objects))))
       (progn
        (dun-mprinc
 "You trip over a grue and fall into a pit and break every bone in your