Show pending ground unit count in the base menu.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1161
This commit is contained in:
Dan Albert
2021-06-05 13:24:12 -07:00
parent e3bc2688ba
commit 6094179a40
2 changed files with 18 additions and 6 deletions

View File

@@ -151,11 +151,19 @@ class GroundUnitAllocations:
@cached_property
def total(self) -> int:
return (
sum(self.present.values())
+ sum(self.ordered.values())
+ sum(self.transferring.values())
)
return self.total_present + self.total_ordered + self.total_transferring
@cached_property
def total_present(self) -> int:
return sum(self.present.values())
@cached_property
def total_ordered(self) -> int:
return sum(self.ordered.values())
@cached_property
def total_transferring(self) -> int:
return sum(self.transferring.values())
@dataclass