Make dragonhide affectable by rotting attacks

Dragon corpses are capable of rotting, so it's plausible that the
skin of a dead dragon might also be possible to rot.

This is unlikely to come up in actual play at present (unless
wishing for rotten DSM, it can only end up rotting as a consequence
of brown pudding attacks): the primary motivation is to open up new
possibilities for armor-damaging attacks, which in current NetHack
aren't very relevant in the late game because everyone is wearing
dragon scale mail.
This commit is contained in:
Alex Smith
2026-01-10 18:56:56 +00:00
parent 40b39c1026
commit f2a958e7e8
3 changed files with 6 additions and 3 deletions

View File

@@ -2286,8 +2286,9 @@ is_rottable(struct obj *otmp)
{
int otyp = otmp->otyp;
return (boolean) (objects[otyp].oc_material <= WOOD
&& objects[otyp].oc_material != LIQUID);
return (boolean) ((objects[otyp].oc_material <= WOOD
&& objects[otyp].oc_material != LIQUID)
|| objects[otyp].oc_material == DRAGON_HIDE);
}
/*