MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / handler

Method handler

eos/effects.py:18777–18788  ·  view source on GitHub ↗
(fit, module, context, projectionRange, **kwargs)

Source from the content-addressed store, hash-verified

18775
18776 @staticmethod
18777 def handler(fit, module, context, projectionRange, **kwargs):
18778 if module.charge and module.charge.name == 'Nanite Repair Paste':
18779 multiplier = 3
18780 else:
18781 multiplier = 1
18782
18783 amount = module.getModifiedItemAttr('armorDamageAmount') * multiplier
18784 speed = module.getModifiedItemAttr('duration') / 1000.0
18785 rps = amount / speed
18786 fit.extraAttributes.increase('armorRepair', rps, **kwargs)
18787 fit.extraAttributes.increase('armorRepairPreSpool', rps, **kwargs)
18788 fit.extraAttributes.increase('armorRepairFullSpool', rps, **kwargs)
18789
18790
18791class Effect5293(BaseEffect):

Callers

nothing calls this directly

Calls 2

increaseMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected