Add a few bits to breacher volley calculation

This commit is contained in:
DarkPhoenix
2024-11-11 14:12:06 +01:00
parent 88129c0df4
commit 7c37d8fd74
2 changed files with 43 additions and 25 deletions

View File

@@ -18,6 +18,8 @@
# ===============================================================================
from typing import NamedTuple
from eos.utils.float import floatUnerr
from utils.repr import makeReprStr
@@ -26,14 +28,20 @@ def _t(x):
return x
class BreacherInfo(NamedTuple):
absolute: float
relative: float
class DmgTypes:
"""Container for damage data stats."""
def __init__(self, em, thermal, kinetic, explosive):
def __init__(self, em, thermal, kinetic, explosive, breacher=None):
self.em = em
self.thermal = thermal
self.kinetic = kinetic
self.explosive = explosive
self.breacher = [] if breacher is None else breacher
self._calcTotal()
# Iterator is needed to support tuple-style unpacking