mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-21 00:47:40 +00:00
in countHyperstones, two variants of Mirror are counted once
This commit is contained in:
@@ -252,7 +252,10 @@ EX void countHyperstoneQuest(int& i1, int& i2) {
|
|||||||
i1 = 0; i2 = 0;
|
i1 = 0; i2 = 0;
|
||||||
generateLandList(isLandIngame);
|
generateLandList(isLandIngame);
|
||||||
for(eLand l: landlist) {
|
for(eLand l: landlist) {
|
||||||
|
// no treasure
|
||||||
if(l == laCA) continue;
|
if(l == laCA) continue;
|
||||||
|
// same treasure, so count only once
|
||||||
|
if(l == laMirrorOld && isLandIngame(laMirror)) continue;
|
||||||
eItem ttype = treasureType(l);
|
eItem ttype = treasureType(l);
|
||||||
if(!required_for_hyperstones(ttype)) continue;
|
if(!required_for_hyperstones(ttype)) continue;
|
||||||
i2++; if(items[ttype] >= R10) i1++;
|
i2++; if(items[ttype] >= R10) i1++;
|
||||||
|
Reference in New Issue
Block a user