diff options
author | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-06-06 23:20:04 -0700 |
---|---|---|
committer | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-06-06 23:23:12 -0700 |
commit | 94533af89455116e4220b199595cfbbc412e49f6 (patch) | |
tree | bf288c843cfe3589d1d8535a632df17bc384b12b /crawl-ref/source/monster.h | |
parent | 1a204a1fbfdcd428c9048317d5ed855d33e356ce (diff) | |
download | crawl-ref-94533af89455116e4220b199595cfbbc412e49f6.tar.gz crawl-ref-94533af89455116e4220b199595cfbbc412e49f6.zip |
Make monsters avoid traps while climbing stairs (7749, elliptic)
As they would during normal movement. Shouldn't get
allies triggering zot traps while following you up
stairs, etc.
Diffstat (limited to 'crawl-ref/source/monster.h')
-rw-r--r-- | crawl-ref/source/monster.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/monster.h b/crawl-ref/source/monster.h index bba080604a..554cd5bc58 100644 --- a/crawl-ref/source/monster.h +++ b/crawl-ref/source/monster.h @@ -182,6 +182,7 @@ public: bool is_patrolling() const; bool needs_abyss_transit() const; void set_transit(const level_id &destination); + bool is_trap_safe(const coord_def& where, bool just_check = false) const; bool find_place_to_live(bool near_player = false); bool find_home_near_place(const coord_def &c); bool find_home_near_player(); |