Files
pyfa/eos/effects/caldarishipewstrengthcb.py

11 lines
448 B
Python

# caldariShipEwStrengthCB
#
# Used by:
# Ship: Scorpion
type = "passive"
def handler(fit, ship, context):
for sensorType in ("Gravimetric", "Ladar", "Magnetometric", "Radar"):
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "ECM",
"scan{0}StrengthBonus".format(sensorType),
ship.getModifiedItemAttr("shipBonusCB"), skill="Caldari Battleship")