Fix effect that used to only be for skill, but is now for a booster (#1324)

This commit is contained in:
blitzmann
2017-10-28 20:40:33 -04:00
parent efea46006a
commit 82d50cfa0d
4 changed files with 12 additions and 8 deletions

View File

@@ -6,6 +6,7 @@
type = "passive"
def handler(fit, skill, context):
def handler(fit, src, context):
mod = src.level if "skill" in context else 1
fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"),
"emDamage", skill.getModifiedItemAttr("damageMultiplierBonus") * skill.level)
"emDamage", src.getModifiedItemAttr("damageMultiplierBonus") * mod)

View File

@@ -6,6 +6,7 @@
type = "passive"
def handler(fit, skill, context):
def handler(fit, src, context):
mod = src.level if "skill" in context else 1
fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"),
"explosiveDamage", skill.getModifiedItemAttr("damageMultiplierBonus") * skill.level)
"explosiveDamage", src.getModifiedItemAttr("damageMultiplierBonus") * mod)

View File

@@ -6,6 +6,7 @@
type = "passive"
def handler(fit, skill, context):
def handler(fit, src, context):
mod = src.level if "skill" in context else 1
fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"),
"kineticDamage", skill.getModifiedItemAttr("damageMultiplierBonus") * skill.level)
"kineticDamage", src.getModifiedItemAttr("damageMultiplierBonus") * mod)

View File

@@ -6,6 +6,7 @@
type = "passive"
def handler(fit, skill, context):
def handler(fit, src, context):
mod = src.level if "skill" in context else 1
fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"),
"thermalDamage", skill.getModifiedItemAttr("damageMultiplierBonus") * skill.level)
"thermalDamage", src.getModifiedItemAttr("damageMultiplierBonus") * mod)