Files
pyfa/eos/effects/effect6799.py
2019-03-16 14:08:20 -04:00

16 lines
657 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")