Disable sector info for specific sectors (#6151)
* showSectorLandInfo * showSectorLandInfo type
This commit is contained in:
@@ -225,7 +225,7 @@ public class Control implements ApplicationListener, Loadable{
|
|||||||
Effect.shake(5f, 5f, core);
|
Effect.shake(5f, 5f, core);
|
||||||
core.thrusterTime = 1f;
|
core.thrusterTime = 1f;
|
||||||
|
|
||||||
if(state.isCampaign() && Vars.showSectorLandInfo){
|
if(state.isCampaign() && Vars.showSectorLandInfo && (state.rules.sector.preset == null || state.rules.sector.preset.showSectorLandInfo)){
|
||||||
ui.announce("[accent]" + state.rules.sector.name() + "\n" +
|
ui.announce("[accent]" + state.rules.sector.name() + "\n" +
|
||||||
(state.rules.sector.info.resources.any() ? "[lightgray]" + bundle.get("sectors.resources") + "[white] " +
|
(state.rules.sector.info.resources.any() ? "[lightgray]" + bundle.get("sectors.resources") + "[white] " +
|
||||||
state.rules.sector.info.resources.toString(" ", u -> u.emoji()) : ""), 5);
|
state.rules.sector.info.resources.toString(" ", u -> u.emoji()) : ""), 5);
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ public class SectorPreset extends UnlockableContent{
|
|||||||
public float difficulty;
|
public float difficulty;
|
||||||
public float startWaveTimeMultiplier = 2f;
|
public float startWaveTimeMultiplier = 2f;
|
||||||
public boolean addStartingItems = false;
|
public boolean addStartingItems = false;
|
||||||
|
public boolean showSectorLandInfo = true;
|
||||||
|
|
||||||
public SectorPreset(String name, Planet planet, int sector){
|
public SectorPreset(String name, Planet planet, int sector){
|
||||||
super(name);
|
super(name);
|
||||||
|
|||||||
Reference in New Issue
Block a user