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.
This commit is contained in:
PatR
2026-03-29 14:02:21 -07:00
parent e3e01267aa
commit 1813e27098

View File

@@ -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;