Disable sector info for specific sectors (#6151)

* showSectorLandInfo

* showSectorLandInfo type
This commit is contained in:
Sunny Kim 2021-10-15 00:16:36 +09:00 committed by GitHub
parent 095cc27ea6
commit ec1124499f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -225,7 +225,7 @@ public class Control implements ApplicationListener, Loadable{
Effect.shake(5f, 5f, core);
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" +
(state.rules.sector.info.resources.any() ? "[lightgray]" + bundle.get("sectors.resources") + "[white] " +
state.rules.sector.info.resources.toString(" ", u -> u.emoji()) : ""), 5);

View file

@ -18,6 +18,7 @@ public class SectorPreset extends UnlockableContent{
public float difficulty;
public float startWaveTimeMultiplier = 2f;
public boolean addStartingItems = false;
public boolean showSectorLandInfo = true;
public SectorPreset(String name, Planet planet, int sector){
super(name);