From 86428dc1726dd5466562265c5a05042b582aeadc Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Thu, 11 Dec 2003 11:43:18 +0000 Subject: [PATCH] U778 wielded silver arrows --- doc/fixes34.4 | 3 ++- src/uhitm.c | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/fixes34.4 b/doc/fixes34.4 index d1fad0ebd..59a309b8e 100644 --- a/doc/fixes34.4 +++ b/doc/fixes34.4 @@ -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 diff --git a/src/uhitm.c b/src/uhitm.c index ca6d94e30..ac19a1fd3 100644 --- a/src/uhitm.c +++ b/src/uhitm.c @@ -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);