Closes Anuken/Mindustry-Suggestions/issues/5884

This commit is contained in:
Anuken 2025-10-05 09:03:01 +09:00
parent 1985d67f7a
commit 76c3ceb41d
4 changed files with 8 additions and 0 deletions

View file

@ -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:

View file

@ -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();

View file

@ -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. */

View file

@ -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();
}