1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-07-08 20:32:50 +00:00

Cursed Land: less turrets

This commit is contained in:
Zeno Rogue 2021-05-23 15:54:46 +02:00
parent 773e3afd7c
commit 5e1bea6c3b

View File

@ -2618,10 +2618,14 @@ EX void giantLandSwitch(cell *c, int d, cell *from) {
bool turret = true; bool turret = true;
forCellEx(c1, c) if(c1->wall != waStone) turret = false; forCellEx(c1, c) if(c1->wall != waStone) turret = false;
if(turret) { if(turret) {
if(hrand(100) < 80)
c->wall = waStone;
else {
c->monst = moHexer; c->monst = moHexer;
c->item = pick(itCurseWeakness, itCurseDraining, itCurseWater, itCurseFatigue, itCurseRepulsion, itCurseGluttony); c->item = pick(itCurseWeakness, itCurseDraining, itCurseWater, itCurseFatigue, itCurseRepulsion, itCurseGluttony);
} }
} }
}
/* place curses on chokepoints */ /* place curses on chokepoints */
if(c->wall == waNone && !c->item) { if(c->wall == waNone && !c->item) {