mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
patterns: J (j with changes)
This commit is contained in:
parent
97ff8166f5
commit
04f69c4c9a
@ -1805,6 +1805,12 @@ EX namespace patterns {
|
||||
if(d % 2 == 0 || d < -5 || d > 5) return canvasback;
|
||||
return colortables['j'][(d+5)/2];
|
||||
}
|
||||
case 'J': {
|
||||
int d = c->master->distance;
|
||||
if(geometry == gNil) d = c->master->zebraval;
|
||||
if(d % 2 == 0 || d < -5 || d > 5) return hrand(100) < 10 ? 0xFFFFFFFF : canvasback;
|
||||
return hrand(100) < 50 ? 0 : colortables['j'][(d+5)/2];
|
||||
}
|
||||
case 'f': {
|
||||
color_t res;
|
||||
for(int i=0; i<4; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user