Compare commits

...

3 Commits
1.07 ... 1.11

Author SHA1 Message Date
Vasyl Horbachenko
fa55ae1fcc fixed multiplayer mission start 2018-07-04 05:20:35 +03:00
Vasyl Horbachenko
90fbe77682 fixed unplayable F-5 2018-07-04 04:51:31 +03:00
Vasyl Horbachenko
26a7609875 fixed crash on mission debriefing 2018-07-04 04:44:58 +03:00
2 changed files with 9 additions and 5 deletions

View File

@@ -43,7 +43,7 @@ PRICES = {
MiG_29A: 22,
MiG_29S: 26,
F_5E: 6,
F_5E_3: 6,
MiG_15bis: 5,
MiG_21Bis: 6,
AJS37: 8,
@@ -134,7 +134,7 @@ UNIT_BY_TASK = {
CAP: [
C_101CC,
AJS37,
F_5E,
F_5E_3,
Su_27,
Su_33,
MiG_21Bis,
@@ -234,7 +234,7 @@ UNIT_BY_COUNTRY = {
"Russia": [
C_101CC,
AJS37,
F_5E,
F_5E_3,
Su_27,
Su_33,
MiG_15bis,
@@ -279,7 +279,7 @@ UNIT_BY_COUNTRY = {
F_15C,
FA_18C_hornet,
AJS37,
F_5E,
F_5E_3,
M_2000C,
MiG_21Bis,
MiG_15bis,
@@ -416,7 +416,7 @@ def choose_units(for_task: Task, factor: float, count: int, country: str) -> typ
index_start = min(idx, len(suitable_unittypes) - variety)
index_end = min(idx + variety, len(suitable_unittypes))
return set(suitable_unittypes[index_start:index_end])
return list(set(suitable_unittypes[index_start:index_end]))
def _validate_db():

View File

@@ -138,6 +138,10 @@ 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}