minor updates and strike mission objects expand

This commit is contained in:
Vasyl Horbachenko
2018-09-10 01:38:50 +03:00
parent 40bfb6fa88
commit 7a5361c057
13 changed files with 64 additions and 18 deletions

View File

@@ -37,12 +37,12 @@ class BriefingGenerator:
description += "\n\n" + self.description
if self.freqs:
description += "\n\n RADIO:"
description += "\n\nCOMMS:"
for name, freq in self.freqs:
description += "\n{}: {}".format(name, freq)
if self.targets:
description += "\n\n TARGETS:"
description += "\n\nTARGETS:"
for name, tp in self.targets:
description += "\n{} {}".format(name, "(TP {})".format(tp) if tp else "")

View File

@@ -49,7 +49,7 @@ class EnviromentGenerator:
self.game = game
def _gen_random_time(self):
start_time = datetime.combine(datetime.today(), time())
start_time = datetime.fromtimestamp(1527206400)
time_range = None
for k, v in RANDOM_TIME.items():
if self.game.settings.night_disabled and k == "night":

View File

@@ -14,6 +14,8 @@ CATEGORY_MAPPING = {
"fuel": [Warehouse.Tank],
"ammo": [Warehouse.Ammunition_depot],
"farp": [Fortification.FARP_Tent],
"comms": [Fortification.TV_tower],
"oil": [Fortification.Oil_platform],
}