Files
pyfa/eos/effects/ammoinfluencecapneed.py
2015-12-07 20:10:44 -05:00

12 lines
424 B
Python

# ammoInfluenceCapNeed
#
# Used by:
# Items from category: Charge (458 of 833)
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)