mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-09-27 21:58:13 +00:00
line patterns:: 'triangle grid: rings' renamed to 'lines of equal distance' and also work better now
This commit is contained in:
parent
f537abf71c
commit
c637dd4322
12
pattern2.cpp
12
pattern2.cpp
@ -2852,13 +2852,21 @@ EX namespace linepatterns {
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
EX linepattern patTriRings = linepattern("triangle grid: rings", 0xFFFFFF00, always_available,
|
EX linepattern patTriRings = linepattern("lines of equal distance", 0xFFFFFF00, trees_known,
|
||||||
ALLCELLS(
|
ALLCELLS(
|
||||||
|
if(valence() == 3) {
|
||||||
forCellIdEx(c2, i, c) {
|
forCellIdEx(c2, i, c) {
|
||||||
if(S3 == 4) c2 = (cellwalker(c, i) + wstep + 1).cpeek();
|
|
||||||
if(c2 > c) if(curr_dist(c) == curr_dist(c2))
|
if(c2 > c) if(curr_dist(c) == curr_dist(c2))
|
||||||
gridlinef(V, C0, V * currentmap->adj(c, i), C0, col, 2 + vid.linequality);
|
gridlinef(V, C0, V * currentmap->adj(c, i), C0, col, 2 + vid.linequality);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
dynamicval<int> dmar(mine_adjacency_rule, 1);
|
||||||
|
int d = curr_dist(c);
|
||||||
|
for(auto p: adj_minefield_cells_full(c))
|
||||||
|
if(p.c < c && d == curr_dist(p.c))
|
||||||
|
gridlinef(V, C0, V, tC0(p.T), col, 2 + vid.linequality);
|
||||||
|
}
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
EX linepattern patTriTree = linepattern("tessellation tree", 0xFFFFFF00, trees_known,
|
EX linepattern patTriTree = linepattern("tessellation tree", 0xFFFFFF00, trees_known,
|
||||||
|
Loading…
Reference in New Issue
Block a user