diff options
author | elliptic <hyperelliptical@gmail.com> | 2014-02-13 15:20:05 -0500 |
---|---|---|
committer | elliptic <hyperelliptical@gmail.com> | 2014-02-13 15:24:26 -0500 |
commit | 5a745abeb842ba05116320a397ba05de73a94303 (patch) | |
tree | d508e05e4aa09e6d31a1c7e0e342a8f51910813f /crawl-ref/source/mon-behv.cc | |
parent | 5f9f4c61098c323c0ecdf8bff998a5802183fc92 (diff) | |
download | crawl-ref-5a745abeb842ba05116320a397ba05de73a94303.tar.gz crawl-ref-5a745abeb842ba05116320a397ba05de73a94303.zip |
M_VIGILANT changes.
The flag no longer makes the monster automatically notice the player as soon
as the player enters sight. Instead, it divides the chance of the monster
forgetting about an out-of-sight player by 3. (The flag also still has the
effect of making the monster's foe_memory not decrease with time.)
This affects only one monster currently: curse skull. The purpose of the flag
is to make the monster handle being out of the player's sight better, so
possibly wandering mushroom should gain it too.
Diffstat (limited to 'crawl-ref/source/mon-behv.cc')
-rw-r--r-- | crawl-ref/source/mon-behv.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-behv.cc b/crawl-ref/source/mon-behv.cc index f118504dd0..b6b119b297 100644 --- a/crawl-ref/source/mon-behv.cc +++ b/crawl-ref/source/mon-behv.cc @@ -736,7 +736,9 @@ void handle_behaviour(monster* mon) else { if (x_chance_in_y(50, you.stealth()) - || you.penance[GOD_ASHENZARI] && coinflip()) + || you.penance[GOD_ASHENZARI] && coinflip() + || mons_class_flag(mon->type, M_VIGILANT) + && !one_chance_in(3)) { mon->target = you.pos(); } |