few minor fixes

This commit is contained in:
Vasyl Horbachenko
2018-06-25 05:09:00 +03:00
parent f9e66dec21
commit 0b2e76e12b
5 changed files with 342 additions and 899 deletions

View File

@@ -29,9 +29,9 @@ class GroundInterceptEvent(Event):
destroyed_targets += count
if self.from_cp.captured:
return math.ceil(float(destroyed_targets) / total_targets) >= self.SUCCESS_TARGETS_HIT_PERCENTAGE
return float(destroyed_targets) / total_targets >= self.SUCCESS_TARGETS_HIT_PERCENTAGE
else:
return math.ceil(float(destroyed_targets) / total_targets) < self.SUCCESS_TARGETS_HIT_PERCENTAGE
return float(destroyed_targets) / total_targets < self.SUCCESS_TARGETS_HIT_PERCENTAGE
def commit(self, debriefing: Debriefing):
super(GroundInterceptEvent, self).commit(debriefing)