1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-17 14:17:10 +00:00

Warn before collecting potentially-dangerous orbs

This commit is contained in:
Joseph C. Sible
2025-09-06 22:32:38 -04:00
parent 7c0d2649e3
commit 838d8b156d

View File

@@ -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)))