From a9ec2be47e00154da587e5e0ae2a594e9360b664 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 22 May 2021 02:43:20 +0200 Subject: [PATCH] included fires in Cursed to make the Curse of Water have a positive aspect --- landgen.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/landgen.cpp b/landgen.cpp index 57c20ee7..2e693745 100644 --- a/landgen.cpp +++ b/landgen.cpp @@ -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; }