Countdowns on other objectives. (#7528)

* Destroy units objective countdown

* Countdown on other objectives
This commit is contained in:
MEEPofFaith
2022-09-07 19:50:06 -07:00
committed by GitHub
parent 4410e90b9e
commit b7e8c211f7

View File

@@ -380,7 +380,7 @@ public class MapObjectives implements Iterable<MapObjective>, Eachable<MapObject
@Override
public String text(){
return Core.bundle.format("objective.build", count, block.emoji(), block.localizedName);
return Core.bundle.format("objective.build", count - state.stats.placedBlockCount.get(block, 0), block.emoji(), block.localizedName);
}
}
@@ -403,7 +403,7 @@ public class MapObjectives implements Iterable<MapObjective>, Eachable<MapObject
@Override
public String text(){
return Core.bundle.format("objective.buildunit", count, unit.emoji(), unit.localizedName);
return Core.bundle.format("objective.buildunit", count - state.rules.defaultTeam.data().countType(unit), unit.emoji(), unit.localizedName);
}
}
@@ -424,7 +424,7 @@ public class MapObjectives implements Iterable<MapObjective>, Eachable<MapObject
@Override
public String text(){
return Core.bundle.format("objective.destroyunits", count);
return Core.bundle.format("objective.destroyunits", count - state.stats.enemyUnitsDestroyed);
}
}