File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
src/TSMapEditor/UI/Windows Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -425,6 +425,7 @@ public void Open()
425425 {
426426 Show ( ) ;
427427 ListHouses ( ) ;
428+ RefreshHouseStats ( ) ;
428429 }
429430
430431 private void ListHouses ( )
@@ -481,6 +482,8 @@ private void RefreshHouseStats()
481482 stats += Environment . NewLine + "Infantry: " + map . Infantry . Count ( s => s . Owner == editedHouse ) ;
482483 stats += Environment . NewLine + "Vehicles: " + map . Units . Count ( s => s . Owner == editedHouse ) ;
483484 stats += Environment . NewLine + "Buildings: " + map . Structures . Count ( s => s . Owner == editedHouse ) ;
485+ stats += Environment . NewLine + " AI repairable: " + map . Structures . Count ( s => s . Owner == editedHouse && s . AIRepairable ) ;
486+ stats += Environment . NewLine + " not AI repairable: " + map . Structures . Count ( s => s . Owner == editedHouse && ! s . AIRepairable ) ;
484487
485488 lblStatsValue . Text = stats ;
486489 }
You can’t perform that action at this time.
0 commit comments