Use in instead of or, because that makes sense

This commit is contained in:
Ebag333
2016-10-26 10:09:43 -07:00
parent 0dbdbf7cfe
commit e7c79e58b4

View File

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