Files
nethack/include
nethack.allison c34d7af1eb B16002
The complaint states:
It still won't let you unwield a cursed secondary weapon while
two-weaponing, even though you can drop such a weapon without problem.

You aren't supposed to be able to two-weapon
with a cursed alternate weapon at all.  It appears that there are some
checks to prevent twoweaponing if uswapwep is cursed when you try.
This patch ensures that two-weaping stops if uswapwep gets cursed
while two-weaponing.  I think this means the 'A' command will never
encounter the situation now in the complaint now.

The rules in wield.c state
 The secondary weapon (uswapwep):
 1.  Is filled by the x command, which swaps this slot
     with the main weapon.  If the "pushweapon" option is set,
     the w command will also store the old weapon in the
     secondary slot.
 2.  Can be field with anything that will fit in the main weapon
     slot; that is, any type of item.
 3.  Is usually NOT considered to be carried in the hands.
     That would force too many checks among the main weapon,
    second weapon, shield, gloves, and rings; and it would
     further be complicated by bimanual weapons.  A special
     exception is made for two-weapon combat.
 4.  Is used as the second weapon for two-weapon combat, and as
     a convenience to swap with the main weapon.
 5.  Never conveys intrinsics.
 6.  Cursed items never weld (see number 3 for reasons), but they also
     prevent two-weapon combat.
2003-01-10 04:00:37 +00:00
..
2002-01-18 02:50:06 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00
2002-02-19 01:35:04 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00
2002-01-05 21:05:47 +00:00
2003-01-04 17:37:09 +00:00
2002-07-22 03:20:52 +00:00
2002-09-02 23:28:54 +00:00
2002-02-04 16:06:00 +00:00
2002-09-06 00:12:44 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00
2002-03-31 22:56:30 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00
2003-01-10 04:00:37 +00:00
2002-08-23 01:03:59 +00:00
2002-02-04 16:06:00 +00:00
2002-01-05 21:05:47 +00:00
2002-07-22 03:20:52 +00:00
2002-07-23 04:52:48 +00:00
2002-02-04 16:06:00 +00:00
2002-01-05 21:05:47 +00:00
2002-03-20 06:33:45 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00
2002-04-07 10:43:59 +00:00
2002-02-04 16:06:00 +00:00
2002-08-20 08:05:20 +00:00
2002-03-25 08:05:27 +00:00
2003-01-09 01:20:49 +00:00
2002-02-04 16:06:00 +00:00
2002-11-28 19:13:01 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00
2002-12-23 12:51:57 +00:00
2002-07-08 23:25:53 +00:00
2002-02-04 16:06:00 +00:00
2002-12-30 02:08:34 +00:00
2002-06-29 12:44:54 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00
2002-01-05 21:05:48 +00:00
2002-08-31 20:14:17 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00
2002-03-17 20:02:47 +00:00
2002-02-04 16:06:00 +00:00
2002-01-05 21:05:48 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00
2002-03-02 22:43:39 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00
2002-12-18 03:51:34 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00
2003-01-09 09:18:14 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00
2002-03-17 20:02:47 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00
2002-02-04 16:06:00 +00:00