Paper objects (except books) also do no damage

These are even flimsier than vegetables are.
This commit is contained in:
Alex Smith
2025-11-01 16:09:25 +00:00
parent 177a5bcaf7
commit 317282c469

View File

@@ -1316,9 +1316,12 @@ hmon_hitmon_misc_obj(
hmd->get_dmg_bonus = FALSE;
break;
default:
if (objects[obj->otyp].oc_material == VEGGY) {
if ((objects[obj->otyp].oc_material == VEGGY ||
objects[obj->otyp].oc_material == PAPER) &&
obj->oclass != SPBOOK_CLASS) {
/* vegetables (and similar) do no damage, because they
aren't rigid enough */
aren't rigid enough; paper objects also do no damage,
except for books */
hmd->dmg = 0;
hmd->get_dmg_bonus = FALSE;
break;