weather min cloud base; minor updates

This commit is contained in:
Vasyl Horbachenko
2018-06-21 04:39:37 +03:00
parent 73cf5c635f
commit 1a491bb814
4 changed files with 21 additions and 3 deletions

View File

@@ -6,6 +6,7 @@ from dcs.vehicles import *
from game import db
from game.operation.intercept import InterceptOperation
from theater.conflicttheater import *
from userdata.debriefing import Debriefing
from .event import Event
@@ -38,7 +39,8 @@ class InterceptEvent(Event):
if self.attacker_name == self.game.player:
if self.is_successfull(debriefing):
self.to_cp.base.affect_strength(-self.STRENGTH_INFLUENCE)
for _, cp in self.game.theater.conflicts(True):
cp.base.affect_strength(-self.STRENGTH_INFLUENCE)
else:
self.from_cp.base.affect_strength(-self.STRENGTH_INFLUENCE)
else: