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:
17
landlock.cpp
17
landlock.cpp
@@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user