1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

CR4 achievement should be fixed

This commit is contained in:
Zeno Rogue 2019-06-18 01:46:24 +02:00
parent 524982605e
commit 9bec1bc96e

View File

@ -6576,6 +6576,8 @@ bool multiRevival(cell *on, cell *moveto) {
return false;
}
bool got_crossroads;
void movecost(cell* from, cell *to, int phase) {
if(from->land == laPower && to->land != laPower && (phase & 1)) {
int n=0;
@ -6591,8 +6593,9 @@ void movecost(cell* from, cell *to, int phase) {
tour::checkGoodLand(to->land);
#endif
if(to->land ==laCrossroads4 && !chaosUnlocked && !geometry && (phase & 2)) {
if(to->land ==laCrossroads4 && !got_crossroads && !geometry && (phase & 2) && !cheater) {
achievement_gain("CR4");
got_crossroads = true;
chaosUnlocked = true;
}