14 lines
614 B
Python
14 lines
614 B
Python
# moduleBonusMiningForemanLinkLaserOptimization
|
|
#
|
|
# Used by:
|
|
# Variations of module: Mining Foreman Link - Laser Optimization I (2 of 2)
|
|
type = "gang", "active"
|
|
gangBoost = "miningDuration"
|
|
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,
|
|
"duration", module.getModifiedItemAttr("commandBonus"),
|
|
stackingPenalties = True)
|