Add tooltips for TGOs.

This commit is contained in:
Dan Albert
2021-05-13 00:44:47 -07:00
parent eb26d54ac1
commit 1ab205cb46
3 changed files with 58 additions and 6 deletions

View File

@@ -128,6 +128,17 @@ class TheaterGroundObject(MissionTarget):
"""
return list(itertools.chain.from_iterable([g.units for g in self.groups]))
@property
def dead_units(self) -> List[Unit]:
"""
:return: all the dead units at this location
"""
return list(
itertools.chain.from_iterable(
[getattr(g, "units_losts", []) for g in self.groups]
)
)
@property
def group_name(self) -> str:
"""The name of the unit group."""