Changed fighter selection for NSA bonus

This commit is contained in:
Mr. Nukealizer
2016-10-05 22:44:10 -07:00
parent 30755fbb73
commit a349626923

View File

@@ -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 = [