Files
pyfa/eos/effects/ammoinfluencecapneed.py
2014-07-30 21:23:27 -04:00

10 lines
399 B
Python

# Used by:
# Items from category: Charge (458 of 828)
type = "passive"
def handler(fit, module, context):
# Dirty hack to work around cap charges setting cap booster
# injection amount to zero
rawAttr = module.item.getAttribute("capacitorNeed")
if rawAttr is not None and rawAttr >= 0:
module.boostItemAttr("capacitorNeed", module.getModifiedChargeAttr("capNeedBonus") or 0)