Closes Anuken/Mindustry-Suggestions/issues/5884
This commit is contained in:
@@ -794,6 +794,7 @@ campaign.complete = [accent]Congratulations.\n\nThe enemy on {0} has been defeat
|
|||||||
sectorlist = Sectors
|
sectorlist = Sectors
|
||||||
sectorlist.attacked = {0} under attack
|
sectorlist.attacked = {0} under attack
|
||||||
sectors.unexplored = [lightgray]Unexplored
|
sectors.unexplored = [lightgray]Unexplored
|
||||||
|
sectors.attempts = Attempts:
|
||||||
sectors.resources = Resources:
|
sectors.resources = Resources:
|
||||||
sectors.production = Production:
|
sectors.production = Production:
|
||||||
sectors.export = Export:
|
sectors.export = Export:
|
||||||
|
|||||||
@@ -536,6 +536,7 @@ public class Control implements ApplicationListener, Loadable{
|
|||||||
state.rules.sector = sector;
|
state.rules.sector = sector;
|
||||||
sector.info.origin = origin;
|
sector.info.origin = origin;
|
||||||
sector.info.destination = origin;
|
sector.info.destination = origin;
|
||||||
|
sector.info.attempts ++;
|
||||||
|
|
||||||
if(beforePlay != null){
|
if(beforePlay != null){
|
||||||
beforePlay.run();
|
beforePlay.run();
|
||||||
|
|||||||
@@ -59,6 +59,8 @@ public class SectorInfo{
|
|||||||
public boolean attack = false;
|
public boolean attack = false;
|
||||||
/** Whether this sector has any enemy spawns. */
|
/** Whether this sector has any enemy spawns. */
|
||||||
public boolean hasSpawns = true;
|
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 */
|
/** Wave # from state */
|
||||||
public int wave = 1, winWave = -1;
|
public int wave = 1, winWave = -1;
|
||||||
/** Waves this sector can survive if under attack. Based on wave in info. <0 means uncalculated. */
|
/** 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();
|
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()){
|
if(sector.info.waves && sector.hasBase()){
|
||||||
c.add(Core.bundle.get("sectors.wave") + " [accent]" + (sector.info.wave + sector.info.wavesPassed)).left().row();
|
c.add(Core.bundle.get("sectors.wave") + " [accent]" + (sector.info.wave + sector.info.wavesPassed)).left().row();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user