mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-06 08:43:02 +00:00
Merge pull request #444 from josephcsible/olrdangerouswarning
Warn before collecting potentially-dangerous orbs
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user