Files
pyfa/eos/effects/powerbooster.py
DarkPhoenix fd36a0b172 Replace submodules with actual files
Submodules never were actually useful
2013-06-10 22:12:34 +04:00

13 lines
455 B
Python
Executable File

# Used by:
# Modules from group: Capacitor Booster (54 of 54)
type = "active"
def handler(fit, module, context):
# Set reload time to 10 seconds
module.reloadTime = 10000
# Make so that reloads are always taken into account during clculations
module.forceReload = True
if module.charge is None: return
capAmount = module.getModifiedChargeAttr("capacitorBonus") or 0
module.itemModifiedAttributes["capacitorNeed"] = -capAmount