mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-21 00:47:40 +00:00
cheatdest_list
This commit is contained in:
@@ -641,6 +641,11 @@ int read_cheat_args() {
|
|||||||
else if(argis("-W2")) {
|
else if(argis("-W2")) {
|
||||||
shift(); cheatdest = readland(args()); cheat();
|
shift(); cheatdest = readland(args()); cheat();
|
||||||
showstartmenu = false;
|
showstartmenu = false;
|
||||||
|
cheatdest_list.clear();
|
||||||
|
}
|
||||||
|
else if(argis("-W3")) {
|
||||||
|
shift(); cheatdest_list.push_back(readland(args())); cheat();
|
||||||
|
showstartmenu = false;
|
||||||
}
|
}
|
||||||
else if(argis("-I")) {
|
else if(argis("-I")) {
|
||||||
PHASE(3) cheat();
|
PHASE(3) cheat();
|
||||||
|
@@ -367,6 +367,8 @@ EX hookset<eLand(eLand)> hooks_nextland;
|
|||||||
|
|
||||||
EX bool all_unlocked = false;
|
EX bool all_unlocked = false;
|
||||||
|
|
||||||
|
EX vector<eLand> cheatdest_list;
|
||||||
|
|
||||||
EX eLand getNewLand(eLand old) {
|
EX eLand getNewLand(eLand old) {
|
||||||
|
|
||||||
#if CAP_LEGACY
|
#if CAP_LEGACY
|
||||||
@@ -381,6 +383,12 @@ EX eLand getNewLand(eLand old) {
|
|||||||
|
|
||||||
if(cheatdest != old && cheatdest != laElementalWall) if(!isCyclic(cheatdest) && !isTechnicalLand(cheatdest)) return cheatdest;
|
if(cheatdest != old && cheatdest != laElementalWall) if(!isCyclic(cheatdest) && !isTechnicalLand(cheatdest)) return cheatdest;
|
||||||
|
|
||||||
|
if(cheatdest_list.size()) {
|
||||||
|
eLand l = cheatdest_list[0];
|
||||||
|
std::rotate(cheatdest_list.begin(), cheatdest_list.begin()+1, cheatdest_list.end());
|
||||||
|
return l;
|
||||||
|
}
|
||||||
|
|
||||||
if(old == laTortoise) return laDragon;
|
if(old == laTortoise) return laDragon;
|
||||||
|
|
||||||
if(yendor::on && ls::any_chaos()) {
|
if(yendor::on && ls::any_chaos()) {
|
||||||
|
Reference in New Issue
Block a user