uselessness if the player is silenced.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5270 c06c8d41-db1a-0410-9941-cceddc491573
74TUU6KL4CZSYZY2P5GKLOCOPAJL32YFMUYV7JCO2Z3OQGREH56QC
temp_rand = random2(9);
mprf("You hear %s.",
(temp_rand == 0) ? "snatches of song" :
(temp_rand == 1) ? "a voice call someone else's name" :
(temp_rand == 2) ? "a very strange noise" :
(temp_rand == 3) ? "roaring flame" :
(temp_rand == 4) ? "a very strange noise indeed" :
(temp_rand == 5) ? "the chiming of a distant gong" :
(temp_rand == 6) ? "the bellowing of a yak" :
(temp_rand == 7) ? "a crunching sound"
: "the tinkle of an enormous bell");
if (!silenced(you.x_pos, you.y_pos))
{
temp_rand = random2(9);
mprf("You hear %s.",
(temp_rand == 0) ? "snatches of song" :
(temp_rand == 1) ? "a voice call someone else's name" :
(temp_rand == 2) ? "a very strange noise" :
(temp_rand == 3) ? "roaring flame" :
(temp_rand == 4) ? "a very strange noise indeed" :
(temp_rand == 5) ? "the chiming of a distant gong" :
(temp_rand == 6) ? "the bellowing of a yak" :
(temp_rand == 7) ? "a crunching sound"
: "the tinkle of an enormous bell");
}