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

@@ -590,7 +590,7 @@ break_armor()
}
#endif
} else if (sliparm(youmonst.data)) {
if ((otmp = uarm) != 0) {
if (((otmp = uarm) != 0) && (racial_exception(&youmonst, otmp) < 1)) {
if (donning(otmp)) cancel_don();
Your("armor falls around you!");
(void) Armor_gone();