Logic rule instruction / Lock erekir proc sectors
This commit is contained in:
@@ -53,6 +53,11 @@ public abstract class PlanetGenerator extends BasicGenerator implements HexMeshe
|
||||
}
|
||||
}
|
||||
|
||||
/** @return whether to allow landing on the specified procedural sector */
|
||||
public boolean allowLanding(Sector sector){
|
||||
return sector.hasBase() || sector.near().contains(Sector::hasBase);
|
||||
}
|
||||
|
||||
public void addWeather(Sector sector, Rules rules){
|
||||
|
||||
//apply weather based on terrain
|
||||
|
||||
@@ -64,6 +64,12 @@ public class ErekirPlanetGenerator extends PlanetGenerator{
|
||||
return Loadouts.basicBastion;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean allowLanding(Sector sector){
|
||||
//TODO disallowed for now
|
||||
return false;
|
||||
}
|
||||
|
||||
float rawHeight(Vec3 position){
|
||||
return Simplex.noise3d(seed, octaves, persistence, 1f/heightScl, 10f + position.x, 10f + position.y, 10f + position.z);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user