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:
nethack.allison
2004-06-05 13:56:29 +00:00
parent 39d3249ed8
commit 6085c8b658
2 changed files with 6 additions and 5 deletions

View File

@@ -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

View File

@@ -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);