Handle runway damage in the debrief.

Apparently we were already getting this info because it's a unit like
any other according to the event system, so if runways were actually
sufficiently damaged we'd emit a ton of exceptions.

This doesn't do anything yet, but tracks the damage state. Will add the
ability to repair them next, and then finally make the damage render the
runway inoperable.
This commit is contained in:
Dan Albert
2020-11-25 13:10:48 -08:00
parent ef0e565337
commit 0c4e920af3
5 changed files with 58 additions and 21 deletions

View File

@@ -117,6 +117,9 @@ class Event:
logging.info("Commiting mission results")
for damaged_runway in debriefing.damaged_runways:
damaged_runway.damaged = True
# ------------------------------
# Destroyed aircrafts
for loss in debriefing.air_losses.losses: