From a349626923e1dfd82b8b0742fb59ab7b31d4559f Mon Sep 17 00:00:00 2001 From: "Mr. Nukealizer" Date: Wed, 5 Oct 2016 22:44:10 -0700 Subject: [PATCH] Changed fighter selection for NSA bonus --- eos/effects/modulebonusnetworkedsensorarray.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/eos/effects/modulebonusnetworkedsensorarray.py b/eos/effects/modulebonusnetworkedsensorarray.py index 2728a7856..7db715bfd 100644 --- a/eos/effects/modulebonusnetworkedsensorarray.py +++ b/eos/effects/modulebonusnetworkedsensorarray.py @@ -7,15 +7,10 @@ def handler(fit, src, context): fit.ship.boostItemAttr("scanResolution", src.getModifiedItemAttr("scanResolutionBonus"), stackingPenalties=True) for scanType in ('Magnetometric', 'Ladar', 'Gravimetric', 'Radar'): - fit.ship.boostItemAttr("scan{}Strength".format(scanType), - src.getModifiedItemAttr("scan{}StrengthPercent".format(scanType)), - stackingPenalties=True) - - for fighter in fit.fighters: - for scanType in ('Magnetometric', 'Ladar', 'Gravimetric', 'Radar'): - fighter.boostItemAttr("scan{}Strength".format(scanType), - src.getModifiedItemAttr("scan{}StrengthPercent".format(scanType)), - stackingPenalties=True) + attr = "scan{}Strength".format(scanType) + bonus = src.getModifiedItemAttr("scan{}StrengthPercent".format(scanType)) + fit.ship.boostItemAttr(attr, bonus, stackingPenalties=True) + fit.fighters.filteredItemBoost(lambda mod: mod.item.requiresSkill("Fighters"), attr, bonus, stackingPenalties=True) # EW cap need increase groups = [