summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-09-03 22:03:40 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-09-03 22:03:40 +0000
commit5dbcbe0214981dfad90fc3e5fc95a6d9eebfa51f (patch)
treee36b98836aeacb19f181e982b17270730fb2d632 /crawl-ref/source/effects.cc
parent6a1119f3d988d475c68844195d8d6c5b04b157dc (diff)
downloadcrawl-ref-5dbcbe0214981dfad90fc3e5fc95a6d9eebfa51f.tar.gz
crawl-ref-5dbcbe0214981dfad90fc3e5fc95a6d9eebfa51f.zip
Add noise levels for sound-related random uselessness messages, hell
effect messages, and spell miscast messages. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10618 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r--crawl-ref/source/effects.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc
index b2a55d8932..c1f25c48cb 100644
--- a/crawl-ref/source/effects.cc
+++ b/crawl-ref/source/effects.cc
@@ -853,11 +853,13 @@ void random_uselessness(int scroll_slot)
case 6:
mpr("You hear the tinkle of a tiny bell.", MSGCH_SOUND);
+ noisy(10, you.pos());
cast_summon_butterflies(100);
break;
case 7:
mprf(MSGCH_SOUND, "You hear %s.", weird_sound().c_str());
+ noisy(10, you.pos());
break;
}
}
@@ -2644,6 +2646,9 @@ static void _hell_effects()
temp_rand < 15 ? MSGCH_WARN
: MSGCH_SOUND));
+ if (temp_rand >= 15)
+ noisy(15, you.pos());
+
temp_rand = random2(27);
if (temp_rand > 17) // 9 in 27 odds {dlb}