1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-30 15:39:54 +00:00

3d:: hororec:: better pseudohept pattern

This commit is contained in:
Zeno Rogue 2019-03-13 13:28:16 +01:00
parent cb9513dd0d
commit 8de98056ff

View File

@ -551,7 +551,9 @@ auto bt_config = addHook(hooks_args, 0, [] () {
bool pseudohept(cell *c) { bool pseudohept(cell *c) {
if(DIM == 2) if(DIM == 2)
return c->type & c->master->distance & 1; return c->type & c->master->distance & 1;
else if(among(geometry, gHoroTris, gHoroRec)) else if(geometry == gHoroRec)
return c->c.spin(S7-1) == 0 && (c->master->distance & 1) && c->comve(S7-1)->c.spin(S7-1) == 0;
else if(geometry == gHoroTris)
return c->c.spin(S7-1) == 0 && (c->master->distance & 1); return c->c.spin(S7-1) == 0 && (c->master->distance & 1);
else else
return (c->master->zebraval == 1) && (c->master->distance & 1); return (c->master->zebraval == 1) && (c->master->distance & 1);