do_look bits
I didn't find Michael's crasher, but I did find a couple of minor
problems:
knight's saddled pony wasn't found in the file lookup either though
there is an entry for pony ("tame saddled <foo>" stripped off "tame "
but not "saddled "; "saddled <foo>" would only be found of there was
a wildcard entry key of "*<foo>", like "*horse" to catch both horse
and warhorse);
"wombat" matched the bat entry rather than reporting an unknown
entity.
This commit is contained in:
@@ -430,6 +430,7 @@ barbed devil
|
||||
are quite difficult to kill.
|
||||
# takes "bat or bird" when specifying 'B'
|
||||
~combat
|
||||
~wombat
|
||||
*bat
|
||||
bat or bird
|
||||
A bat, flitting in the darkness outside, took the wrong turn
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.5 pager.c $NHDT-Date: 1429408230 2015/04/19 01:50:30 $ $NHDT-Branch: master $:$NHDT-Revision: 1.62 $ */
|
||||
/* NetHack 3.5 pager.c $NHDT-Date: 1429842296 2015/04/24 02:24:56 $ $NHDT-Branch: master $:$NHDT-Revision: 1.63 $ */
|
||||
/* NetHack 3.5 pager.c $Date: 2012/01/15 09:27:06 $ $Revision: 1.41 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -332,6 +332,8 @@ checkfile(inp, pm, user_typed_name, without_asking)
|
||||
dbase_str += 9;
|
||||
if (!strncmp(dbase_str, "invisible ", 10))
|
||||
dbase_str += 10;
|
||||
if (!strncmp(dbase_str, "saddled ", 8))
|
||||
dbase_str += 8;
|
||||
if (!strncmp(dbase_str, "statue of ", 10))
|
||||
dbase_str[6] = '\0';
|
||||
else if (!strncmp(dbase_str, "figurine of ", 12))
|
||||
|
||||
Reference in New Issue
Block a user