1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-26 15:26:03 +00:00

Hyperstone-optional lands are now clearly marked in the Overview, and the Hunting Grounds and Galapagos are now optional in Euclidean

This commit is contained in:
Zeno Rogue
2019-11-28 00:39:27 +01:00
parent 2acf7b572c
commit beb3a06461
3 changed files with 21 additions and 7 deletions

View File

@@ -120,14 +120,23 @@ EX bool landUnlocked(eLand l) {
return false;
}
EX bool required_for_hyperstones(eItem ttype) {
if(ttype == itHyperstone)
return false;
if(among(ttype, itHolyGrail, itSavedPrincess))
return false;
if(euclid && among(ttype, itBabyTortoise, itHunting))
return false;
return true;
}
EX void countHyperstoneQuest(int& i1, int& i2) {
i1 = 0; i2 = 0;
generateLandList(isLandIngame);
for(eLand l: landlist) if(l != laCamelot && l != laPrincessQuest) {
for(eLand l: landlist) {
eItem ttype = treasureType(l);
if(ttype != itHyperstone) {
i2++; if(items[ttype] >= R10) i1++;
}
if(!required_for_hyperstones(ttype)) continue;
i2++; if(items[ttype] >= R10) i1++;
}
}