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:
@@ -481,8 +481,13 @@ boolean td; /* td == TRUE : trap door or hole */
|
|||||||
if (Is_stronghold(&u.uz)) {
|
if (Is_stronghold(&u.uz)) {
|
||||||
find_hell(&dtmp);
|
find_hell(&dtmp);
|
||||||
} else {
|
} else {
|
||||||
|
int dist = newlevel - dunlev(&u.uz);
|
||||||
dtmp.dnum = u.uz.dnum;
|
dtmp.dnum = u.uz.dnum;
|
||||||
dtmp.dlevel = newlevel;
|
dtmp.dlevel = newlevel;
|
||||||
|
if (dist > 1)
|
||||||
|
You("fall down a %s%sshaft!",
|
||||||
|
dist > 3 ? "very " : "",
|
||||||
|
dist > 2 ? "deep " : "");
|
||||||
}
|
}
|
||||||
if (!td)
|
if (!td)
|
||||||
Sprintf(msgbuf, "The hole in the %s above you closes up.",
|
Sprintf(msgbuf, "The hole in the %s above you closes up.",
|
||||||
|
|||||||
Reference in New Issue
Block a user