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!".
This commit is contained in:
Pasi Kallinen
2015-04-23 19:27:07 +03:00
parent ae6eeec22a
commit fbf787c4fe

View File

@@ -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.",