fix B08011 - request for "wield" change

Implement's <Someone>'s suggestion that the currently wielded
weapon be included among the list of inventory candidates for the
wield command.  It affects the list of letters shown in the prompt
and the subset inventory displayed if you respond with '?'; it doesn't
change how wielding works or what item you can pick to wield.

     Do the same thing for quivering:  include any currently quivered
item among the choices.  Also include the secondary weapon as a choice
if you're not actively two-weaponing.
This commit is contained in:
nethack.rankin
2002-09-28 06:48:25 +00:00
parent 889e2164b5
commit abf1ee5797
2 changed files with 5 additions and 1 deletions

View File

@@ -829,10 +829,12 @@ register const char *let,*word;
|| (putting_on(word) &&
(otmp->owornmask & (W_ARMOR | W_RING | W_AMUL | W_TOOL)))
/* already worn */
#if 0 /* 3.4.1 -- include currently wielded weapon among the choices */
|| (!strcmp(word, "wield") &&
(otmp->owornmask & W_WEP))
#endif
|| (!strcmp(word, "ready") &&
(otmp->owornmask & (W_WEP | W_SWAPWEP | W_QUIVER)))
(otmp == uwep || (otmp == uswapwep && u.twoweap)))
) {
foo--;
foox++;