Custom launch items

This commit is contained in:
Anuken
2020-06-28 13:33:53 -04:00
parent 6386cae19a
commit b3f29f100d
12 changed files with 85 additions and 36 deletions

View File

@@ -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){

View File

@@ -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);