disable_orb_range cheat for presentations
This commit is contained in:
parent
a703e1af2d
commit
9bc0623022
22
orbs.cpp
22
orbs.cpp
|
@ -1257,6 +1257,8 @@ EX int check_vault(cell *cf, cell *ct, flagtype flags, cell*& jumpthru) {
|
||||||
return 6;
|
return 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EX bool disable_orb_range = false;
|
||||||
|
|
||||||
EX eItem targetRangedOrb(cell *c, orbAction a) {
|
EX eItem targetRangedOrb(cell *c, orbAction a) {
|
||||||
|
|
||||||
if(!haveRangedOrb()) {
|
if(!haveRangedOrb()) {
|
||||||
|
@ -1282,15 +1284,17 @@ EX eItem targetRangedOrb(cell *c, orbAction a) {
|
||||||
|
|
||||||
// (-1) distance
|
// (-1) distance
|
||||||
|
|
||||||
if(c == cwt.at || isNeighbor(cwt.at, c)) {
|
if(!disable_orb_range) {
|
||||||
if(!isWeakCheck(a))
|
if(c == cwt.at || isNeighbor(cwt.at, c)) {
|
||||||
addMessage(XLAT("You cannot target that close!"));
|
if(!isWeakCheck(a))
|
||||||
return itNone;
|
addMessage(XLAT("You cannot target that close!"));
|
||||||
}
|
return itNone;
|
||||||
if(c->cpdist > 7) {
|
}
|
||||||
if(!isWeakCheck(a))
|
if(c->cpdist > 7) {
|
||||||
addMessage(XLAT("You cannot target that far away!"));
|
if(!isWeakCheck(a))
|
||||||
return itNone;
|
addMessage(XLAT("You cannot target that far away!"));
|
||||||
|
return itNone;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
vector<string> orb_error_messages;
|
vector<string> orb_error_messages;
|
||||||
|
|
Loading…
Reference in New Issue