(self)
| 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") |
no test coverage detected