mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-02 12:19:18 +00:00
land_validity does not complain about pattern compatibility if randomPatternsMode is on (just in case)
This commit is contained in:
parent
71d50015ff
commit
4a255f83aa
16
landlock.cpp
16
landlock.cpp
@ -1245,7 +1245,7 @@ land_validity_t& land_validity(eLand l) {
|
|||||||
return unbounded_only;
|
return unbounded_only;
|
||||||
|
|
||||||
// Graveyard pattern does not work on non-bitrunc weird geometries
|
// Graveyard pattern does not work on non-bitrunc weird geometries
|
||||||
if(l == laGraveyard) switch(geosupport_graveyard()) {
|
if(l == laGraveyard && !randomPatternsMode) switch(geosupport_graveyard()) {
|
||||||
case 0:
|
case 0:
|
||||||
return dont_work;
|
return dont_work;
|
||||||
case 1:
|
case 1:
|
||||||
@ -1258,18 +1258,18 @@ land_validity_t& land_validity(eLand l) {
|
|||||||
return ugly_version;
|
return ugly_version;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(l == laWarpCoast && quotient == 2)
|
if(l == laWarpCoast && quotient == 2 && !randomPatternsMode)
|
||||||
return pattern_incompatibility;
|
return pattern_incompatibility;
|
||||||
|
|
||||||
// laPower and laEmerald and laPalace -> [partial] in quotients and hyperbolic_non37
|
// laPower and laEmerald and laPalace -> [partial] in quotients and hyperbolic_non37
|
||||||
if(l == laPower || l == laEmerald || l == laPalace || l == laWildWest) {
|
if((l == laPower || l == laEmerald || l == laPalace || l == laWildWest) && !randomPatternsMode) {
|
||||||
if(euclid || bigsphere) ;
|
if(euclid || bigsphere) ;
|
||||||
else if(!hyperbolic_37) return l == laWildWest ? some0 : pattern_not_implemented_random;
|
else if(!hyperbolic_37) return l == laWildWest ? some0 : pattern_not_implemented_random;
|
||||||
else if(quotient) return pattern_incompatibility;
|
else if(quotient) return pattern_incompatibility;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ... wineyard pattern is GOOD only in the standard geometry or Euclidean
|
// ... wineyard pattern is GOOD only in the standard geometry or Euclidean
|
||||||
if(l == laWineyard && (gp::on || sphere))
|
if(l == laWineyard && (gp::on || sphere) && !randomPatternsMode)
|
||||||
return pattern_not_implemented_random;
|
return pattern_not_implemented_random;
|
||||||
|
|
||||||
if(l == laTrollheim && quotient == 2)
|
if(l == laTrollheim && quotient == 2)
|
||||||
@ -1281,7 +1281,7 @@ land_validity_t& land_validity(eLand l) {
|
|||||||
if(l == laReptile && (a38 || a4 || sphere || nonbitrunc || gp::on || quotient == 2))
|
if(l == laReptile && (a38 || a4 || sphere || nonbitrunc || gp::on || quotient == 2))
|
||||||
return bad_graphics;
|
return bad_graphics;
|
||||||
|
|
||||||
if((l == laDragon || l == laReptile) && !stdeuc && !smallbounded)
|
if((l == laDragon || l == laReptile) && !stdeuc && !smallbounded && !randomPatternsMode)
|
||||||
return no_fractal_landscapes;
|
return no_fractal_landscapes;
|
||||||
|
|
||||||
if(l == laCrossroads && smallsphere)
|
if(l == laCrossroads && smallsphere)
|
||||||
@ -1301,10 +1301,10 @@ land_validity_t& land_validity(eLand l) {
|
|||||||
if(l == laCrossroads4 && quotient)
|
if(l == laCrossroads4 && quotient)
|
||||||
return some0;
|
return some0;
|
||||||
|
|
||||||
if(l == laZebra && quotient == 2)
|
if(l == laZebra && quotient == 2 && !randomPatternsMode)
|
||||||
return pattern_incompatibility;
|
return pattern_incompatibility;
|
||||||
|
|
||||||
if(l == laZebra && !(stdeuc || (a4 && nonbitrunc) || a46))
|
if(l == laZebra && !(stdeuc || (a4 && nonbitrunc) || a46) && !randomPatternsMode)
|
||||||
return pattern_not_implemented_weird;
|
return pattern_not_implemented_weird;
|
||||||
|
|
||||||
if(l == laCrossroads3 && euclid)
|
if(l == laCrossroads3 && euclid)
|
||||||
@ -1364,7 +1364,7 @@ land_validity_t& land_validity(eLand l) {
|
|||||||
return known_buggy;
|
return known_buggy;
|
||||||
|
|
||||||
// these don't appear in normal game, but do appear in special modes
|
// these don't appear in normal game, but do appear in special modes
|
||||||
if(l == laWildWest)
|
if(l == laWildWest && !randomPatternsMode)
|
||||||
return out_of_theme;
|
return out_of_theme;
|
||||||
|
|
||||||
return ok;
|
return ok;
|
||||||
|
Loading…
Reference in New Issue
Block a user