Fix EHE issue
This commit is contained in:
@@ -11,6 +11,5 @@ 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=penalize, penaltyGroup="preMul")
|
||||
stackingPenalties=True, penaltyGroup="preMul")
|
||||
|
||||
@@ -8,4 +8,6 @@ runtime = "late"
|
||||
|
||||
def handler(fit, src, context):
|
||||
for dmgType in ('em', 'thermal', 'kinetic', 'explosive'):
|
||||
fit.ship.forceItemAttr('{}DamageResonance'.format(dmgType), src.getModifiedItemAttr("hull{}DamageResonance".format(dmgType.title())))
|
||||
fit.ship.multiplyItemAttr('{}DamageResonance'.format(dmgType),
|
||||
src.getModifiedItemAttr("hull{}DamageResonance".format(dmgType.title())),
|
||||
stackingPenalties=True, penaltyGroup="postMul")
|
||||
|
||||
Reference in New Issue
Block a user