Files
pyfa/eos/effects/miningdroneoperationminingamountbonuspostpercentminingdroneamountpercentchar.py
2014-07-30 21:23:27 -04:00

11 lines
510 B
Python

# Used by:
# Modules named like: Drone Mining Augmentor (8 of 8)
# Skill: Drone Interfacing
# Skill: Mining Drone Operation
type = "passive"
def handler(fit, container, context):
level = container.level if "skill" in context else 1
fit.drones.filteredItemBoost(lambda drone: drone.item.group.name == "Mining Drone",
"miningAmount", container.getModifiedItemAttr("miningAmountBonus") * level,
stackingPenalties = "skill" not in context)