diff options
Diffstat (limited to 'crawl-ref/source/areas.cc')
-rw-r--r-- | crawl-ref/source/areas.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/crawl-ref/source/areas.cc b/crawl-ref/source/areas.cc index 31be349598..43dc1e4b97 100644 --- a/crawl-ref/source/areas.cc +++ b/crawl-ref/source/areas.cc @@ -27,6 +27,9 @@ #include "travel.h" #include "viewgeom.h" +/////////////// +// Sanctuary + static void _remove_sanctuary_property(const coord_def& where) { env.pgrid(where) &= ~(FPROP_SANCTUARY_1 | FPROP_SANCTUARY_2); @@ -241,3 +244,14 @@ void create_sanctuary(const coord_def& center, int time) else if (scare_count > 0) mpr("The monsters scatter in all directions!"); } + + +///////////// +// Silence + +bool silenced(const coord_def& p) +{ + // FIXME: implement for monsters + return (you.duration[DUR_SILENCE] && distance(p, you.pos()) <= 6*6 + 1); +} + |