]> granicus.if.org Git - nethack/commit
W_WEAPON, W_ACCESSORY
authorPatR <rankin@nethack.org>
Sun, 26 Jul 2015 02:19:58 +0000 (19:19 -0700)
committerPatR <rankin@nethack.org>
Sun, 26 Jul 2015 02:19:58 +0000 (19:19 -0700)
commit9034e2a7e5a9cba279017ab8e15ca6a8eb25ad97
tree19fb03318bdeb260236792c843affe0c34fec20a
parent64dfb4fcc871d77901f50104594aa79088e71cec
W_WEAPON, W_ACCESSORY

Add macros W_WEAPON and W_ACCESSORY, similar to existing W_ARMOR, bitmask
of all the relevant worn bits.  Just for code readability; there should
be no change in behavior.

Also, reformat the "ugly checks" portion of getobj().  Slightly better
readability and fewer continuation lines, but only a modest improvement.
include/prop.h
src/do.c
src/do_wear.c
src/invent.c
src/mhitu.c
src/mkobj.c
src/mondata.c
src/pickup.c
src/steal.c
src/wield.c