10 lines
325 B
Python
10 lines
325 B
Python
# Not used by any item
|
|
type = "projected", "active"
|
|
|
|
|
|
def handler(fit, container, context):
|
|
if "projected" in context:
|
|
bonus = container.getModifiedItemAttr("shieldBonus")
|
|
duration = container.getModifiedItemAttr("duration") / 1000.0
|
|
fit.extraAttributes.increase("shieldRepair", bonus / duration)
|