From a66954a2f53ac55f9dc3cbe09572ac91935a2464 Mon Sep 17 00:00:00 2001 From: nhmall Date: Mon, 6 Mar 2023 15:11:11 -0500 Subject: [PATCH] Use suggestion from issue #954 As suggested by lynn. Closes #954 --- src/read.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/read.c b/src/read.c index 8eead1153..dcc848838 100644 --- a/src/read.c +++ b/src/read.c @@ -1799,11 +1799,23 @@ seffect_earth(struct obj **sobjp) int nboulders = 0; /* Identify the scroll */ - if (u.uswallow) + if (u.uswallow) { You_hear("rumbling."); - else - pline_The("%s rumbles %s you!", ceiling(u.ux, u.uy), + } else { + if (!In_quest(&u.uz)) { + pline_The("%s rumbles %s you!", ceiling(u.ux, u.uy), + sblessed ? "around" : "above"); + } else { + char matbuf[BUFSZ]; + const char *const avalanche = "avalanche"; + + Sprintf(matbuf, "%s", + sblessed ? makeplural(avalanche) : an(avalanche)); + pline("%s of boulders %s %s you!", + upstart(matbuf), vtense(matbuf, "materialize"), sblessed ? "around" : "above"); + } + } gk.known = 1; sokoban_guilt();