]> granicus.if.org Git - nethack/commitdiff
polyself: centaurs vs boots
authornethack.rankin <nethack.rankin>
Fri, 29 Mar 2002 13:37:16 +0000 (13:37 +0000)
committernethack.rankin <nethack.rankin>
Fri, 29 Mar 2002 13:37:16 +0000 (13:37 +0000)
     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.

doc/fixes34.1
src/do_wear.c

index cff5afdb3471cf2255dbb681d886d1606b9051b8..3af3739afd565df8214a6dd4c6e1a4ae378a7632 100644 (file)
@@ -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
index b4363c55da953d9f696c65cbe50c7e21fc976132..ea30d9c8b789e3c73b3270df133155144dfb1da8 100644 (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) {