]> granicus.if.org Git - nethack/commitdiff
"can't reach from steed" message bits
authornethack.rankin <nethack.rankin>
Sat, 17 Dec 2005 05:01:27 +0000 (05:01 +0000)
committernethack.rankin <nethack.rankin>
Sat, 17 Dec 2005 05:01:27 +0000 (05:01 +0000)
     These should have been included with a "#dipping from steed" patch
three years ago.  I don't know whether I missed them outright, neglected
to cut diffs at the time, or just forgot to apply the diffs to my cvs
directory prior to committing the rest of that patch.

src/hack.c
src/trap.c

index aa673bea2c7664537c2b8c10a15efda189743c57..1486590c183c4a5f1e3b4870fbdcade6456e5621 100644 (file)
@@ -1,4 +1,4 @@
-/*     SCCS Id: @(#)hack.c     3.5     2005/06/02      */
+/*     SCCS Id: @(#)hack.c     3.5     2005/12/16      */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -1949,8 +1949,7 @@ dopickup()
                You("cannot reach the bottom of the pit.");
 #ifdef STEED
            else if (u.usteed && P_SKILL(P_RIDING) < P_BASIC)
-               You("aren't skilled enough to reach from %s.",
-                   y_monnam(u.usteed));
+               rider_cant_reach();
 #endif
            else
                You("cannot reach the %s.", surface(u.ux,u.uy));
index 019505229466a9d8f231356f9b85cf3a5ca0c57a..8b4d6d7243168958d18497ba8fe052bd1aceff42 100644 (file)
@@ -3269,8 +3269,7 @@ boolean force_failure;
        if (!can_reach_floor(TRUE)) {
 #ifdef STEED
                if (u.usteed && P_SKILL(P_RIDING) < P_BASIC)
-                       You("aren't skilled enough to reach from %s.",
-                               mon_nam(u.usteed));
+                       rider_cant_reach();
                else
 #endif
                You("are unable to reach the %s!",
@@ -3653,8 +3652,7 @@ boolean force;
                    }
 #ifdef STEED
                    if (u.usteed && P_SKILL(P_RIDING) < P_BASIC) {
-                       You("aren't skilled enough to reach from %s.",
-                               mon_nam(u.usteed));
+                       rider_cant_reach();
                        return(0);
                    }
 #endif