Custom launch items
This commit is contained in:
@@ -54,14 +54,9 @@ public class FileMapGenerator implements WorldGenerator{
|
||||
}
|
||||
|
||||
if(tile.isCenter() && tile.block() instanceof CoreBlock && tile.team() == state.rules.defaultTeam && !anyCores){
|
||||
Schematics.placeLoadout(universe.getLastLoadout(), tile.x, tile.y);
|
||||
Schematics.placeLaunchLoadout(tile.x, tile.y);
|
||||
anyCores = true;
|
||||
}
|
||||
|
||||
//add random decoration
|
||||
//if(Mathf.chance(0.015) && !tile.floor().isLiquid && tile.block() == Blocks.air){
|
||||
// tile.setBlock(tile.floor().decoration);
|
||||
//}
|
||||
}
|
||||
|
||||
if(!anyCores){
|
||||
|
||||
@@ -279,7 +279,7 @@ public class TODOPlanetGenerator extends PlanetGenerator{
|
||||
}
|
||||
});
|
||||
|
||||
Schematics.placeLoadout(universe.getLastLoadout(), spawn.x, spawn.y);
|
||||
Schematics.placeLaunchLoadout(spawn.x, spawn.y);
|
||||
|
||||
if(sector.hasEnemyBase()){
|
||||
basegen.generate(tiles, enemies.map(r -> tiles.getn(r.x, r.y)), tiles.get(spawn.x, spawn.y), state.rules.waveTeam, sector);
|
||||
|
||||
Reference in New Issue
Block a user