1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +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

@ -81,6 +81,12 @@ static const int terracol[8] = {0xD000, 0xE25050, 0xD0D0D0, 0x606060, 0x303030,
void celldrawer::addaura() {
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() {
@ -423,6 +429,8 @@ void celldrawer::setcolors() {
if(c->wall == waLake)
fcol = wcol = (wcol & 0xFCFCFC) >> 2;
}
if(realred(c))
eclectic_red(wcol);
break;
case laOcean:
@ -633,8 +641,11 @@ int celldrawer::getSnakelevColor(int i, int last) {
#endif
else if(i == last-1)
col = wcol;
else
else {
col = winf[waRed1+i].color;
if(c->land == laEclectic)
eclectic_red(col);
}
return darkena(col, fd, 0xFF);
}