14 lines
647 B
Python
14 lines
647 B
Python
# moduleBonusMiningForemanLinkHarvesterCapacitorEfficiency
|
|
#
|
|
# Used by:
|
|
# Variations of module: Mining Foreman Link - Harvester Capacitor Efficiency I (2 of 2)
|
|
type = "gang", "active"
|
|
gangBoost = "miningCapacitorNeed"
|
|
def handler(fit, module, context):
|
|
if "gang" not in context: return
|
|
groups = ("Mining Laser", "Strip Miner", "Frequency Mining Laser",
|
|
"Ice Harvester", "Gas Cloud Harvester")
|
|
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,
|
|
"capacitorNeed", module.getModifiedItemAttr("commandBonus"),
|
|
stackingPenalties = True)
|