diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-01-09 10:32:10 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-01-09 10:32:10 +0000 |
commit | 843b0034d812492266b0aa07c812b9f54890feaa (patch) | |
tree | 96908c38b61be7b7c43cbcee82e50841f620a716 /crawl-ref/source/delay.cc | |
parent | 5e3c0308b4efb39a41b21d37e8648c8b2fae248d (diff) | |
download | crawl-ref-843b0034d812492266b0aa07c812b9f54890feaa.tar.gz crawl-ref-843b0034d812492266b0aa07c812b9f54890feaa.zip |
Tweaked travel/explore so that it doesn't cut off before trying to move to a
square with an invisible monster/mimic. Travel now cuts off when the PC
attempts to attack the invisible monster.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@813 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/delay.cc')
-rw-r--r-- | crawl-ref/source/delay.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc index 1570cef9b6..e40d3526be 100644 --- a/crawl-ref/source/delay.cc +++ b/crawl-ref/source/delay.cc @@ -959,6 +959,11 @@ bool interrupt_activity( activity_interrupt_type ai, if (delay == DELAY_NOT_DELAYED) return (false); +#ifdef DEBUG_DIAGNOSTICS + mprf(MSGCH_DIAGNOSTICS, "Activity interrupt: %s", + activity_interrupt_name(ai)); +#endif + // First try to stop the current delay. const delay_queue_item &item = you.delay_queue.front(); @@ -1004,7 +1009,7 @@ static const char *activity_interrupt_names[] = { "force", "keypress", "full_hp", "full_mp", "statue", "hungry", "message", "hp_loss", "burden", "stat", - "monster", "monster_attack", "teleport" + "monster", "monster_attack", "teleport", "hit_monster" }; const char *activity_interrupt_name(activity_interrupt_type ai) |