Files
pyfa/eos/effects/elitebonuselectronicattackshipecmoptimalrange1.py

10 lines
387 B
Python

# eliteBonusElectronicAttackShipECMOptimalRange1
#
# Used by:
# Ship: Kitsune
type = "passive"
def handler(fit, ship, context):
level = fit.character.getSkill("Electronic Attack Ships").level
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "ECM",
"maxRange", ship.getModifiedItemAttr("eliteBonusElectronicAttackShip1") * level)