polyself: centaurs vs boots

Monster centaurs can't wear boots, and characters who polymorph
into centaurs have their boots pushed off, but there was nothing to
prevent such characters from putting those boots right back on.
This commit is contained in:
nethack.rankin
2002-03-29 13:37:16 +00:00
parent 14ec6fe03b
commit 72048905ad
2 changed files with 9 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)do_wear.c 3.4 2002/02/23 */
/* SCCS Id: @(#)do_wear.c 3.4 2002/03/28 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
@@ -1268,6 +1268,13 @@ boolean noisy;
} else if (Upolyd && slithy(youmonst.data)) {
if (noisy) You("have no feet..."); /* not body_part(FOOT) */
err++;
} else if (Upolyd && youmonst.data->mlet == S_CENTAUR) {
/* break_armor() pushes boots off for centaurs,
so don't let dowear() put them back on... */
if (noisy) pline("You have too many hooves to wear %s.",
c_boots); /* makeplural(body_part(FOOT)) yields
"rear hooves" which sounds odd */
err++;
} else if (u.utrap && (u.utraptype == TT_BEARTRAP ||
u.utraptype == TT_INFLOOR)) {
if (u.utraptype == TT_BEARTRAP) {