Closes Anuken/Mindustry-Suggestions/issues/5884
This commit is contained in:
@@ -536,6 +536,7 @@ public class Control implements ApplicationListener, Loadable{
|
||||
state.rules.sector = sector;
|
||||
sector.info.origin = origin;
|
||||
sector.info.destination = origin;
|
||||
sector.info.attempts ++;
|
||||
|
||||
if(beforePlay != null){
|
||||
beforePlay.run();
|
||||
|
||||
@@ -59,6 +59,8 @@ public class SectorInfo{
|
||||
public boolean attack = false;
|
||||
/** Whether this sector has any enemy spawns. */
|
||||
public boolean hasSpawns = true;
|
||||
/** How many times the player has tried to land at this sector with a fresh core. */
|
||||
public int attempts;
|
||||
/** Wave # from state */
|
||||
public int wave = 1, winWave = -1;
|
||||
/** Waves this sector can survive if under attack. Based on wave in info. <0 means uncalculated. */
|
||||
|
||||
@@ -1036,6 +1036,10 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
|
||||
|
||||
c.add(Core.bundle.get("sectors.time") + " [accent]" + sector.save.getPlayTime()).left().row();
|
||||
|
||||
if(sector.info.attempts > 0){
|
||||
c.add(Core.bundle.get("sectors.attempts") + " [accent]" + sector.info.attempts).left().row();
|
||||
}
|
||||
|
||||
if(sector.info.waves && sector.hasBase()){
|
||||
c.add(Core.bundle.get("sectors.wave") + " [accent]" + (sector.info.wave + sector.info.wavesPassed)).left().row();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user