shattering corpses

- generalize which weapons can be shattered to be >= WOOD
This commit is contained in:
cohrs
2002-02-26 22:07:24 +00:00
parent 0f1615c7ad
commit f33ab026b8

View File

@@ -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