1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-24 05:17:17 +00:00

better sky in Irradiated

This commit is contained in:
Zeno Rogue 2019-06-13 17:25:11 +02:00
parent 6b3f2a94e4
commit 57470eafe4

View File

@ -4072,7 +4072,7 @@ bool bright;
// how much to darken // how much to darken
int getfd(cell *c) { int getfd(cell *c) {
if(bright) return 0; if(bright) return 0;
if(among(c->land, laAlchemist, laHell) && WDIM == 2 && GDIM == 3) return 0; if(among(c->land, laAlchemist, laHell, laVariant) && WDIM == 2 && GDIM == 3) return 0;
switch(c->land) { switch(c->land) {
case laRedRock: case laRedRock:
case laReptile: case laReptile:
@ -4629,6 +4629,7 @@ int ceiling_category(cell *c) {
case laKraken: case laKraken:
case laBrownian: case laBrownian:
case laHell: case laHell:
case laVariant:
return 2; return 2;
case laBarrier: case laBarrier:
@ -4654,7 +4655,6 @@ int ceiling_category(cell *c) {
case laMercuryRiver: case laMercuryRiver:
case laMagnetic: case laMagnetic:
case laSwitch: case laSwitch:
case laVariant:
return 3; return 3;
case laRlyeh: case laRlyeh:
@ -4801,6 +4801,16 @@ void draw_ceiling(cell *c, const transmatrix& V, int fd, color_t& fcol, color_t&
col = fcol; col = fcol;
break; break;
case laVariant: {
int b = getBits(c);
col = 0x404040;
for(int a=0; a<21; a++)
if((b >> a) & 1)
col += variant_features[a].color_change;
col = col & 0x00FF00;
break;
}
case laDragon: case laDragon:
col = c->wall == waChasm ? 0xFFFFFF : 0x4040FF; col = c->wall == waChasm ? 0xFFFFFF : 0x4040FF;
break; break;