1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-04-28 19:41:23 +00:00

Zebra patterns for some of the new geometries

This commit is contained in:
Zeno Rogue
2017-11-03 19:20:54 +01:00
parent 09681324d0
commit 8498ae7af8
5 changed files with 62 additions and 12 deletions

View File

@@ -968,6 +968,9 @@ int zebra40(cell *c) {
else if(ctof(c)) return (c->master->zebraval/10);
else if(sphere) return 0;
else if(euclid) return eupattern(c);
else if(S3 == 4 && S7 == 6) {
return 8 + ((c->master->zebraval / 10 + c->spin(0))%2) * 2;
}
else {
int ii[3], z;
ii[0] = (c->mov[0]->master->zebraval/10);
@@ -1306,12 +1309,6 @@ int getBits(cell *c) {
}
}
eLand getCLand(cell *c) {
int b = getBits(c);
b = (b&31) ^ (b>>5);
return land_scape[b & 31];
}
cell *heptatdir(cell *c, int d) {
if(d&1) {
cell *c2 = createMov(c, d);