Files
pyfa/eos/effects/shieldoperationskillboostcapacitorneedbonus.py
2014-01-22 23:51:42 +04:00

9 lines
407 B
Python
Executable File

# Used by:
# Modules named like: Core Safeguard (8 of 8)
# Skill: Shield Compensation
type = "passive"
def handler(fit, container, context):
level = container.level if "skill" in context else 1
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Shield Operation"),
"capacitorNeed", container.getModifiedItemAttr("shieldBoostCapacitorBonus") * level)