diff options
author | Neil Moore <neil@s-z.org> | 2012-03-17 02:17:21 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2012-03-17 02:17:21 -0400 |
commit | 5e25050bc6d1e2dc0b650e95f9a935b0595def79 (patch) | |
tree | 1cdfe4c8ec0e907600dee51ea0f862faff2437f8 /crawl-ref/source/mon-flags.h | |
parent | f0023c3bc739947aea7537ababfe635fe2d4837f (diff) | |
download | crawl-ref-5e25050bc6d1e2dc0b650e95f9a935b0595def79.tar.gz crawl-ref-5e25050bc6d1e2dc0b650e95f9a935b0595def79.zip |
Add a monster class flag for maintaining distance.
Monsters with the new M_MAINTAIN_RANGE flag will try to maintain
"firing" range (LOS/2), even at the expense of moving away from you.
The idea is to use this for a few special monsters with ranged attacks,
including perhaps some spiders.
Diffstat (limited to 'crawl-ref/source/mon-flags.h')
-rw-r--r-- | crawl-ref/source/mon-flags.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-flags.h b/crawl-ref/source/mon-flags.h index c3426cb8ab..0ccf9073e0 100644 --- a/crawl-ref/source/mon-flags.h +++ b/crawl-ref/source/mon-flags.h @@ -140,6 +140,9 @@ const uint64_t M_NO_FLEE = (uint64_t)1<<42; // can sense vibrations in web traps const uint64_t M_WEB_SENSE = (uint64_t)1<<43; +// tries to maintain LOS/2 range from its target +const uint64_t M_MAINTAIN_RANGE = (uint64_t)1<<44; + // Same for flags for actual monsters. typedef uint64_t monster_flag_type; const uint64_t MF_NO_REWARD = BIT(0); // no benefit from killing |