@@ -427,12 +427,14 @@ public class SerpuloPlanetGenerator extends PlanetGenerator{
|
||||
//actually place the part
|
||||
if(part != null && BaseGenerator.tryPlace(part, x, y, Team.derelict, (cx, cy) -> {
|
||||
Tile other = tiles.getn(cx, cy);
|
||||
other.setOverlay(Blocks.oreScrap);
|
||||
for(int j = 1; j <= 2; j++){
|
||||
for(Point2 p : Geometry.d8){
|
||||
Tile t = tiles.get(cx + p.x*j, cy + p.y*j);
|
||||
if(t != null && t.floor().hasSurface() && rand.chance(j == 1 ? 0.4 : 0.2)){
|
||||
t.setOverlay(Blocks.oreScrap);
|
||||
if(other.floor().hasSurface()){
|
||||
other.setOverlay(Blocks.oreScrap);
|
||||
for(int j = 1; j <= 2; j++){
|
||||
for(Point2 p : Geometry.d8){
|
||||
Tile t = tiles.get(cx + p.x*j, cy + p.y*j);
|
||||
if(t != null && t.floor().hasSurface() && rand.chance(j == 1 ? 0.4 : 0.2)){
|
||||
t.setOverlay(Blocks.oreScrap);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user