Files
pyfa/eos/effects/commandbonusecmmultiplywithcommandbonushidden.py
2016-10-19 14:03:31 -07:00

18 lines
694 B
Python

# commandBonusECMMultiplyWithCommandBonusHidden
#
# Used by:
# Variations of module: Information Warfare Link - Electronic Superiority I (2 of 2)
gangBonus = "commandBonusECM"
gangBoost = "ewarStrECM"
type = "active", "gang"
def handler(fit, module, context):
if "gang" not in context:
return
for scanType in ("Magnetometric", "Radar", "Ladar", "Gravimetric"):
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Electronic Warfare"),
"scan%sStrengthBonus" % scanType,
module.getModifiedItemAttr("commandBonusECM"),
stackingPenalties=True)