mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
fixed snake butt graphics in the Snake Nest
This commit is contained in:
parent
b09e04612e
commit
b1a5aa19fa
@ -1785,9 +1785,14 @@ bool drawMonster(const transmatrix& Vparam, int ct, cell *c, int col) {
|
||||
|
||||
if(isIvy(c) || isWorm(c) || isMutantIvy(c) || c->monst == moFriendlyIvy) {
|
||||
|
||||
if((m == moHexSnake || m == moHexSnakeTail) && c->land == laSnakeNest && c->mondir != NODIR) {
|
||||
if((m == moHexSnake || m == moHexSnakeTail) && c->land == laSnakeNest) {
|
||||
int d = c->mondir;
|
||||
if(d == NODIR)
|
||||
forCellIdEx(c2, i, c)
|
||||
if(c2->monst == moHexSnakeTail && c2->mondir == c->spin(i))
|
||||
d = i;
|
||||
int c1 = nestcolors[pattern_threecolor(c)];
|
||||
int c2 = nestcolors[pattern_threecolor(c->mov[c->mondir])];
|
||||
int c2 = nestcolors[pattern_threecolor(c->mov[d])];
|
||||
col = (c1 + c2); // sum works because they are dark and should be brightened
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user