diff options
author | Adam Borowski <kilobyte@angband.pl> | 2009-11-13 19:43:31 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2009-11-13 19:51:51 +0100 |
commit | 40ce8c0ee030a84d9736747f12df738ffea8c40a (patch) | |
tree | 1048c62cd63686f02368450af7f09f511c7ffb7a /crawl-ref/source/art-func.h | |
parent | 14be7c5cfe60d0d9f1a00cd543c32482bdd544d4 (diff) | |
download | crawl-ref-40ce8c0ee030a84d9736747f12df738ffea8c40a.tar.gz crawl-ref-40ce8c0ee030a84d9736747f12df738ffea8c40a.zip |
Fixedart: shield of the gong. Wakes up everyone in a large radius on being struck.
The exact resists are not yet filled in, we'd need to interrogate zelgadis who
provided the idea.
Diffstat (limited to 'crawl-ref/source/art-func.h')
-rw-r--r-- | crawl-ref/source/art-func.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/crawl-ref/source/art-func.h b/crawl-ref/source/art-func.h index b460304502..83ba5264ad 100644 --- a/crawl-ref/source/art-func.h +++ b/crawl-ref/source/art-func.h @@ -491,3 +491,17 @@ static void _STORM_BOW_world_reacts(item_def *item) } /////////////////////////////////////////////////// + +static void _GONG_melee_effect(item_def* item, actor* wearer, + actor* attacker, bool dummy) +{ + if (silenced(wearer->pos())) + return; + + std::string msg = getSpeakString("shield of the gong"); + if (msg.empty()) + msg = "You hear a strange loud sound."; + mpr(msg.c_str(), MSGCH_SOUND); + + noisy(40, wearer->pos()); +} |