From 1077abf22317a68e9573b7c8f49ec52eecac96be Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 1 Jun 2019 19:26:02 +0200 Subject: [PATCH] red power aura in Land of Power --- graph.cpp | 6 +++++- landgen.cpp | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/graph.cpp b/graph.cpp index 9bd7de00..80de85bf 100644 --- a/graph.cpp +++ b/graph.cpp @@ -4601,6 +4601,7 @@ int ceiling_category(cell *c) { case laAsteroids: return 1; + case laPower: case laWineyard: case laDesert: case laAlchemist: @@ -4636,7 +4637,6 @@ int ceiling_category(cell *c) { case laCocytus: case laEmerald: case laDeadCaves: - case laPower: case laHive: case laCamelot: case laIvoryTower: @@ -4786,6 +4786,10 @@ void draw_ceiling(cell *c, const transmatrix& V, int fd, color_t& fcol, color_t& queuepolyat(V * zpush(cgi.SKY+0.5), cgi.shSun, 0xFFFF00FF, PPR::SKY); } break; + + case laPower: + col = c->landparam ? 0xFF2010 : 0x000020; + break; case laDesert: case laRedRock: diff --git a/landgen.cpp b/landgen.cpp index ed1ea312..debaba3d 100644 --- a/landgen.cpp +++ b/landgen.cpp @@ -550,7 +550,8 @@ void giantLandSwitch(cell *c, int d, cell *from) { if(v == 0 && !euclid) c->wall = waStone; else { v &= ~3; - if((v == 24 || v == 32 || v == 56)) + c->landparam = (v == 24 || v == 32 || v == 56); + if(c->landparam) c->wall = waEternalFire; else if(hrand(100) < 10) { c->wall = waGlass;