fix #H148 - applying a pickaxe doesn't respect pushweapon

From a bug report, applying a pick-axe will
wield it in place of the primary weapon but wouldn't update the alternate
weapon.  Make objects which become wielded when applied (pick, lamp, whip,
grappling hook, pole-arm) honor the pushweapon option (where the previously
wielded weapon becomes the alternate weapon without use of 'x' command) the
same as when explicitly wielded.  Old behavior matched the documentation,
but that seemed overly restrictive.
This commit is contained in:
nethack.rankin
2006-07-15 03:25:08 +00:00
parent 96c6163019
commit 9631e2b691
4 changed files with 12 additions and 2 deletions

View File

@@ -27,7 +27,7 @@
\begin{document}
%
% input file: guidebook.mn
% $Revision: 1.99 $ $Date: 2006/05/13 04:57:35 $
% $Revision: 1.100 $ $Date: 2006/05/18 04:18:23 $
%
%.ds h0 "
%.ds h1 %.ds h2 \%
@@ -2578,6 +2578,8 @@ Prompt for confirmation before praying (default on).
\item[\ib{pushweapon}]
Using the `w' (wield) command when already wielding
something pushes the old item into your alternate weapon slot (default off).
Likewise for the `a' (apply) command if it causes the applied item to
become wielded.
%.Ip
\item[\ib{race}]
Selects your race (for example, ``{\tt race:human}''). Default is random.