Fix some Weapon Disruption effects

This commit is contained in:
blitzmann
2015-12-03 20:40:23 -05:00
parent 96eee3a173
commit ca92285ff3
7 changed files with 7 additions and 7 deletions

View File

@@ -4,5 +4,5 @@
# Implants named like: grade Centurion (10 of 12)
type = "passive"
def handler(fit, implant, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Tracking Disruptor",
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Weapon Disruptor",
"maxRange", implant.getModifiedItemAttr("rangeSkillBonus"))

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 == "Tracking Disruptor",
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Weapon Disruptor",
"falloff", 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 == "Tracking Disruptor",
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Weapon Disruptor",
"maxRange", container.getModifiedItemAttr("rangeSkillBonus") * level,
stackingPenalties = "skill" not in context)

View File

@@ -6,5 +6,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 == "Tracking Disruptor",
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Weapon Disruptor",
"trackingSpeedBonus", container.getModifiedItemAttr("scanSkillEwStrengthBonus") * level)

View File

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

View File

@@ -4,5 +4,5 @@
# Variations of ship: Arbitrator (3 of 3)
type = "passive"
def handler(fit, ship, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Tracking Disruptor",
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Weapon Disruptor",
"trackingSpeedBonus", ship.getModifiedItemAttr("shipBonusAC"), skill="Amarr Cruiser")

View File

@@ -4,5 +4,5 @@
# Ship: Impairor
type = "passive"
def handler(fit, ship, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Tracking Disruptor",
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Weapon Disruptor",
"trackingSpeedBonus", ship.getModifiedItemAttr("rookieWeaponDisruptionBonus"))