diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2011-09-10 00:23:26 +0200 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2011-09-10 00:25:10 +0200 |
commit | ecda794cf5b5fbbaff43edda35e262c4ac172e2b (patch) | |
tree | 16a87f0bc4c6ba6d755808452af22e95f700b2de /crawl-ref/source/l_mons.cc | |
parent | 114d259e5c2e37ed3bc6495939cf03c8ca930a04 (diff) | |
download | crawl-ref-ecda794cf5b5fbbaff43edda35e262c4ac172e2b.tar.gz crawl-ref-ecda794cf5b5fbbaff43edda35e262c4ac172e2b.zip |
New monster behaviour: retreating.
When a monster with an intelligence >= I_ANIMAL is attacked but cannot retaliate it
will retreat. This is similar to fleeing but the conditions for it to stop are
different (and a bit randomized).
Diffstat (limited to 'crawl-ref/source/l_mons.cc')
-rw-r--r-- | crawl-ref/source/l_mons.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/l_mons.cc b/crawl-ref/source/l_mons.cc index 712f1b40d4..c7a7c8fb63 100644 --- a/crawl-ref/source/l_mons.cc +++ b/crawl-ref/source/l_mons.cc @@ -550,7 +550,8 @@ static const char *_monster_behaviour_names[] = { "flee", "cornered", "panic", - "lurk" + "lurk", + "retreat" }; static const char* _behaviour_name(beh_type beh) |