mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 09:50:34 +00:00
isEquidLand flag
This commit is contained in:
parent
5a9bc6c014
commit
8f6ad87280
@ -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) {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user