Frontline progression is now based on combat results.

This commit is contained in:
Khopa
2020-05-25 04:09:51 +02:00
parent f7d9c62afb
commit 7a3ee6b1a9
5 changed files with 91 additions and 35 deletions

View File

@@ -60,17 +60,6 @@ class FrontlineAttackEvent(Event):
def commit(self, debriefing: Debriefing):
super(FrontlineAttackEvent, self).commit(debriefing)
if self.from_cp.captured:
if self.is_successfull(debriefing):
self.to_cp.base.affect_strength(-self.STRENGTH_INFLUENCE)
else:
self.to_cp.base.affect_strength(+self.STRENGTH_INFLUENCE)
else:
if self.is_successfull(debriefing):
self.from_cp.base.affect_strength(-self.STRENGTH_INFLUENCE)
else:
self.to_cp.base.affect_strength(-self.STRENGTH_INFLUENCE)
def skip(self):
if self.to_cp.captured:
self.to_cp.base.affect_strength(-0.1)