mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-29 19:40:35 +00:00
included fires in Cursed to make the Curse of Water have a positive aspect
This commit is contained in:
parent
745d524433
commit
a9ec2be47e
@ -2607,6 +2607,11 @@ EX void giantLandSwitch(cell *c, int d, cell *from) {
|
||||
if(c->wall == waStone && hrand(100) < 20)
|
||||
c->wall = waRubble;
|
||||
}
|
||||
if(d == 7 && c->wall == waDeepWater) {
|
||||
bool lone = true;
|
||||
forCellEx(c1, c) if(c1->wall == waDeepWater) lone = false;
|
||||
if(lone) c->wall = waEternalFire;
|
||||
}
|
||||
ONEMPTY {
|
||||
/* turrets */
|
||||
if(c->wall == waRubble) {
|
||||
@ -2625,7 +2630,7 @@ EX void giantLandSwitch(cell *c, int d, cell *from) {
|
||||
bool border = false;
|
||||
for(int a=0; a<3; a++) forCellEx(c1, c) {
|
||||
if(c1->land != laCursed) border = true;
|
||||
bool wa = among(c1->wall, waStone, waRubble, waDeepWater);
|
||||
bool wa = among(c1->wall, waStone, waRubble, waDeepWater, waEternalFire);
|
||||
if(wa != last_wall) switches++;
|
||||
last_wall = wa;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user