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

more Orbs in the Chaos Mode

This commit is contained in:
Zeno Rogue 2017-08-14 21:56:03 +02:00
parent b8f7675878
commit 5f1f4e19bb

View File

@ -1119,8 +1119,10 @@ void placeLocalOrbs(cell *c) {
continue; continue;
if(!oi.lchance) continue; if(!oi.lchance) continue;
int ch = hrand(oi.lchance); int ch = hrand(oi.lchance);
if(ch == 1 && chaosmode && hrand(2) == 0 && items[treasureType(oi.l)] * landMultiplier(oi.l) >= (11+hrand(15)))
ch = 0;
if(tactic::trailer && ch < 5) ch = 0; if(tactic::trailer && ch < 5) ch = 0;
if(ch == 0 && items[treasureType(oi.l)] * landMultiplier(oi.l) >= 10) { if(ch == 0 && items[treasureType(oi.l)] * landMultiplier(oi.l) >= (chaosmode ? 1+hrand(10) : 10)) {
// printf("local orb\n"); // printf("local orb\n");
c->item = oi.orb; c->item = oi.orb;
if(oi.orb == itOrbWater && c->land != laOcean) c->wall = waStrandedBoat; if(oi.orb == itOrbWater && c->land != laOcean) c->wall = waStrandedBoat;