From abf2245da5bdf645950c2f0e6de18a4aaeefe7f4 Mon Sep 17 00:00:00 2001 From: copperwater Date: Sun, 28 Aug 2022 08:09:18 -0400 Subject: [PATCH] Remove "danger sense" message for a monster you can already see If you had both warning and ESP, you would get the message "Your danger sense causes you to take a second look close by" when moving next to a monster that is technically "undetected" (according to mundetected) but was actually apparent to the player via ESP. For instance, moving next to an eel hiding in the water would produce this. Since there was no follow-up message ("You find a ".) and no new information being given to the player, the "danger sense" message was pointless, and so I removed it in this case when the warning doesn't lead you to find anything new. --- src/detect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detect.c b/src/detect.c index f042f719a..f4d955357 100644 --- a/src/detect.c +++ b/src/detect.c @@ -1751,7 +1751,7 @@ mfind0(struct monst *mtmp, boolean via_warning) if (mtmp->mundetected && (is_hider(mtmp->data) || hides_under(mtmp->data) || mtmp->data->mlet == S_EEL)) { - if (via_warning) { + if (via_warning && found_something) { Your("danger sense causes you to take a second %s.", Blind ? "to check nearby" : "look close by"); display_nhwindow(WIN_MESSAGE, FALSE); /* flush messages */