1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

reduced the other land range for currentLocalTreasure in 3D geometries

This commit is contained in:
Zeno Rogue 2021-11-07 10:53:04 +01:00
parent 9ca670af20
commit 770949978a

View File

@ -434,7 +434,7 @@ EX void countLocalTreasure() {
currentLocalTreasure = i ? items[i] : 0; currentLocalTreasure = i ? items[i] : 0;
if(i != itHyperstone) for(int i=0; i<isize(dcal); i++) { if(i != itHyperstone) for(int i=0; i<isize(dcal); i++) {
cell *c2 = dcal[i]; cell *c2 = dcal[i];
if(c2->cpdist > 3) break; if(c2->cpdist > (WDIM == 3 ? 1 : 3)) break;
eItem i2 = treasureType(c2->land); eItem i2 = treasureType(c2->land);
if(i2 && items[i2] < currentLocalTreasure) if(i2 && items[i2] < currentLocalTreasure)
currentLocalTreasure = items[i2]; currentLocalTreasure = items[i2];