Fix group matching: ECM Burst -> Burst Jammer

This commit is contained in:
blitzmann
2016-03-05 21:41:01 -05:00
parent 38cc13ff2c
commit b44c8461d4
9 changed files with 9 additions and 9 deletions

View File

@@ -4,5 +4,5 @@
# Ship: Scorpion
type = "passive"
def handler(fit, ship, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "ECM Burst",
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Burst Jammer",
"ecmBurstRange", ship.getModifiedItemAttr("shipBonusCB3"), skill="Caldari Battleship")

View File

@@ -6,5 +6,5 @@ type = "passive"
def handler(fit, ship, context):
sensorTypes = ("Gravimetric", "Ladar", "Magnetometric", "Radar")
for type in sensorTypes:
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "ECM Burst", "scan{0}StrengthBonus".format(type),
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Burst Jammer", "scan{0}StrengthBonus".format(type),
ship.getModifiedItemAttr("eliteBonusBlackOps1"), skill="Black Ops")

View File

@@ -7,5 +7,5 @@
type = "passive"
def handler(fit, container, context):
level = container.level if "skill" in context else 1
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "ECM Burst",
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Burst Jammer",
"capacitorNeed", container.getModifiedItemAttr("capNeedBonus") * level)

View File

@@ -4,5 +4,5 @@
# Skill: Frequency Modulation
type = "passive"
def handler(fit, skill, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "ECM Burst",
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Burst Jammer",
"falloffEffectiveness", skill.getModifiedItemAttr("falloffBonus") * skill.level)

View File

@@ -6,6 +6,6 @@
type = "passive"
def handler(fit, container, context):
level = container.level if "skill" in context else 1
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "ECM Burst",
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Burst Jammer",
"ecmBurstRange", container.getModifiedItemAttr("rangeSkillBonus") * level,
stackingPenalties = False if "skill" in context else True)

View File

@@ -5,7 +5,7 @@
# Skill: Signal Dispersion
type = "passive"
def handler(fit, container, context):
groups = ("ECM", "ECM Burst")
groups = ("ECM", "Burst Jammer")
level = container.level if "skill" in context else 1
for scanType in ("Gravimetric", "Ladar", "Magnetometric", "Radar"):
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,

View File

@@ -8,7 +8,7 @@ runTime = "late"
def handler(fit, module, context):
if "gang" not in context: return
groups = ("Target Painter", "Weapon Disruptor", "Remote Sensor Damper", "ECM", "ECM Burst")
groups = ("Target Painter", "Weapon Disruptor", "Remote Sensor Damper", "ECM", "Burst Jammer")
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,
"maxRange", module.getModifiedItemAttr("commandBonus"),
stackingPenalties = True)

View File

@@ -69,7 +69,7 @@ def handler(fit, module, context):
# EW cap need increase
groups = [
'ECM Burst',
'Burst Jammer',
'Remote ECM Burst',
'Weapon Disruptor',
'ECM',

View File

@@ -205,7 +205,7 @@ class Miscellanea(ViewColumn):
tooltip = "{0} disruption".format(formatList(ttEntries)).capitalize()
return text, tooltip
elif itemGroup in ("ECM", "ECM Burst", "Remote ECM Burst"):
elif itemGroup in ("ECM", "Burst Jammer", "Remote ECM Burst"):
grav = stuff.getModifiedItemAttr("scanGravimetricStrengthBonus")
ladar = stuff.getModifiedItemAttr("scanLadarStrengthBonus")
radar = stuff.getModifiedItemAttr("scanRadarStrengthBonus")