1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-05 20:07:58 +00:00

new Crossroads variant: thematic crossroads

This commit is contained in:
Zeno Rogue
2025-07-07 14:00:11 +02:00
parent 0ec3e396d9
commit 0381dc8c84
12 changed files with 211 additions and 9 deletions

View File

@@ -599,8 +599,16 @@ EX void placeCrossroadOrbs(cell *c) {
int mul = c->land == laCrossroads5 ? 10 : 1;
int gch = oi.gchance;
if(!inv::on) gch /= orbcrossfun(treas); else gch /= 2;
if(isThematic(c->land)) {
bool local = which_thematic(oi.l) == c->land;
if(!local) continue;
mul *= 7;
}
if(hrand(gch) >= mul) continue;
if(hrand(50+items[itHyperstone]) >= 50) continue;
c->item = oi.orb;
if(oi.orb == itOrbWater && c->land != laOcean) c->wall = waStrandedBoat;
}