Use sector preset name for maps if possible
This commit is contained in:
@@ -268,7 +268,7 @@ public class World{
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void setSectorRules(Sector sector){
|
private void setSectorRules(Sector sector){
|
||||||
state.map = new Map(StringMap.of("name", sector.planet.localizedName + "; Sector " + sector.id));
|
state.map = new Map(StringMap.of("name", sector.preset == null ? sector.planet.localizedName + "; Sector " + sector.id : sector.preset.localizedName));
|
||||||
state.rules.sector = sector;
|
state.rules.sector = sector;
|
||||||
|
|
||||||
state.rules.weather.clear();
|
state.rules.weather.clear();
|
||||||
|
|||||||
@@ -12,17 +12,6 @@ public class PowerGraph{
|
|||||||
private static final Seq<Building> outArray1 = new Seq<>();
|
private static final Seq<Building> outArray1 = new Seq<>();
|
||||||
private static final Seq<Building> outArray2 = new Seq<>();
|
private static final Seq<Building> outArray2 = new Seq<>();
|
||||||
private static final IntSet closedSet = new IntSet();
|
private static final IntSet closedSet = new IntSet();
|
||||||
private static final PowerGraph nullGraph = new PowerGraph(){
|
|
||||||
@Override
|
|
||||||
public void add(Building build){
|
|
||||||
throw new RuntimeException("cannot add to null graph");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void addGraph(PowerGraph graph){
|
|
||||||
throw new RuntimeException("cannot add to null graph");
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
private final Seq<Building> producers = new Seq<>(false);
|
private final Seq<Building> producers = new Seq<>(false);
|
||||||
private final Seq<Building> consumers = new Seq<>(false);
|
private final Seq<Building> consumers = new Seq<>(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user