]> granicus.if.org Git - nethack/commitdiff
running across vibrating square
authornethack.rankin <nethack.rankin>
Fri, 20 Sep 2002 07:26:12 +0000 (07:26 +0000)
committernethack.rankin <nethack.rankin>
Fri, 20 Sep 2002 07:26:12 +0000 (07:26 +0000)
     Some newsgroup discussion has reminded me something I've meant
to do for a long time.  Stop running when you get the special message
about the floor vibrating under your feet.  Also vary it when you're
not actually stepping on the ground.

doc/fixes34.1
src/hack.c

index 90b768ff77f797be09fd3cf231992352f8a3fc06..8926d7796b32cf83ed5bc42465980f9b4357be4b 100644 (file)
@@ -249,6 +249,7 @@ skilled spell of detected treasure wasn't acting like blessed potion of
        object detection (from Roderick Schertler)
 fix end of game attribute disclosure for levitation negated by sink
 kicking a box embedded in a wall will knock it free rather than bust it open
+stop running or travelling if the vibrating square message is triggered
 
 
 Platform- and/or Interface-Specific Fixes
index 3e1aac1c1a0da1a89126a18e04133e8317283445..739ef502c26742f58e8af018c970b6216b04ba6f 100644 (file)
@@ -1390,10 +1390,18 @@ invocation_message()
 {
        /* a special clue-msg when on the Invocation position */
        if(invocation_pos(u.ux, u.uy) && !On_stairs(u.ux, u.uy)) {
+           char buf[BUFSZ];
            struct obj *otmp = carrying(CANDELABRUM_OF_INVOCATION);
 
-           You_feel("a strange vibration under your %s.",
-                   makeplural(body_part(FOOT)));
+           nomul(0);           /* stop running or travelling */
+#ifdef STEED
+           if (u.usteed) Sprintf(buf, "beneath %s", y_monnam(u.usteed));
+           else
+#endif
+           if (Levitation || Flying) Strcpy(buf, "beneath you");
+           else Sprintf(buf, "under your %s", makeplural(body_part(FOOT)));
+
+           You_feel("a strange vibration %s.", buf);
            if (otmp && otmp->spe == 7 && otmp->lamplit)
                pline("%s %s!", The(xname(otmp)),
                    Blind ? "throbs palpably" : "glows with a strange light");