1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-12 19:53:00 +00:00

Lower the land unlock requirements if they're mathematically impossibly high

This commit is contained in:
Joseph C. Sible
2025-09-17 22:47:11 -04:00
parent 8b7e82b460
commit a4267cdfcc

View File

@@ -221,11 +221,15 @@ EX bool landUnlockedRPM(eLand n) {
}
EX int lands_for_hell() {
return casual ? 40 : 9;
int desired = casual ? 40 : 9;
int available = std::count_if(land_over.begin(), land_over.end(), [] (eLand l) { return !among(l, laHell, laCocytus, laPower) && !isCrossroads(l) && isLandIngame(l); });
return min(desired, available);
}
EX int lands_for_cr3() {
return casual ? 20 : 9;
int desired = casual ? 20 : 9;
int available = std::count_if(land_over.begin(), land_over.end(), [] (eLand l) { return !isCrossroads(l) && isLandIngame(l); });
return min(desired, available);
}
EX int variant_unlock_value() {