Wielded vegetables do no damage
It makes sense that a vegetable would do less damage than a hard object would, as they're generally fairly soft, so it seems like a likely thing for players to try if they're *intentionally* trying to hit for zero damage (which could be useful in certain niche cases, e.g. to wake up a sleeping monster without damaging it).
This commit is contained in:
@@ -1316,6 +1316,13 @@ hmon_hitmon_misc_obj(
|
||||
hmd->get_dmg_bonus = FALSE;
|
||||
break;
|
||||
default:
|
||||
if (objects[obj->otyp].oc_material == VEGGY) {
|
||||
/* vegetables (and similar) do no damage, because they
|
||||
aren't rigid enough */
|
||||
hmd->dmg = 0;
|
||||
hmd->get_dmg_bonus = FALSE;
|
||||
break;
|
||||
}
|
||||
/* non-weapons can damage because of their weight */
|
||||
/* (but not too much) */
|
||||
hmd->dmg = (obj->owt + 99) / 100;
|
||||
|
||||
Reference in New Issue
Block a user