1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-05-08 16:12:06 +00:00

backed-map:: precision policy 'random' implemented

This commit is contained in:
Zeno Rogue
2026-04-18 23:47:58 +02:00
parent 1803ef9759
commit 7e0ab5cc0a
2 changed files with 8 additions and 5 deletions
+2 -1
View File
@@ -792,7 +792,8 @@ struct hrmap_archimedean : hrmap {
void find_cell_connection(cell *c, int d) override {
if(PURE) {
if(arcm::id_of(c->master) < arcm::current.N * 2) {
heptspin hs = heptspin(c->master, d) + wstep + 2 + wstep + 1;
bool rev = (precision_policy & 1) && hrand(2);
heptspin hs = rev ? heptspin(c->master, d) - 1 + wstep - 2 + wstep: heptspin(c->master, d) + wstep + 2 + wstep + 1;
c->c.connect(d, hs.at->c7, hs.spin, hs.mirrored);
}
else c->c.connect(d, c, d, false);