buglist entry: hobbits and elven mithril armour

<Someone> wrote: "Also, hobbits can't wear armour,
at least, you can't wear armour when polymorphed into a hobbit, even
though hobbits do tend to be carrying elven mithril-coats.
It's tempting to suggest adding an explicit exception in
sliparm() for elven mithril just to keep the Tolkienness."

- added a general routine for adding race-based /object
combination exceptions.
- hobbits can wear elven mithril-coats
This commit is contained in:
nethack.allison
2002-12-29 23:55:58 +00:00
parent df07fd4b90
commit e8ca725e92
7 changed files with 93 additions and 20 deletions

View File

@@ -17,13 +17,6 @@
#ifdef OVLB
/* elven armor vibrates warningly when enchanted beyond a limit */
#define is_elven_armor(optr) ((optr)->otyp == ELVEN_LEATHER_HELM\
|| (optr)->otyp == ELVEN_MITHRIL_COAT\
|| (optr)->otyp == ELVEN_CLOAK\
|| (optr)->otyp == ELVEN_SHIELD\
|| (optr)->otyp == ELVEN_BOOTS)
boolean known;
static NEARDATA const char readable[] =
@@ -711,6 +704,7 @@ register struct obj *sobj;
}
break;
}
/* elven armor vibrates warningly when enchanted beyond a limit */
special_armor = is_elven_armor(otmp) ||
(Role_if(PM_WIZARD) && otmp->otyp == CORNUTHAUM);
if (sobj->cursed)