Files
pyfa/eos/effects/scanstrengthbonuspercentactivate.py
2016-03-11 00:18:33 -05:00

13 lines
395 B
Python

# scanStrengthBonusPercentActivate
#
# Used by:
# Module: QA ECCM
type = "active"
def handler(fit, module, context):
for scanType in ("Gravimetric", "Magnetometric", "Radar", "Ladar"):
fit.ship.boostItemAttr(
"scan{}Strength".format(scanType),
module.getModifiedItemAttr("scan{}StrengthPercent".format(scanType)),
stackingPenalties=True
)