MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / calcHeatAbsorbtionRateModifier

Method calcHeatAbsorbtionRateModifier

gui/builtinViewColumns/heat.py:51–58  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49 return i
50
51 def calcHeatAbsorbtionRateModifier(self):
52 harm = [0,0,0,0] # 0 is a dummy slot, align with mod.slot constants, 1=low, 2=med, 3=hi, 4=rig, ...
53
54 for mod in self.fit.modules:
55 if(mod.state == FittingModuleState.OVERHEATED):
56 harm[mod.slot] += mod.getModifiedItemAttr("heatAbsorbtionRateModifier")
57
58 return harm
59
60 def calcSlotFactor(self):
61 slots = self.fit.ship.getModifiedItemAttr("hiSlots") + self.fit.ship.getModifiedItemAttr("medSlots") + self.fit.ship.getModifiedItemAttr("lowSlots")

Callers 1

__init__Method · 0.95

Calls 1

getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected