Fix group matching: Remote Sensor Dampener -> Sensor Dampener

This commit is contained in:
blitzmann
2016-03-05 21:44:02 -05:00
parent b44c8461d4
commit e2d33beb34
14 changed files with 14 additions and 14 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 == "Remote Sensor Damper",
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Sensor Dampener",
"maxRange", implant.getModifiedItemAttr("rangeSkillBonus"))

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 == "Remote Sensor Damper",
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Sensor Dampener",
"maxTargetRangeBonus", container.getModifiedItemAttr("scanSkillEwStrengthBonus") * level)

View File

@@ -7,6 +7,6 @@ type = "passive"
def handler(fit, container, context):
level = container.level if "skill" in context else 1
penalized = False if "skill" in context else True
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Remote Sensor Damper",
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Sensor Dampener",
"scanResolutionBonus", container.getModifiedItemAttr("scanSkillEwStrengthBonus") * level,
stackingPenalties=penalized)

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", "Burst Jammer")
groups = ("Target Painter", "Weapon Disruptor", "Sensor Dampener", "ECM", "Burst Jammer")
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,
"maxRange", module.getModifiedItemAttr("commandBonus"),
stackingPenalties = True)

View File

@@ -4,5 +4,5 @@
# Ship: Celestis
type = "passive"
def handler(fit, ship, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Remote Sensor Damper",
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Sensor Dampener",
"falloffEffectiveness", ship.getModifiedItemAttr("shipBonusGC"), skill="Gallente Cruiser")

View File

@@ -4,5 +4,5 @@
# Variations of ship: Celestis (3 of 3)
type = "passive"
def handler(fit, ship, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Remote Sensor Damper",
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Sensor Dampener",
"maxTargetRangeBonus", ship.getModifiedItemAttr("shipBonusGC2"), skill="Gallente Cruiser")

View File

@@ -5,5 +5,5 @@
# Ship: Maulus
type = "passive"
def handler(fit, ship, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Remote Sensor Damper",
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Sensor Dampener",
"maxTargetRangeBonus", ship.getModifiedItemAttr("shipBonusGF2"), skill="Gallente Frigate")

View File

@@ -4,5 +4,5 @@
# Ship: Velator
type = "passive"
def handler(fit, ship, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Remote Sensor Damper",
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Sensor Dampener",
"maxTargetRangeBonus", ship.getModifiedItemAttr("rookieDampStrengthBonus"))

View File

@@ -4,5 +4,5 @@
# Ship: Celestis
type = "passive"
def handler(fit, ship, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Remote Sensor Damper",
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Sensor Dampener",
"maxRange", ship.getModifiedItemAttr("shipBonusGC"), skill="Gallente Cruiser")

View File

@@ -4,5 +4,5 @@
# Variations of ship: Celestis (3 of 3)
type = "passive"
def handler(fit, ship, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Remote Sensor Damper",
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Sensor Dampener",
"scanResolutionBonus", ship.getModifiedItemAttr("shipBonusGC2"), skill="Gallente Cruiser")

View File

@@ -5,5 +5,5 @@
# Ship: Maulus
type = "passive"
def handler(fit, ship, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Remote Sensor Damper",
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Sensor Dampener",
"scanResolutionBonus", ship.getModifiedItemAttr("shipBonusGF2"), skill="Gallente Frigate")

View File

@@ -4,5 +4,5 @@
# Ship: Velator
type = "passive"
def handler(fit, ship, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Remote Sensor Damper",
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Sensor Dampener",
"scanResolutionBonus", ship.getModifiedItemAttr("rookieDampStrengthBonus"))

View File

@@ -5,5 +5,5 @@
# Ship: Maulus
type = "passive"
def handler(fit, ship, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Remote Sensor Damper",
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Sensor Dampener",
"capacitorNeed", ship.getModifiedItemAttr("shipBonusGF"), skill="Gallente Frigate")

View File

@@ -139,7 +139,7 @@ class Miscellanea(ViewColumn):
text = "{0}%".format(formatAmount(sigRadBonus, 3, 0, 3, forceSign=True))
tooltip = "Signature radius increase"
return text, tooltip
elif itemGroup == "Remote Sensor Damper":
elif itemGroup == "Sensor Dampener":
lockRangeBonus = stuff.getModifiedItemAttr("maxTargetRangeBonus")
scanResBonus = stuff.getModifiedItemAttr("scanResolutionBonus")
if lockRangeBonus is None or scanResBonus is None: