1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

patterns: J (j with changes)

This commit is contained in:
Zeno Rogue 2020-02-08 10:50:04 +01:00
parent 97ff8166f5
commit 04f69c4c9a

View File

@ -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++) {