Show hero cap in province commander count (#8758)

* Show hero cap in province commander count

* Keep province commander count on one line
This commit is contained in:
2026-07-23 13:16:39 -07:00
committed by GitHub
parent 2641be9c91
commit 16a52d5557
2 changed files with 2 additions and 2 deletions
@@ -5678,7 +5678,7 @@ MonoBehaviour:
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_TextWrappingMode: 1
m_TextWrappingMode: 0
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
@@ -186,7 +186,7 @@ namespace eagle {
var lowLoyaltyHeroes = heroes.Where(IsLowLoyalty).ToList();
var overHeroCap = fullInfo.HeroCap < heroes.Count;
var heroCountString = $"{heroes.Count}";
var heroCountString = $"{heroes.Count} / {fullInfo.HeroCap}";
if (lowLoyaltyHeroes.Any() || overHeroCap) {
CommandersField.text = GUIUtils.ColoredString(Color.red, heroCountString);
} else if (heroes.Any(IsMediumLoyalty)) {