]> granicus.if.org Git - nethack/commitdiff
U778 wielded silver arrows
authornethack.allison <nethack.allison>
Thu, 11 Dec 2003 11:43:18 +0000 (11:43 +0000)
committernethack.allison <nethack.allison>
Thu, 11 Dec 2003 11:43:18 +0000 (11:43 +0000)
doc/fixes34.4
src/uhitm.c

index d1fad0ebd86240db6d73d8e15cf52812b8a4384c..59a309b8ea35ddbd21453c4983e78138ce02c33b 100644 (file)
@@ -2,7 +2,8 @@ $RCSfile$ $Revision$ $Date$
 
 General Fixes and Modified Features
 -----------------------------------
-fix "You hear The food ration tumbles downwards." for blinded pit dropping
+fix "You hear The food ration tumbles downwards" for blinded pit dropping
+silver arrows weren't causing silver damage on some silver-haters when wielded
 
 
 Platform- and/or Interface-Specific Fixes
index ca6d94e303900947d56ada93462fc40b7fc51dc0..ac19a1fd33fa8e52e08158aa9a365bb86de999a4 100644 (file)
@@ -607,6 +607,12 @@ int thrown;
                        tmp = 0;
                    else
                        tmp = rnd(2);
+                   if (objects[obj->otyp].oc_material == SILVER
+                               && hates_silver(mdat)) {
+                       silvermsg = TRUE; silverobj = TRUE;
+                       /* if it will already inflict dmg, make it worse */
+                       tmp += rnd((tmp) ? 20 : 10);
+                   }
                    if (!thrown && obj == uwep && obj->otyp == BOOMERANG &&
                            rnl(4) == 4-1) {
                        boolean more_than_1 = (obj->quan > 1L);