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

Method handler

eos/effects.py:652–672  ·  view source on GitHub ↗
(fit, src, context, projectionRange, **kwargs)

Source from the content-addressed store, hash-verified

650
651 @staticmethod
652 def handler(fit, src, context, projectionRange, **kwargs):
653 # Set reload time to 10 seconds
654 src.reloadTime = 10000
655 if 'projected' not in context:
656 return
657 if src.item.group.name == 'Missile Launcher Bomb':
658 # Bomb Launcher Cooldown Timer
659 moduleReactivationDelay = src.getModifiedItemAttr('moduleReactivationDelay')
660 speed = src.getModifiedItemAttr('speed')
661 # Void and Focused Void Bombs
662 neutAmount = src.getModifiedChargeAttr('energyNeutralizerAmount')
663 if moduleReactivationDelay and neutAmount and speed:
664 fit.addDrain(src, speed + moduleReactivationDelay, neutAmount, 0)
665 # Lockbreaker Bombs
666 ecmStrengthBonus = src.getModifiedChargeAttr('scan{0}StrengthBonus'.format(fit.scanType))
667 if ecmStrengthBonus:
668 fit.addProjectedEcm(ecmStrengthBonus)
669 elif src.item.group.name == 'Interdiction Sphere Launcher':
670 speedFactor = src.getModifiedChargeAttr('speedFactor')
671 if speedFactor:
672 fit.ship.boostItemAttr('maxVelocity', speedFactor, **kwargs)
673
674class Effect118(BaseEffect):
675 """

Callers

nothing calls this directly

Calls 5

getModifiedChargeAttrMethod · 0.80
addDrainMethod · 0.80
addProjectedEcmMethod · 0.80
boostItemAttrMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected