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
+2
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 make cleric cast lightning blind as other lightning does
change the wording slightly to use "one of " when a monster wielding change the wording slightly to use "one of " when a monster wielding
multiple daggers thrusts them 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 Platform- and/or Interface-Specific Fixes
+4 -5
View File
@@ -171,17 +171,16 @@ const char *verb;
} }
} }
if (*verb) { if (*verb) {
if (Blind) { if (Blind && (x == u.ux) && (y == u.uy)) {
if ((x == u.ux) && (y == u.uy)) You_hear("a CRASH! beneath you.");
You_hear("a CRASH! beneath you.");
else
You_hear("the boulder %s.", verb);
} else if (cansee(x, y)) { } else if (cansee(x, y)) {
pline_The("boulder %s%s.", pline_The("boulder %s%s.",
t->tseen ? "" : "triggers and ", t->tseen ? "" : "triggers and ",
t->ttyp == TRAPDOOR ? "plugs a trap door" : t->ttyp == TRAPDOOR ? "plugs a trap door" :
t->ttyp == HOLE ? "plugs a hole" : t->ttyp == HOLE ? "plugs a hole" :
"fills a pit"); "fills a pit");
} else {
You_hear("a boulder %s.", verb);
} }
} }
deltrap(t); deltrap(t);