1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-25 02:47:40 +00:00

3d:: pseudohept specified

This commit is contained in:
?
2019-02-27 14:40:56 +01:00
committed by Zeno Rogue
parent a1ca5b2995
commit b8913b39fd
4 changed files with 26 additions and 1 deletions

View File

@@ -343,6 +343,13 @@ auto bt_config = addHook(hooks_args, 0, [] () {
});
#endif
bool pseudohept(cell *c) {
if(DIM == 2)
return c->type & c->master->distance & 1;
else
return (c->master->zebraval == 1) && (c->master->distance & 1);
}
int celldistance3(cell *c1, cell *c2) { // [untested]
int steps = 0;
int d1 = celldistAlt(c1);