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:
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user