summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-util.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-02 20:36:51 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-02 20:36:51 +0000
commit78edf358eefc57dbe3f7bcd257cbf6b9d319149a (patch)
tree3579a9ce46b2cb7525c914079a05246c19dbdae8 /crawl-ref/source/mon-util.cc
parent17125f250661e8430e320f4c05d74094235f0cf3 (diff)
downloadcrawl-ref-78edf358eefc57dbe3f7bcd257cbf6b9d319149a.tar.gz
crawl-ref-78edf358eefc57dbe3f7bcd257cbf6b9d319149a.zip
Make monster behaviour in arenas smarter, allow delay:N in arena spec to set arena_delay.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8129 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r--crawl-ref/source/mon-util.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc
index 871395b42f..afbdd7e52f 100644
--- a/crawl-ref/source/mon-util.cc
+++ b/crawl-ref/source/mon-util.cc
@@ -3167,7 +3167,7 @@ const char *mons_pronoun(monster_type mon_type, pronoun_type variant,
// Checks if the monster can use smiting/torment to attack without
// unimpeded LOS to the player.
-static bool _mons_can_smite(const monsters *monster)
+bool mons_has_smite_attack(const monsters *monster)
{
if (monster->type == MONS_FIEND)
return (true);
@@ -3214,7 +3214,7 @@ bool monster_shover(const monsters *m)
return (false);
// Smiters profit from staying back and smiting.
- if (_mons_can_smite(m))
+ if (mons_has_smite_attack(m))
return (false);
int mchar = me->showchar;