Skip to content

Commit

Permalink
Do not penalize effects modifying structure resistance
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFenX committed Mar 20, 2014
1 parent e00941b commit 2903c7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion eos/effects/damagecontrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ def handler(fit, module, context):
bonus = "%s%sDamageResonance" % (attrPrefix, damageType)
bonus = "%s%s" % (bonus[0].lower(), bonus[1:])
booster = "%s%sDamageResonance" % (layer, damageType)
penalize = False if layer == 'hull' else True
fit.ship.multiplyItemAttr(bonus, module.getModifiedItemAttr(booster),
stackingPenalties=True, penaltyGroup="preMul")
stackingPenalties=penalize, penaltyGroup="preMul")
3 changes: 2 additions & 1 deletion eos/effects/maraudermodeeffect26.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ def handler(fit, module, context):
bonus = "%s%sDamageResonance" % (attrPrefix, damageType)
bonus = "%s%s" % (bonus[0].lower(), bonus[1:])
booster = "%s%sDamageResonance" % (layer, damageType)
penalize = False if layer == 'hull' else True
fit.ship.multiplyItemAttr(bonus, module.getModifiedItemAttr(booster),
stackingPenalties=True, penaltyGroup="preMul")
stackingPenalties=penalize, penaltyGroup="preMul")

# Turrets
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Large Energy Turret") or \
Expand Down

0 comments on commit 2903c7e

Please sign in to comment.