Use in instead of or, because that makes sense
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user