diff options
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r-- | crawl-ref/source/misc.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc index 342e7f96ae..c1115df870 100644 --- a/crawl-ref/source/misc.cc +++ b/crawl-ref/source/misc.cc @@ -2759,6 +2759,15 @@ bool i_feel_safe(bool announce, bool want_move, bool just_monsters, int range) return (false); } +bool there_are_monsters_nearby() +{ + // Monster check. + std::vector<monsters*> visible; + get_playervisible_monsters(visible, false, true); + + return (!visible.empty()); +} + static const char *shop_types[] = { "weapon", "armour", |