disable_orb_range cheat for presentations

This commit is contained in:
Zeno Rogue 2022-05-17 09:44:18 +02:00
parent a703e1af2d
commit 9bc0623022
1 changed files with 13 additions and 9 deletions

View File

@ -1257,6 +1257,8 @@ EX int check_vault(cell *cf, cell *ct, flagtype flags, cell*& jumpthru) {
return 6;
}
EX bool disable_orb_range = false;
EX eItem targetRangedOrb(cell *c, orbAction a) {
if(!haveRangedOrb()) {
@ -1282,6 +1284,7 @@ EX eItem targetRangedOrb(cell *c, orbAction a) {
// (-1) distance
if(!disable_orb_range) {
if(c == cwt.at || isNeighbor(cwt.at, c)) {
if(!isWeakCheck(a))
addMessage(XLAT("You cannot target that close!"));
@ -1292,6 +1295,7 @@ EX eItem targetRangedOrb(cell *c, orbAction a) {
addMessage(XLAT("You cannot target that far away!"));
return itNone;
}
}
vector<string> orb_error_messages;