From 838d8b156d91cb1630db663bb306f037ecd120d4 Mon Sep 17 00:00:00 2001 From: "Joseph C. Sible" Date: Sat, 6 Sep 2025 22:32:38 -0400 Subject: [PATCH] Warn before collecting potentially-dangerous orbs --- pcmove.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcmove.cpp b/pcmove.cpp index 0f18dd61..9c2807fc 100644 --- a/pcmove.cpp +++ b/pcmove.cpp @@ -1094,6 +1094,9 @@ bool pcmove::move_if_okay() { return false; } + if(getOLR(c2->item, c2->land) == olrDangerous && !checkonly && warningprotection(XLAT("Collecting %the1 in %the2 can be dangerous -- are you sure?", c2->item, c2->land))) + return false; + if(switchplace_prevent(cwt.at, c2, *this)) return false; if(!checkonly && warningprotection_hit(do_we_stab_a_friend(mi, moPlayer)))