fixes to frontline attack; frontline CAP WIP

This commit is contained in:
Vasyl Horbachenko
2018-07-17 02:14:46 +03:00
committed by Vasyl Horbachenko
parent 820820eb92
commit 932bec2f84
22 changed files with 297 additions and 63 deletions

View File

@@ -16,7 +16,7 @@ class BaseAttackEvent(Event):
STRENGTH_RECOVERY = 0.55
def __str__(self):
return "Attack from {} to {}".format(self.from_cp, self.to_cp)
return "Base attack from {} to {}".format(self.from_cp, self.to_cp)
def is_successfull(self, debriefing: Debriefing):
alive_attackers = sum([v for k, v in debriefing.alive_units[self.attacker_name].items() if db.unit_task(k) == PinpointStrike])