1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 01:00:25 +00:00

Red Walls in Eclectic are now Eclectic Red

This commit is contained in:
Zeno Rogue 2020-03-02 13:17:17 +01:00
parent 63a770ba3b
commit d0bae23b6d

View File

@ -82,6 +82,12 @@ void celldrawer::addaura() {
hr::addaura(tC0(V), darkened(aura_color), fd); hr::addaura(tC0(V), darkened(aura_color), fd);
} }
/* Eclectic City's version of Red Rock is of slightly different color, */
/* to make it different from hot cells */
void eclectic_red(color_t& col) {
part(col, 0) = part(col, 2) * 3 / 4;
}
void celldrawer::setcolors() { void celldrawer::setcolors() {
wcol = fcol = winf[c->wall].color; wcol = fcol = winf[c->wall].color;
@ -423,6 +429,8 @@ void celldrawer::setcolors() {
if(c->wall == waLake) if(c->wall == waLake)
fcol = wcol = (wcol & 0xFCFCFC) >> 2; fcol = wcol = (wcol & 0xFCFCFC) >> 2;
} }
if(realred(c))
eclectic_red(wcol);
break; break;
case laOcean: case laOcean:
@ -633,8 +641,11 @@ int celldrawer::getSnakelevColor(int i, int last) {
#endif #endif
else if(i == last-1) else if(i == last-1)
col = wcol; col = wcol;
else else {
col = winf[waRed1+i].color; col = winf[waRed1+i].color;
if(c->land == laEclectic)
eclectic_red(col);
}
return darkena(col, fd, 0xFF); return darkena(col, fd, 0xFF);
} }