summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-act.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-06-22 14:24:59 -0400
committerNeil Moore <neil@s-z.org>2014-06-22 14:24:59 -0400
commita5a37449bca395bfd71116991be277af13e6d91b (patch)
tree537b008126549de310a9efd363cb8fd1d53ef079 /crawl-ref/source/mon-act.cc
parent99ae1ee20535427a614e4bd574bc810eb6ec5715 (diff)
downloadcrawl-ref-a5a37449bca395bfd71116991be277af13e6d91b.tar.gz
crawl-ref-a5a37449bca395bfd71116991be277af13e6d91b.zip
Comment a function (SamB)
Diffstat (limited to 'crawl-ref/source/mon-act.cc')
-rw-r--r--crawl-ref/source/mon-act.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-act.cc b/crawl-ref/source/mon-act.cc
index 31f68287bd..62bb334da3 100644
--- a/crawl-ref/source/mon-act.cc
+++ b/crawl-ref/source/mon-act.cc
@@ -862,6 +862,15 @@ static bool _handle_evoke_equipment(monster* mons, bolt & beem)
return rc;
}
+/**
+ * Check whether this monster can make a reaching attack, and do so if
+ * they can.
+ *
+ * @param mons The monster who might be reaching.
+ * @return Whether they attempted a reaching attack. False if the monster
+ * doesn't have a reaching weapon, the foe isn't hostile, the foe
+ * is too near or too far, etc.
+ */
static bool _handle_reaching(monster* mons)
{
bool ret = false;