Files
pyfa/eos/effects/shipmodesmallmissiledamagepostdiv.py
2016-12-10 01:27:17 -05:00

15 lines
658 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")