Add GroupTask to TGO for map filtering

Resolves #21
This commit is contained in:
Raffson
2023-09-03 23:21:51 +02:00
parent b7bc9efb52
commit a8a37fa3e7
12 changed files with 134 additions and 21 deletions

View File

@@ -36,6 +36,7 @@ class Migrator:
self._update_squadrons()
self._release_untasked_flights()
self._update_weather()
self._update_tgos()
def _update_doctrine(self) -> None:
doctrines = [
@@ -197,3 +198,7 @@ class Migrator:
midnight_turbulence_per_10cm=0.4,
weather_type_chances=sc.weather_type_chances,
)
def _update_tgos(self) -> None:
for go in self.game.theater.ground_objects:
go.task = None # TODO: attempt to deduce tasking?