Stop counting neutral base captures in status.

These had no effect but were being counted on the waiting for mission
results page. Cleaned up the implementation a bunch while I was here.

Fixes https://github.com/Khopa/dcs_liberation/issues/1037
This commit is contained in:
Dan Albert
2021-04-26 17:52:50 -07:00
parent e9f25eb562
commit 2b8dfc9dbc
4 changed files with 62 additions and 58 deletions

View File

@@ -673,7 +673,7 @@ class ConflictTheater:
for i in self.controlpoints:
if i.id == id:
return i
raise RuntimeError(f"Cannot find ControlPoint with ID {id}")
raise KeyError(f"Cannot find ControlPoint with ID {id}")
def add_json_cp(self, theater, p: dict) -> ControlPoint:
cp: ControlPoint