summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/arena.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-03 06:07:13 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-03 06:07:13 +0000
commit372b7c5803a47c4f2aaa246867aeb0c4bbd2abaf (patch)
treefdf46bfc7d7f9e000a1b5fb9a01c665c2c8e2270 /crawl-ref/source/arena.cc
parent784b37028a033a469df1d64507a7e06ec1e3149e (diff)
downloadcrawl-ref-372b7c5803a47c4f2aaa246867aeb0c4bbd2abaf.tar.gz
crawl-ref-372b7c5803a47c4f2aaa246867aeb0c4bbd2abaf.zip
Add arena_force_ai option (also settable as "force_ai" or "no_force_ai" in the arena spec) that when unset, uses the real game's monster AI, and when set, forces monsters to attack.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8160 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/arena.cc')
-rw-r--r--crawl-ref/source/arena.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/arena.cc b/crawl-ref/source/arena.cc
index 67b8e9413f..035aa6caa2 100644
--- a/crawl-ref/source/arena.cc
+++ b/crawl-ref/source/arena.cc
@@ -263,6 +263,9 @@ namespace arena
{
std::string spec = find_monster_spec();
+ Options.arena_force_ai =
+ strip_bool_tag(spec, "force_ai", Options.arena_force_ai);
+
allow_summons = !strip_tag(spec, "no_summons");
do_alert = strip_tag(spec, "alert");
no_immobile = strip_tag(spec, "no_immobile");