Files
pyfa/eos/effects/commandbonusecmmultiplywithcommandbonushidden.py
2016-02-07 23:46:20 -05:00

17 lines
704 B
Python

# commandBonusECMMultiplyWithCommandBonusHidden
#
# Used by:
# Variations of module: Information Warfare Link - Electronic Superiority I (2 of 2)
gangBonus = "commandBonusECM"
gangBoost = "ewarStrECM"
type = "active", "gang"
runTime = "late"
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)