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

zebra patterns: binary-tiling (parity), oox3 (random)

This commit is contained in:
Zeno Rogue
2026-04-17 18:23:59 +02:00
parent a0a1f2334a
commit d2564d07ee
2 changed files with 11 additions and 1 deletions
+7 -1
View File
@@ -229,9 +229,15 @@ EX bool is_zebra_trapdoor(cell *c) {
return (y&1);
}
#if CAP_ARCM
else
else
if(arcm::in()) return hrand(2);
#endif
else
if(S3 >= OINF) return hrand(2);
#if CAP_BT
else
if(bt::in()) return c->master->distance & 1;
#endif
else
return (randomPatternsMode ? RANDPAT : (zebra40(c)&2));
}
+4
View File
@@ -1550,6 +1550,10 @@ EX land_validity_t& land_validity(eLand l) {
if(l == laCrossroads4 && quotient)
return some0;
if(l == laZebra && bt::in()) return pattern_defined;
if(l == laZebra && S3 >= OINF) return pattern_not_implemented_random;
if(among(l, laZebra, laFrog) && quotient && geometry != gZebraQuotient && !randomPatternsMode)
return pattern_incompatibility;