Files
pyfa/eos/effects/shipmodesmallmissiledamagepostdiv.py
blitzman 9cfa0748ac fix for #871
(cherry picked from commit 70af2b0)
2016-12-14 12:20:42 -08:00

17 lines
714 B
Python

# shipModeSmallMissileDamagePostDiv
#
# Used by:
# Module: Jackdaw Sharpshooter Mode
type = "passive"
def handler(fit, module, context):
types = ("thermal", "em", "explosive", "kinetic")
for type in types:
fit.modules.filteredChargeMultiply(lambda mod: mod.charge.requiresSkill("Rockets") or
mod.charge.requiresSkill("Light Missiles"),
"{}Damage".format(type),
1 / module.getModifiedItemAttr("modeDamageBonusPostDiv"),
stackingPenalties = True,
penaltyGroup="postDiv")