Files
pyfa/eos/effects/remotearmorrepairfalloff.py
2016-04-06 00:12:44 -04:00

11 lines
400 B
Python

# remoteArmorRepairFalloff
#
# Used by:
# Modules from group: Remote Armor Repairer (39 of 39)
type = "projected", "active"
def handler(fit, container, context):
if "projected" in context:
bonus = container.getModifiedItemAttr("armorDamageAmount")
duration = container.getModifiedItemAttr("duration") / 1000.0
fit.extraAttributes.increase("armorRepair", bonus / duration)