mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Show pending ground unit count in the base menu.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1161
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user