MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / calculateEhp

Method calculateEhp

eos/saveddata/damagePattern.py:219–225  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

217 cls._builtins[id] = pattern
218
219 def calculateEhp(self, item):
220 ehp = {}
221 for (type, attr) in (('shield', 'shieldCapacity'), ('armor', 'armorHP'), ('hull', 'hp')):
222 rawCapacity = item.getModifiedItemAttr(attr)
223 ehp[type] = self.effectivify(item, rawCapacity, type)
224
225 return ehp
226
227 def calculateEffectiveTank(self, fit, tankInfo):
228 typeMap = {

Callers 5

_getAutoResistsFunction · 0.95
tankSectionFunction · 0.80
ehpMethod · 0.80
ehpMethod · 0.80
ehpMethod · 0.80

Calls 2

effectivifyMethod · 0.95
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected