mention_decor vs Underwater or drowning escape
Avoid redundant |You are on solid land again. |You are back on floor. when walking or teleporting out of water with the mention_decor option on.
This commit is contained in:
@@ -2106,13 +2106,15 @@ boolean newspot; /* true if called by spoteffects */
|
||||
boolean still_inwater = FALSE; /* assume we're getting out */
|
||||
|
||||
if (!is_pool(u.ux, u.uy)) {
|
||||
if (Is_waterlevel(&u.uz))
|
||||
if (Is_waterlevel(&u.uz)) {
|
||||
You("pop into an air bubble.");
|
||||
else if (is_lava(u.ux, u.uy))
|
||||
} else if (is_lava(u.ux, u.uy)) {
|
||||
You("leave the %s...", hliquid("water")); /* oops! */
|
||||
else
|
||||
} else {
|
||||
You("are on solid %s again.",
|
||||
is_ice(u.ux, u.uy) ? "ice" : "land");
|
||||
iflags.last_msg = PLNMSG_BACK_ON_GROUND;
|
||||
}
|
||||
} else if (Is_waterlevel(&u.uz)) {
|
||||
still_inwater = TRUE;
|
||||
} else if (Levitation) {
|
||||
|
||||
Reference in New Issue
Block a user