Proper interplanetary launch

This commit is contained in:
Anuken
2022-01-23 14:37:08 -05:00
parent 3574e40a08
commit 4497f7ab3a
11 changed files with 66 additions and 9 deletions

View File

@@ -247,7 +247,7 @@ public class ErekirPlanetGenerator extends PlanetGenerator{
}
//TODO test, different placement
//TODO this biome should have more blocks in gneeral
//TODO this biome should have more blocks in general
if(block == Blocks.regolithWall && rand.chance(0.2) && nearAir(x, y) && !near(x, y, 3, Blocks.crystalBlocks)){
block = Blocks.crystalBlocks;
}
@@ -294,7 +294,7 @@ public class ErekirPlanetGenerator extends PlanetGenerator{
//it is very hot
state.rules.attributes.set(Attribute.heat, 0.8f);
state.rules.environment = Env.scorching | Env.terrestrial | Env.groundWater;
state.rules.environment = Env.scorching | Env.terrestrial;
Schematics.placeLaunchLoadout(spawnX, spawnY);
state.rules.showSpawns = true;

View File

@@ -82,13 +82,13 @@ public class SerpuloPlanetGenerator extends PlanetGenerator{
any = true;
}
if(Structs.contains(tile.tiles, s -> sector.planet.getSector(s).id == sector.planet.startSector)) return;
if(noise < 0.16){
for(Ptile other : tile.tiles){
var osec = sector.planet.getSector(other);
//no sectors near start sector!
if(
osec.id == sector.planet.startSector || //near starting sector
osec.generateEnemyBase && poles < 0.85 || //near other base
(sector.preset != null && noise < 0.11) //near preset
){