Fix group matching: ECM Burst -> Burst Jammer
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -69,7 +69,7 @@ def handler(fit, module, context):
|
||||
|
||||
# EW cap need increase
|
||||
groups = [
|
||||
'ECM Burst',
|
||||
'Burst Jammer',
|
||||
'Remote ECM Burst',
|
||||
'Weapon Disruptor',
|
||||
'ECM',
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user