mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-04-27 05:03:15 +00:00
disable_orb_range cheat for presentations
This commit is contained in:
parent
a703e1af2d
commit
9bc0623022
4
orbs.cpp
4
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,6 +1284,7 @@ EX eItem targetRangedOrb(cell *c, orbAction a) {
|
|||||||
|
|
||||||
// (-1) distance
|
// (-1) distance
|
||||||
|
|
||||||
|
if(!disable_orb_range) {
|
||||||
if(c == cwt.at || isNeighbor(cwt.at, c)) {
|
if(c == cwt.at || isNeighbor(cwt.at, c)) {
|
||||||
if(!isWeakCheck(a))
|
if(!isWeakCheck(a))
|
||||||
addMessage(XLAT("You cannot target that close!"));
|
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!"));
|
addMessage(XLAT("You cannot target that far away!"));
|
||||||
return itNone;
|
return itNone;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
vector<string> orb_error_messages;
|
vector<string> orb_error_messages;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user