Nav Target point for JF-17 and F-14.

Fix activation trigger using wrong coalition when playing REDFOR side.
This commit is contained in:
Khopa
2020-06-02 13:00:10 +02:00
parent a022f9c2e1
commit c73290eebb
3 changed files with 22 additions and 6 deletions

View File

@@ -168,6 +168,18 @@ class Game:
else:
return event.name == self.player_name
def get_player_coalition_id(self):
if self.player_country in db.BLUEFOR_FACTIONS:
return 2
else:
return 1
def get_enemy_coalition_id(self):
if self.get_player_coalition_id() == 1:
return 2
else:
return 1
def pass_turn(self, no_action=False, ignored_cps: typing.Collection[ControlPoint] = None):
logging.info("Pass turn")
self.informations.append(Information("End of turn #" + str(self.turn), "-" * 40, 0))