mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +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)];
|
||||
case 'j': {
|
||||
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];
|
||||
}
|
||||
case 'f': {
|
||||
|
Loading…
Reference in New Issue
Block a user