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

Method getSlotPos

gui/builtinViewColumns/heat.py:41–49  ·  view source on GitHub ↗
(self, mod)

Source from the content-addressed store, hash-verified

39 self.simTime = 600
40
41 def getSlotPos(self, mod): # get rack position of mod, 0-7
42 rack = []
43 for m in self.fit.modules:
44 if m.slot == mod.slot:
45 rack.insert(0, m)
46
47 for i, m in enumerate(rack):
48 if m == mod:
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, ...

Callers 1

calcDamageProbabilityMethod · 0.95

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected