Test fixes
This commit is contained in:
@@ -77,7 +77,7 @@ public class FileMapGenerator implements WorldGenerator{
|
||||
}
|
||||
|
||||
if(tile.isCenter() && tile.block() instanceof CoreBlock && tile.team() == state.rules.defaultTeam && !anyCores){
|
||||
if(sector != null && sector.allowLaunchLoadout()){
|
||||
if(state.rules.sector != null && state.rules.sector.allowLaunchLoadout()){
|
||||
Schematics.placeLaunchLoadout(tile.x, tile.y);
|
||||
}
|
||||
anyCores = true;
|
||||
|
||||
@@ -44,6 +44,17 @@ public class LaunchLoadoutDialog extends BaseDialog{
|
||||
|
||||
ItemSeq sitems = sector.items();
|
||||
|
||||
//hide nonsensical items
|
||||
ItemSeq launch = universe.getLaunchResources();
|
||||
if(sector.planet.allowLaunchLoadout){
|
||||
for(var item : content.items()){
|
||||
if(sector.planet.hiddenItems.contains(item)){
|
||||
launch.set(item, 0);
|
||||
}
|
||||
}
|
||||
universe.updateLaunchResources(launch);
|
||||
}
|
||||
|
||||
//updates sum requirements
|
||||
Runnable update = () -> {
|
||||
int cap = lastCapacity = (int)(sector.planet.launchCapacityMultiplier * selected.findCore().itemCapacity);
|
||||
|
||||
Reference in New Issue
Block a user