diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-17 22:48:28 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-17 22:48:28 +0000 |
commit | 94d956b872a116e4523fc73fec1a0420c33615ee (patch) | |
tree | 7ff7cbe53a05b5020f47535d4e36e6139c07338f /crawl-ref/source/view.cc | |
parent | 00c8183d4970b86b8007f69197eb08b9bc0edafc (diff) | |
download | crawl-ref-94d956b872a116e4523fc73fec1a0420c33615ee.tar.gz crawl-ref-94d956b872a116e4523fc73fec1a0420c33615ee.zip |
Implement [2535038]: monsters now have a chance of shouting whenever
they are woken up, unless it's by a successful stab. (The previous
behaviour made them shout only when they were woken up by the player
walking around.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9121 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r-- | crawl-ref/source/view.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc index fa5994034d..b07df850cf 100644 --- a/crawl-ref/source/view.cc +++ b/crawl-ref/source/view.cc @@ -1004,11 +1004,8 @@ void flush_comes_into_view() void handle_monster_shouts(monsters* monster, bool force) { - if (!force && (!you.turn_is_over - || x_chance_in_y(you.skills[SK_STEALTH], 30))) - { + if (!force && x_chance_in_y(you.skills[SK_STEALTH], 30)) return; - } // Friendly or neutral monsters don't shout. if (!force && (mons_friendly(monster) || mons_neutral(monster))) @@ -1259,7 +1256,6 @@ void monster_grid(bool do_updates) && check_awaken(monster)) { behaviour_event(monster, ME_ALERT, MHITYOU); - handle_monster_shouts(monster); } // [enne] - It's possible that mgrd and monster->x/y are out of |