Add Burst Jammer to effects modified by Scorpion hull bonus

This commit is contained in:
Ebag333
2016-10-26 08:42:49 -07:00
parent 8d80494b8d
commit 0dbdbf7cfe

View File

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