diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index d2d6b8195..db980003c 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -1563,6 +1563,7 @@ lycanthrope instincts keep hero from changing shape while next to hostiles scroll of enchant armor formula has changed (in particular, magical armor now gains less enchantment when enchanted than nonmagical armor and uncursed scrolls can sometimes enchant by more than one point) +dragonhide can rot Fixes to 3.7.0-x General Problems Exposed Via git Repository diff --git a/src/mkobj.c b/src/mkobj.c index 31fe3c89a..f2adf2185 100644 --- a/src/mkobj.c +++ b/src/mkobj.c @@ -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); } /* diff --git a/src/objnam.c b/src/objnam.c index ee9a29836..762b9c25d 100644 --- a/src/objnam.c +++ b/src/objnam.c @@ -1186,7 +1186,8 @@ add_erosion_words(struct obj *obj, char *prefix) : is_corrodeable(obj) ? "corrodeproof " : is_flammable(obj) ? "fireproof " : is_crackable(obj) ? "tempered " /* hardened */ - : ""); + : is_rottable(obj) ? "rotproof " + : ""); } /* used to prevent rust on items where rust makes no difference */