Assign laser codes to players with TGPs.

This doesn't configure the bombs in the mission or anything yet; it only
pre-assigns a laser code for the player to use if they choose to.
This commit is contained in:
Dan Albert
2021-07-31 16:49:58 -07:00
parent fc45c3b98c
commit 73ba7933da
4 changed files with 44 additions and 44 deletions

View File

@@ -354,6 +354,12 @@ class BriefingPage(KneeboardPage):
["Bingo", "Joker"],
)
if any(self.flight.laser_codes):
codes: list[list[str]] = []
for idx, code in enumerate(self.flight.laser_codes, start=1):
codes.append([str(idx), "" if code is None else str(code)])
writer.table(codes, ["#", "Laser Code"])
writer.write(path)
def airfield_info_row(