From: nethack.rankin Date: Fri, 29 Mar 2002 13:37:16 +0000 (+0000) Subject: polyself: centaurs vs boots X-Git-Tag: MOVE2GIT~2867 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72048905ada6b0f33ca67ed6b4490d33dbeef3b2;p=nethack 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. --- diff --git a/doc/fixes34.1 b/doc/fixes34.1 index cff5afdb3..3af3739af 100644 --- a/doc/fixes34.1 +++ b/doc/fixes34.1 @@ -28,6 +28,7 @@ let lev_comp and dgn_comp accept optional carriage return character prior to the terminating newline in special level and dungeon description files Wizard of Yendor will start harassing you after the invocation if you've managed to get that far without ever killing him +characters polymorphed into centaurs can't wear boots Platform- and/or Interface-Specific Fixes diff --git a/src/do_wear.c b/src/do_wear.c index b4363c55d..ea30d9c8b 100644 --- a/src/do_wear.c +++ b/src/do_wear.c @@ -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) {