From fbf787c4fedc8d2fa81a004a012207e6308307af Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Thu, 23 Apr 2015 19:27:07 +0300 Subject: [PATCH] Indicate how far you fall down a hole or trapdoor No extra message when falling down to the next level, otherwise give "You fall down a [very] [deep] shaft!". --- src/trap.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/trap.c b/src/trap.c index 3efae477d..dbfa00b5f 100644 --- a/src/trap.c +++ b/src/trap.c @@ -481,8 +481,13 @@ boolean td; /* td == TRUE : trap door or hole */ if (Is_stronghold(&u.uz)) { find_hell(&dtmp); } else { + int dist = newlevel - dunlev(&u.uz); dtmp.dnum = u.uz.dnum; dtmp.dlevel = newlevel; + if (dist > 1) + You("fall down a %s%sshaft!", + dist > 3 ? "very " : "", + dist > 2 ? "deep " : ""); } if (!td) Sprintf(msgbuf, "The hole in the %s above you closes up.",