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:
+7
-1
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user