Files
pyfa/eos/effects/effect804.py
2019-03-16 14:08:20 -04:00

14 lines
426 B
Python

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