summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/art-func.h
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/art-func.h')
-rw-r--r--crawl-ref/source/art-func.h14
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());
+}