added missing assets; convoy strike event

This commit is contained in:
Vasyl Horbachenko
2018-11-06 02:33:38 +02:00
parent 9d0997624b
commit e1d50f1f27
18 changed files with 170 additions and 6 deletions

View File

@@ -162,6 +162,7 @@ class OverviewCanvas:
FrontlineAttackEvent: "attack",
InfantryTransportEvent: "infantry",
InsurgentAttackEvent: "insurgent_attack",
ConvoyStrikeEvent: "convoy",
InterceptEvent: "air_intercept",
NavalInterceptEvent: "naval_intercept",
StrikeEvent: "strike",
@@ -486,7 +487,7 @@ class OverviewCanvas:
label_to_draw = None
for event in self.game.events:
location = event.location
if isinstance(event, FrontlinePatrolEvent) or isinstance(event, FrontlineAttackEvent):
if type(event) in [FrontlineAttackEvent, FrontlinePatrolEvent, ConvoyStrikeEvent]:
location = self._frontline_center(event.from_cp, event.to_cp)
rect = _location_to_rect(location)