mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-05-05 00:34:07 +00:00
in countHyperstones, two variants of Mirror are counted once
This commit is contained in:
parent
d2cd6fa2c1
commit
57f6fb5f71
@ -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++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user