summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/traps.cc
diff options
context:
space:
mode:
authorNicholas Feinberg <pleasingfung@gmail.com>2014-07-10 08:22:36 -0700
committerNicholas Feinberg <pleasingfung@gmail.com>2014-07-10 08:34:59 -0700
commitdc23beb9a4f92a5af90896e1876596e2a5d5b274 (patch)
treeb6cad7bf03bad3e889c69ec1aebf8b22df213d63 /crawl-ref/source/traps.cc
parentf1e799b432ca457fa06dc823faf15a1ec1f338a9 (diff)
downloadcrawl-ref-dc23beb9a4f92a5af90896e1876596e2a5d5b274.tar.gz
crawl-ref-dc23beb9a4f92a5af90896e1876596e2a5d5b274.zip
Add messaging for nets bouncing off giant monsters
The phrasing isn't ideal, but now at least players will have some idea what's going on.
Diffstat (limited to 'crawl-ref/source/traps.cc')
-rw-r--r--crawl-ref/source/traps.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/traps.cc b/crawl-ref/source/traps.cc
index fecc5d9c77..a8589bbde0 100644
--- a/crawl-ref/source/traps.cc
+++ b/crawl-ref/source/traps.cc
@@ -337,7 +337,13 @@ static void _mark_net_trapping(const coord_def& where)
bool monster_caught_in_net(monster* mon, actor* agent)
{
if (mon->body_size(PSIZE_BODY) >= SIZE_GIANT)
+ {
+ if (mons_near(mon) && !mon->visible_to(&you))
+ mpr("The net bounces off something gigantic!");
+ else
+ simple_monster_message(mon, " is too large for the net to hold!");
return false;
+ }
if (mons_class_is_stationary(mon->type))
{