16 lines
451 B
Python
16 lines
451 B
Python
# shipModuleAncillaryRemoteShieldBooster
|
|
#
|
|
# Used by:
|
|
# Modules from group: Ancillary Remote Shield Booster (4 of 4)
|
|
|
|
type = "projected", "active"
|
|
runTime = "late"
|
|
|
|
|
|
def handler(fit, module, context, **kwargs):
|
|
if "projected" not in context:
|
|
return
|
|
amount = module.getModifiedItemAttr("shieldBonus")
|
|
speed = module.getModifiedItemAttr("duration") / 1000.0
|
|
fit.extraAttributes.increase("shieldRepair", amount / speed, **kwargs)
|