mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-03-01 17:30:08 +00:00
'j' pattern: works in Nil, takes canvasback into account
This commit is contained in:
parent
ea55f43abf
commit
2a01728d19
@ -1801,7 +1801,8 @@ EX namespace patterns {
|
|||||||
return colortables['v'][sevenval(c)];
|
return colortables['v'][sevenval(c)];
|
||||||
case 'j': {
|
case 'j': {
|
||||||
int d = c->master->distance;
|
int d = c->master->distance;
|
||||||
if(d % 2 == 0 || d < -5 || d > 5) return 0;
|
if(geometry == gNil) d = c->master->zebraval;
|
||||||
|
if(d % 2 == 0 || d < -5 || d > 5) return canvasback;
|
||||||
return colortables['j'][(d+5)/2];
|
return colortables['j'][(d+5)/2];
|
||||||
}
|
}
|
||||||
case 'f': {
|
case 'f': {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user