Compare commits

...

7 Commits

Author SHA1 Message Date
Vasyl Horbachenko
3831658162 more base recovery after attack 2018-07-16 22:55:29 +03:00
Vasyl Horbachenko
26e43f5e54 Merge branch 'master' of https://github.com/shdwp/dcs_liberation 2018-07-16 22:12:31 +03:00
Vasyl Horbachenko
44ba5c32c6 use correct join char for paths 2018-07-16 22:11:47 +03:00
Vasyl Horbachenko
ce7d3a89c0 fixed user path for regular DCS 2018-07-16 22:11:03 +03:00
Vasyl Horbachenko
c74b1205df fixed user path for regular DCS 2018-07-16 22:05:42 +03:00
Vasyl Horbachenko
58dd16219b removed observer slots 2018-07-15 08:55:20 +03:00
Vasyl Horbachenko
e0e1d0238f nevada debugging code removal 2018-07-15 05:55:38 +03:00
5 changed files with 5 additions and 11 deletions

View File

@@ -13,7 +13,7 @@ from .event import Event
class CaptureEvent(Event):
silent = True
BONUS_BASE = 15
STRENGTH_RECOVERY = 0.35
STRENGTH_RECOVERY = 0.55
def __str__(self):
return "Attack from {} to {}".format(self.from_cp, self.to_cp)

View File

@@ -140,10 +140,6 @@ class TriggersGenerator:
player_coalition = self.game.player == "USA" and "blue" or "red"
enemy_coalition = player_coalition == "blue" and "red" or "blue"
# dcs require at least some slots on both sides for the mission to start
self.mission.groundControl.red_observer = 1
self.mission.groundControl.blue_observer = 1
self.mission.coalition[player_coalition].bullseye = {"x": self.conflict.position.x,
"y": self.conflict.position.y}

View File

@@ -51,5 +51,4 @@ class NevadaTheater(ConflictTheater):
self.add_controlpoint(self.laughlin, connected_to=[self.jean, self.las_vegas])
self.mina.captured = True
self.pahute_mesa.captured = True
self.groom_lake.captured = True

View File

@@ -69,7 +69,6 @@ class PersianGulfTheater(ConflictTheater):
self.add_controlpoint(self.west_carrier)
self.west_carrier.captured = True
self.al_dhafra.captured = True
"""

View File

@@ -15,11 +15,11 @@ def base_path() -> str:
global _user_folder
assert _user_folder
openbeta_path = os.path.join(_user_folder, "Saved Games\DCS.openbeta")
openbeta_path = os.path.join(_user_folder, "Saved Games", "DCS.openbeta")
if os.path.exists(openbeta_path):
return openbeta_path
else:
return os.path.expanduser("~\Saved Games\DCS")
return os.path.join(_user_folder, "Saved Games" , "DCS")
def _save_file() -> str:
@@ -35,7 +35,7 @@ def _save_file_exists() -> bool:
def mission_path_for(name: str) -> str:
return os.path.join(base_path(), "Missions\{}".format(name))
return os.path.join(base_path(), "Missions", "{}".format(name))
def restore_game():