1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-07-07 20:02:50 +00:00

Chaos Mode unlocking should be fixed

This commit is contained in:
Zeno Rogue 2020-08-20 16:03:37 +02:00
parent 0e38bc2352
commit 58aba3eb37

View File

@ -1505,8 +1505,6 @@ EX bool havePushConflict(cell *pushto, bool checkonly) {
return false; return false;
} }
bool got_crossroads;
EX void movecost(cell* from, cell *to, int phase) { EX void movecost(cell* from, cell *to, int phase) {
if(from->land == laPower && to->land != laPower && (phase & 1)) { if(from->land == laPower && to->land != laPower && (phase & 1)) {
int n=0; int n=0;
@ -1523,10 +1521,9 @@ EX void movecost(cell* from, cell *to, int phase) {
} }
#endif #endif
if(to->land ==laCrossroads4 && !got_crossroads && !geometry && (phase & 2) && !cheater) { if(to->land ==laDesert && !geometry && (phase & 2) && !cheater) {
achievement_gain_once("CR4"); achievement_gain_once("CR4");
got_crossroads = true; changes.value_set(chaosUnlocked, true);
chaosUnlocked = true;
} }
if(isHaunted(from->land) && !isHaunted(to->land) && (phase & 2)) { if(isHaunted(from->land) && !isHaunted(to->land) && (phase & 2)) {