summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/initfile.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/initfile.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/initfile.cc')
-rw-r--r--crawl-ref/source/initfile.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc
index 0eb4305592..1e4c59cf9c 100644
--- a/crawl-ref/source/initfile.cc
+++ b/crawl-ref/source/initfile.cc
@@ -717,6 +717,10 @@ void game_options::reset_options()
arena_dump_msgs_all = false;
arena_list_eq = false;
+ // If true, monsters are forced to target each other in arena
+ // mode, even when outside LOS of each other.
+ arena_force_ai = true;
+
// Sort only pickup menus by default.
sort_menus.clear();
set_menu_sort("pickup: true");