Added carrier frequency to briefing.

This commit is contained in:
Khopa 2020-07-23 21:30:50 +02:00
parent 8d0c53ef69
commit d0bbb025d3

View File

@ -89,11 +89,12 @@ class BriefingGenerator:
for name, freq in self.freqs: for name, freq in self.freqs:
self.description += "{}: {}\n".format(name, freq) self.description += "{}: {}\n".format(name, freq)
self.description += ("-" * 50) + "\n" self.description += ("-" * 50) + "\n"
for cp in self.game.theater.controlpoints: for cp in self.game.theater.controlpoints:
if cp.captured and cp.cptype in [ControlPointType.LHA_GROUP, ControlPointType.AIRCRAFT_CARRIER_GROUP]: if cp.captured and cp.cptype in [ControlPointType.LHA_GROUP, ControlPointType.AIRCRAFT_CARRIER_GROUP]:
self.description += cp.name + "\n" self.description += cp.name + "\n"
self.description += "RADIO : 127.5 Mhz AM"
self.description += "TACAN : " self.description += "TACAN : "
self.description += str(cp.tacanN) self.description += str(cp.tacanN)
if cp.tacanY: if cp.tacanY:
self.description += "Y" self.description += "Y"