summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_mons.cc
diff options
context:
space:
mode:
authorRaphael Langella <raphael.langella@gmail.com>2011-09-10 00:23:26 +0200
committerRaphael Langella <raphael.langella@gmail.com>2011-09-10 00:25:10 +0200
commitecda794cf5b5fbbaff43edda35e262c4ac172e2b (patch)
tree16a87f0bc4c6ba6d755808452af22e95f700b2de /crawl-ref/source/l_mons.cc
parent114d259e5c2e37ed3bc6495939cf03c8ca930a04 (diff)
downloadcrawl-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.cc3
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)