mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
update to ground objects parser; waypoints in briefings & general briefings update; minor fixes
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
from .controlpoint import *
|
||||
from .conflicttheater import *
|
||||
from .base import *
|
||||
from .base import *
|
||||
|
||||
@@ -44,7 +44,7 @@ class CaucasusTheater(ConflictTheater):
|
||||
|
||||
carrier_1 = ControlPoint.carrier("Carrier", mapping.Point(-305810.6875, 406399.1875))
|
||||
|
||||
def __init__(self):
|
||||
def __init__(self, load_ground_objects=True):
|
||||
super(CaucasusTheater, self).__init__()
|
||||
|
||||
self.add_controlpoint(self.soganlug, connected_to=[self.kutaisi, self.beslan])
|
||||
@@ -73,8 +73,9 @@ class CaucasusTheater(ConflictTheater):
|
||||
self.carrier_1.captured = True
|
||||
self.soganlug.captured = True
|
||||
|
||||
with open("resources/cau_groundobjects.p", "rb") as f:
|
||||
self.set_groundobject(pickle.load(f))
|
||||
if load_ground_objects:
|
||||
with open("resources/cau_groundobjects.p", "rb") as f:
|
||||
self.set_groundobject(pickle.load(f))
|
||||
|
||||
def add_controlpoint(self, point: ControlPoint, connected_to: typing.Collection[ControlPoint] = []):
|
||||
point.name = " ".join(re.split(r"[ -]", point.name)[:1])
|
||||
|
||||
@@ -32,7 +32,7 @@ class NevadaTheater(ConflictTheater):
|
||||
jean = ControlPoint.from_airport(nevada.Jean_Airport, LAND, SIZE_REGULAR, 1.2)
|
||||
laughlin = ControlPoint.from_airport(nevada.Laughlin_Airport, LAND, SIZE_LARGE, IMPORTANCE_HIGH)
|
||||
|
||||
def __init__(self):
|
||||
def __init__(self, load_ground_objects=True):
|
||||
super(NevadaTheater, self).__init__()
|
||||
|
||||
self.add_controlpoint(self.mina, connected_to=[self.tonopah])
|
||||
|
||||
@@ -45,7 +45,7 @@ class PersianGulfTheater(ConflictTheater):
|
||||
|
||||
west_carrier = ControlPoint.carrier("East carrier", Point(-100531.972946, 60939.275818))
|
||||
|
||||
def __init__(self):
|
||||
def __init__(self, load_ground_objects=True):
|
||||
super(PersianGulfTheater, self).__init__()
|
||||
|
||||
self.add_controlpoint(self.shiraz, connected_to=[self.lar, self.kerman])
|
||||
|
||||
Reference in New Issue
Block a user