Fix stacking penalties on active tank effects

This commit is contained in:
DarkPhoenix
2015-08-13 02:21:24 +03:00
parent 121a81ce70
commit 598512a904
5 changed files with 6 additions and 6 deletions

View File

@@ -6,4 +6,4 @@ type = "passive"
def handler(fit, implant, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Capital Repair Systems"),
"armorDamageAmount", implant.getModifiedItemAttr("repairBonus"),
stackingPenalties = True)
stackingPenalties=True)

View File

@@ -6,4 +6,4 @@
type = "overheat"
def handler(fit, module, context):
module.boostItemAttr("duration", module.getModifiedItemAttr("overloadSelfDurationBonus"))
module.boostItemAttr("armorDamageAmount", module.getModifiedItemAttr("overloadArmorDamageAmount"))
module.boostItemAttr("armorDamageAmount", module.getModifiedItemAttr("overloadArmorDamageAmount"), stackingPenalties=True)

View File

@@ -6,5 +6,4 @@
type = "overheat"
def handler(fit, module, context):
module.boostItemAttr("duration", module.getModifiedItemAttr("overloadSelfDurationBonus"))
module.boostItemAttr("shieldBonus", module.getModifiedItemAttr("overloadShieldBonus"))
module.boostItemAttr("shieldBonus", module.getModifiedItemAttr("overloadShieldBonus"), stackingPenalties=True)

View File

@@ -7,4 +7,4 @@ type = "passive"
def handler(fit, module, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Shield Operation") or mod.item.requiresSkill("Capital Shield Operation"),
"shieldBonus", module.getModifiedItemAttr("shieldBoostMultiplier"),
stackingPenalties = True)
stackingPenalties=True)

View File

@@ -7,6 +7,7 @@
# Implant: Imperial Navy Modified 'Noble' Implant
type = "passive"
def handler(fit, container, context):
penalized = "implant" not in context
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Repair Systems"),
"armorDamageAmount", container.getModifiedItemAttr("repairBonus"),
stackingPenalties = "implant" not in context)
stackingPenalties=penalized)