mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-20 06:03:01 +00:00
'j' pattern in Euclidean
This commit is contained in:
parent
aea3ac848b
commit
c750bc9573
@ -1812,6 +1812,7 @@ EX namespace patterns {
|
||||
if(c == currentmap->gamestart()) return canvasback;
|
||||
int d = c->master->distance;
|
||||
if(geometry == gNil) d = c->master->zebraval;
|
||||
if(euc::in()) d = euc::get_ispacemap()[c->master][0];
|
||||
if(d % 2 == 0 || d < -5 || d > 5) return hrand(100) < jblock ? 0xFFFFFFFF : canvasback;
|
||||
return hrand(100) < jhole ? canvasback : colortables['j'][(d+5)/2];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user