From 300b157c23f4b3a0727a19b3fd89d24e909f5184 Mon Sep 17 00:00:00 2001 From: haranp Date: Sun, 21 Sep 2008 10:49:08 +0000 Subject: Fix 2085598: Nemelex won't be disappointed if there are invisible monsters nearby when drawing from Destruction, even if you can't see them. Xom can now act on creatures you can't see. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6960 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/misc.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/misc.h') diff --git a/crawl-ref/source/misc.h b/crawl-ref/source/misc.h index 442cefbbc0..35b5df6daa 100644 --- a/crawl-ref/source/misc.h +++ b/crawl-ref/source/misc.h @@ -72,14 +72,17 @@ void curare_hits_player(int agent, int degree); bool mons_is_safe(const monsters *mon, bool want_move = false); -void get_playervisible_monsters(std::vector& mons, - bool want_move = false, bool just_check = false, - bool dangerous_only = false, int range = -1); +std::vector get_nearby_monsters(bool want_move = false, + bool just_check = false, + bool dangerous_only = false, + bool require_visible = true, + int range = -1); bool i_feel_safe(bool announce = false, bool want_move = false, bool just_monsters = false, int range = -1); -bool there_are_monsters_nearby(); +bool there_are_monsters_nearby(bool dangerous_only = false, + bool require_visible = true); void setup_environment_effects(); -- cgit v1.2.3-54-g00ecf