Loadout selection + custom loadout schematics

This commit is contained in:
Anuken
2020-06-27 23:04:38 -04:00
parent 63356e96ec
commit bd274f804a
11 changed files with 137 additions and 15 deletions

View File

@@ -54,8 +54,7 @@ public class FileMapGenerator implements WorldGenerator{
}
if(tile.isCenter() && tile.block() instanceof CoreBlock && tile.team() == state.rules.defaultTeam && !anyCores){
//TODO PLACE THE (CORRECT) LOADOUT
Schematics.placeLoadout(Loadouts.basicShard, tile.x, tile.y);
Schematics.placeLoadout(universe.getLastLoadout(), tile.x, tile.y);
anyCores = true;
}

View File

@@ -279,8 +279,7 @@ public class TODOPlanetGenerator extends PlanetGenerator{
}
});
//TODO PLACE CORRECT LOADOUT
Schematics.placeLoadout(Loadouts.advancedShard, spawn.x, spawn.y);
Schematics.placeLoadout(universe.getLastLoadout(), 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);