diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-13 15:28:11 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-13 15:47:43 +0100 |
commit | 934725f25eae11ced143d86d271ef43d7da83470 (patch) | |
tree | 63d48987763385c832eadd89cc80a7bad2f69100 /crawl-ref/source/mon-act.cc | |
parent | 715680dd8c38e6829166d955a5fd2ff3a495346c (diff) | |
download | crawl-ref-934725f25eae11ced143d86d271ef43d7da83470.tar.gz crawl-ref-934725f25eae11ced143d86d271ef43d7da83470.zip |
Remove arena AI forcing option.
It's not strictly necessary anymore to have sensible fights with
recent AI changes, and could easily be restored if required.
Better to improve non-arena AI, however.
Diffstat (limited to 'crawl-ref/source/mon-act.cc')
-rw-r--r-- | crawl-ref/source/mon-act.cc | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/crawl-ref/source/mon-act.cc b/crawl-ref/source/mon-act.cc index 4a7b798619..54bf8c2afe 100644 --- a/crawl-ref/source/mon-act.cc +++ b/crawl-ref/source/mon-act.cc @@ -372,32 +372,8 @@ static void _handle_movement(monsters *monster) delta = you.pos() - monster->pos(); } else - { delta = monster->target - monster->pos(); - if (crawl_state.arena && Options.arena_force_ai - && !mons_is_stationary(monster)) - { - const bool ranged = (mons_has_ranged_attack(monster) - || mons_has_ranged_spell(monster)); - - // Smiters are happy if they have clear visibility through - // glass, but other monsters must go around. - const bool glass_ok = mons_has_smite_attack(monster); - - // Monsters in the arena are smarter than the norm and - // always pathfind to their targets. - if (delta.abs() > 2 - && (!ranged - || !monster->mon_see_cell(monster->target, !glass_ok))) - { - monster_pathfind mp; - if (mp.init_pathfind(monster, monster->target)) - delta = mp.next_pos(monster->pos()) - monster->pos(); - } - } - } - // Move the monster. mmov.x = (delta.x > 0) ? 1 : ((delta.x < 0) ? -1 : 0); mmov.y = (delta.y > 0) ? 1 : ((delta.y < 0) ? -1 : 0); |