hearing a boulder fall
As From a bug report, if you couldn't see a rolling boulder fall into a pit, you only heard the sound if you were blind. Also fixes the article used in the message.
This commit is contained in:
@@ -32,6 +32,8 @@ prevent "offering" or other words with similar ending from matching ring quote
|
||||
make cleric cast lightning blind as other lightning does
|
||||
change the wording slightly to use "one of " when a monster wielding
|
||||
multiple daggers thrusts them
|
||||
if you didn't see a rolling boulder fall into a pit, you only heard the sound
|
||||
of it doing so if you were blind
|
||||
|
||||
|
||||
Platform- and/or Interface-Specific Fixes
|
||||
|
||||
9
src/do.c
9
src/do.c
@@ -171,17 +171,16 @@ const char *verb;
|
||||
}
|
||||
}
|
||||
if (*verb) {
|
||||
if (Blind) {
|
||||
if ((x == u.ux) && (y == u.uy))
|
||||
You_hear("a CRASH! beneath you.");
|
||||
else
|
||||
You_hear("the boulder %s.", verb);
|
||||
if (Blind && (x == u.ux) && (y == u.uy)) {
|
||||
You_hear("a CRASH! beneath you.");
|
||||
} else if (cansee(x, y)) {
|
||||
pline_The("boulder %s%s.",
|
||||
t->tseen ? "" : "triggers and ",
|
||||
t->ttyp == TRAPDOOR ? "plugs a trap door" :
|
||||
t->ttyp == HOLE ? "plugs a hole" :
|
||||
"fills a pit");
|
||||
} else {
|
||||
You_hear("a boulder %s.", verb);
|
||||
}
|
||||
}
|
||||
deltrap(t);
|
||||
|
||||
Reference in New Issue
Block a user