mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-03-11 01:10:46 -07:00
Closes Anuken/Mindustry-Suggestions/issues/5884
This commit is contained in:
parent
1985d67f7a
commit
76c3ceb41d
4 changed files with 8 additions and 0 deletions
|
|
@ -794,6 +794,7 @@ campaign.complete = [accent]Congratulations.\n\nThe enemy on {0} has been defeat
|
|||
sectorlist = Sectors
|
||||
sectorlist.attacked = {0} under attack
|
||||
sectors.unexplored = [lightgray]Unexplored
|
||||
sectors.attempts = Attempts:
|
||||
sectors.resources = Resources:
|
||||
sectors.production = Production:
|
||||
sectors.export = Export:
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue