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

11 lines
557 B
Python
Executable File

# Used by:
# Implant: Inherent Implants 'Highwall' Mining Upgrades MU-1001
# Implant: Inherent Implants 'Highwall' Mining Upgrades MU-1003
# Implant: Inherent Implants 'Highwall' Mining Upgrades MU-1005
# 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)