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

14 lines
554 B
Python

# miningUpgradeCPUPenaltyReductionModulesRequiringMiningUpgradePercent
#
# Used by:
# Implants named like: Inherent Implants 'Highwall' Mining Upgrades MU (3 of 3)
# Skill: Mining Upgrades
type = "passive"
def handler(fit, container, context):
level = container.level if "skill" in context else 1
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Mining Upgrades"),
"cpuPenaltyPercent",
container.getModifiedItemAttr("miningUpgradeCPUReductionBonus") * level)