From f33ab026b86ba3d91168d7a33ef2ddba2636c6b8 Mon Sep 17 00:00:00 2001 From: cohrs Date: Tue, 26 Feb 2002 22:07:24 +0000 Subject: [PATCH] shattering corpses - generalize which weapons can be shattered to be >= WOOD --- src/uhitm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/uhitm.c b/src/uhitm.c index 528b3baf8..c279011fe 100644 --- a/src/uhitm.c +++ b/src/uhitm.c @@ -575,9 +575,8 @@ int thrown; ((wtype = uwep_skill_type()) != P_NONE && P_SKILL(wtype) >= P_SKILLED) && ((monwep = MON_WEP(mon)) != 0 && - weapon_type(monwep) != P_WHIP && - monwep->otyp != SLING && - !obj_resists(monwep, + objects[monwep->otyp].oc_material >= WOOD && + !obj_resists(monwep, 50 + 15 * greatest_erosion(obj), 100))) { /* * 2.5% chance of shattering defender's weapon when