From d584be1638ae6b210b000da001ea1c0cfbc899d6 Mon Sep 17 00:00:00 2001 From: Chaosvolt Date: Tue, 19 Sep 2023 15:33:07 -0500 Subject: [PATCH] Prevent auto-eating items with use actions --- src/activity_item_handling.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/activity_item_handling.cpp b/src/activity_item_handling.cpp index d4b04d33d70b..31ca3ce6ce41 100644 --- a/src/activity_item_handling.cpp +++ b/src/activity_item_handling.cpp @@ -3195,6 +3195,11 @@ bool find_auto_consume( player &p, const consume_type type ) { return false; } + /* Avoid items that may softlock with a Y/N query */ + if( comest.has_use() ) + { + return false; + } return true; };