U778 wielded silver arrows

This commit is contained in:
nethack.allison
2003-12-11 11:43:18 +00:00
parent a744b6b5bf
commit 86428dc172
2 changed files with 8 additions and 1 deletions

View 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

View 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);