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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user