From a1a4b648fbd42883ea7b65643def334a201b0034 Mon Sep 17 00:00:00 2001 From: Chaosvolt Date: Fri, 31 Jan 2025 17:00:25 -0600 Subject: [PATCH] fix: alarm menu no longer complains about deafness when using infolink alarm --- src/handle_action.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/handle_action.cpp b/src/handle_action.cpp index a1ef05bf409c..18159a35e0e6 100644 --- a/src/handle_action.cpp +++ b/src/handle_action.cpp @@ -1097,7 +1097,8 @@ static void sleep() time_duration try_sleep_dur = 24_hours; std::string deaf_text; - if( g->u.is_deaf() ) { + // Infolink alarm is silent and works even if deaf + if( g->u.is_deaf() && !g->u.has_bionic( bionic_id( "bio_infolink" ) ) ) { deaf_text = _( " (DEAF!)" ); } if( u.has_alarm_clock() ) {