From 1813e27098b260b7ef666919fe0a31df4a3ac707 Mon Sep 17 00:00:00 2001 From: PatR Date: Sun, 29 Mar 2026 14:02:21 -0700 Subject: [PATCH] farlook of quest stairs down When access to the quest isn't available yet, describe the stairs down as "blocked staircase down" instead of the usual "staircase down". Applies to mimics posing as stairs too. Does not apply to the stairs when standing on them and using lookhere. I was going to use "locked staircase down" but that would imply that a key or unlocking magic could be applicable. --- src/pager.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pager.c b/src/pager.c index ca5ed2810..f016cd258 100644 --- a/src/pager.c +++ b/src/pager.c @@ -1,4 +1,4 @@ -/* NetHack 3.7 pager.c $NHDT-Date: 1764044196 2025/11/24 20:16:36 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.292 $ */ +/* NetHack 3.7 pager.c $NHDT-Date: 1774846177 2026/03/29 20:49:37 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.296 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /*-Copyright (c) Robert Patrick Rankin, 2018. */ /* NetHack may be freely redistributed. See license for details. */ @@ -1600,6 +1600,9 @@ do_screen_description( *for_supplement = pm; if (!strcmp(look_buf, "ice")) (void) ice_descr(cc.x, cc.y, look_buf); + if (!strcmp(look_buf, "staircase down") + && on_level(&u.uz, &qstart_level) && !ok_to_quest()) + Strcpy(look_buf, "blocked staircase down"); if (look_buf[0] != '\0') *firstmatch = look_buf;