]> granicus.if.org Git - nethack/commitdiff
wielded ball and chain
authorcohrs <cohrs>
Fri, 29 Mar 2002 20:35:22 +0000 (20:35 +0000)
committercohrs <cohrs>
Fri, 29 Mar 2002 20:35:22 +0000 (20:35 +0000)
- a wielded/quivered ball would still be marked as wielded/quivered
after you threw it

doc/fixes34.1
src/dothrow.c

index ee3a0a34272993fa59e88fba6175d8c8c78f2ec2..4a90a9e190c6be4993b8ba8959f6a855c6f10c8f 100644 (file)
@@ -32,6 +32,7 @@ characters polymorphed into centaurs can't wear boots
 if an unknown rolling boulder trap kills a monster, you shouldn't be a murderer
 touchstone entry in data.base
 specific message for engraving headstone with wand of digging
+wielded/quivered chained ball should be unwielded when thrown
 
 
 Platform- and/or Interface-Specific Fixes
index 675182faacc54addf437facdfe0936c400150262..4d528035bcce75ed858375ec59bda63302e6e42e 100644 (file)
@@ -169,6 +169,11 @@ int shotlimit;
                otmp = obj;
                if (otmp->owornmask && otmp != uball)
                    remove_worn_item(otmp);
+               else if ((obj->owornmask & (W_WEP|W_SWAPWEP|W_QUIVER)) != 0) {
+                   /* wielded ball, special case */
+                   setworn((struct obj *)0,
+                           (obj->owornmask & (W_WEP|W_SWAPWEP|W_QUIVER)));
+               }
            }
            freeinv(otmp);
            throwit(otmp, wep_mask, twoweap);