]> granicus.if.org Git - nethack/commit
autopickup_exceptions build option
authornethack.allison <nethack.allison>
Sat, 15 Nov 2003 01:05:32 +0000 (01:05 +0000)
committernethack.allison <nethack.allison>
Sat, 15 Nov 2003 01:05:32 +0000 (01:05 +0000)
commitc0349ec918f8db80b358484caea9839d8b3d60cf
tree6519bb34efac4da0459246d736288ea69396c7a3
parent507e1293e676283f3d7595087b127c116fab46de
autopickup_exceptions build option

Add config.h experimental option AUTOPICKUP_EXCEPTIONS.

It's an interface-only change which allows you to add lines to your
config file to selectively avoid autopickup of items based on their
text description that is displayed when you pick them up. It does
it by matching a pattern against the xname singular return value.

For example:

autopickup_exception = "*corpse" will avoid picking up corpses, even if
food (%) is in your pickup_types.

autopickup_exception = "*brown*"
will avoid picking up any brown items (why, I do not know)

autopickup_exception = "*loadstone"
will NOT avoid picking up loadstones, unless they are already
identified, because the xname string will be "gray stone", so no
match there.

The matching has no knowledge of in-game objects, it is just
a text pattern match, thus it is an interface change, not a gameplay
change, and it is meant as a convenience for players.
doc/fixes34.3
include/config.h
include/decl.h
include/extern.h
include/flag.h
src/files.c
src/options.c
src/pickup.c
util/makedefs.c