diff options
| author | Richard M. Stallman | 1995-09-25 18:20:30 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-09-25 18:20:30 +0000 |
| commit | 85cff943df0b52028b73d4a9e9c130e9ccc27553 (patch) | |
| tree | 2e70b8bbe061786b57b47e91060c001546cef3a2 | |
| parent | dbabfd5558cc68ac7ce37d3a993c74aa98735e54 (diff) | |
| download | emacs-85cff943df0b52028b73d4a9e9c130e9ccc27553.tar.gz emacs-85cff943df0b52028b73d4a9e9c130e9ccc27553.zip | |
(dun-climb): Handle unknown object name.
(dun-objnames): Add "palm" as alias for "tree".
| -rw-r--r-- | lisp/play/dunnet.el | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/lisp/play/dunnet.el b/lisp/play/dunnet.el index f44f51fda65..6498d539017 100644 --- a/lisp/play/dunnet.el +++ b/lisp/play/dunnet.el | |||
| @@ -422,19 +422,22 @@ For an explosive time, go to Fourth St. and Vermont.") | |||
| 422 | (defun dun-climb (obj) | 422 | (defun dun-climb (obj) |
| 423 | (let (objnum) | 423 | (let (objnum) |
| 424 | (setq objnum (dun-objnum-from-args obj)) | 424 | (setq objnum (dun-objnum-from-args obj)) |
| 425 | (if (and (not (= objnum obj-special)) | 425 | (cond ((null objnum) |
| 426 | (not (member objnum (nth dun-current-room dun-room-objects))) | 426 | (dun-mprincl "I don't know that name.")) |
| 427 | (not (member objnum (nth dun-current-room dun-room-silents))) | 427 | ((and (not (eq objnum obj-special)) |
| 428 | (not (member objnum dun-inventory))) | 428 | (not (member objnum (nth dun-current-room dun-room-objects))) |
| 429 | (dun-mprincl "I don't see that here.") | 429 | (not (member objnum (nth dun-current-room dun-room-silents))) |
| 430 | (if (and (= objnum obj-special) | 430 | (not (member objnum dun-inventory))) |
| 431 | (not (member obj-tree (nth dun-current-room dun-room-silents)))) | 431 | (dun-mprincl "I don't see that here.")) |
| 432 | (dun-mprincl "There is nothing here to climb.") | 432 | ((and (eq objnum obj-special) |
| 433 | (if (and (not (= objnum obj-tree)) (not (= objnum obj-special))) | 433 | (not (member obj-tree (nth dun-current-room dun-room-silents)))) |
| 434 | (dun-mprincl "You can't climb that.") | 434 | (dun-mprincl "There is nothing here to climb.")) |
| 435 | (dun-mprincl | 435 | ((and (not (eq objnum obj-tree)) (not (eq objnum obj-special))) |
| 436 | "You manage to get about two feet up the tree and fall back down. You | 436 | (dun-mprincl "You can't climb that.")) |
| 437 | notice that the tree is very unsteady.")))))) | 437 | (t |
| 438 | (dun-mprincl | ||
| 439 | "You manage to get about two feet up the tree and fall back down. You | ||
| 440 | notice that the tree is very unsteady."))))) | ||
| 438 | 441 | ||
| 439 | (defun dun-eat (obj) | 442 | (defun dun-eat (obj) |
| 440 | (let (objnum) | 443 | (let (objnum) |
| @@ -2096,7 +2099,7 @@ A hole leads north." | |||
| 2096 | (floppy . 27) (disk . 27) | 2099 | (floppy . 27) (disk . 27) |
| 2097 | 2100 | ||
| 2098 | (boulder . -1) | 2101 | (boulder . -1) |
| 2099 | (tree . -2) (trees . -2) | 2102 | (tree . -2) (trees . -2) (palm . -2) |
| 2100 | (bear . -3) | 2103 | (bear . -3) |
| 2101 | (bin . -4) (bins . -4) | 2104 | (bin . -4) (bins . -4) |
| 2102 | (cabinet . -5) (computer . -5) (vax . -5) (ibm . -5) | 2105 | (cabinet . -5) (computer . -5) (vax . -5) (ibm . -5) |