implement #H4305 - Quivering wielded weapon
commit2fe9170ee41fdafb61f7175fdadca151c3eec162
authorPatR <rankin@nethack.org>
Fri, 29 Apr 2016 22:10:56 +0000 (29 15:10 -0700)
committerPatR <rankin@nethack.org>
Fri, 29 Apr 2016 22:10:56 +0000 (29 15:10 -0700)
tree14fde97d6f8df6b78ecba15b347558601b5a5ebe
parentff6e62b361fbc3a766e570537759b3c013e5f768
implement #H4305 - Quivering wielded weapon

This ended up being more elaborate than I anticipated.  'Q' will
now accept the wielded weapon as a choice of item to quiver.  If
that item is a stack of more than one, it will offer to split N-1
into the quiver and leave 1 wielded.  If the offer is declined, or
if there is already just 1, it will require confirmation to move the
item from the weapon slot to the quiver slot.  The alternate weapon
is handled similarly, with different phrasing when in twoweapon
combat mode.

Just to be crystal clear:  a single object cannot be in more than
one weapon, alt-weapon, or quiver slot at the same time.  'Q's old
behavior of rejecting the wielded weapon was to avoid accidentally
becoming empty-handed, not anything to do with multiple worn/wield
slots.

'Q' will also accept a count when picking an inventory item, then
put 'count'-many into the quiver, leaving N-count in original stack.
Except when the chosen item is already in the quiver; it that case,
it undoes the stack split and leaves things as they were.  (That
restriction may not have been necessary but I'm not planning to
revisit it....)
doc/fixes36.1
include/extern.h
src/invent.c
src/wield.c