lineofsight:: first commit

This commit is contained in:
Zeno Rogue
2026-07-31 11:26:30 +02:00
parent 1880494dd2
commit 9dbbd113a7
12 changed files with 153 additions and 21 deletions
+5
View File
@@ -1402,6 +1402,11 @@ EX eItem targetRangedOrb(cell *c, orbAction a) {
addMessage(XLAT("You cannot target that far away!"));
return itNone;
}
if(!in_line_of_sight_for_player(c)) {
if(!isWeakCheck(a))
addMessage(XLAT("You cannot target what you cannot see!"));
return itNone;
}
}
vector<string> orb_error_messages;