1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 03:09:59 +00:00

in countHyperstones, two variants of Mirror are counted once

This commit is contained in:
Zeno Rogue 2024-03-27 16:54:00 +01:00
parent d2cd6fa2c1
commit 57f6fb5f71

View File

@ -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++;