isEquidLand flag

This commit is contained in:
Zeno Rogue 2018-05-01 19:34:37 +02:00
parent 5a9bc6c014
commit 8f6ad87280
2 changed files with 11 additions and 4 deletions

View File

@ -17,6 +17,12 @@ bool isGravityLand(eLand l) {
l == laMountain || l == laDungeon;
}
bool isEquidLand(eLand l) {
return
l == laIvoryTower || l == laEndorian || l == laDungeon ||
isHaunted(l) || l == laOcean;
}
// watery
bool isWatery(cell *c) {

View File

@ -1139,11 +1139,12 @@ land_validity_t& land_validity(eLand l) {
if((l == laCrossroads5 || l == laCrossroads2) && (geometry || chaosmode))
return some0;
// special construction in the Chaos mode
if(chaosmode && (l == laTemple || l == laHive || l == laOcean || l == laHaunted))
return special_chaos;
// equidistant-based lands
if(l == laDungeon || l == laEndorian || l == laIvoryTower || l == laOcean) {
// special construction
if(chaosmode && l == laOcean)
return special_chaos;
if(isEquidLand(l)) {
// no equidistants supported in chaos mode
if(chaosmode)
return not_in_chaos;