12 lines
408 B
Python
12 lines
408 B
Python
# miningYieldGangBonusFixed
|
|
#
|
|
# Used by:
|
|
# Skill: Mining Foreman
|
|
type = "gang"
|
|
gangBoost = "miningAmount"
|
|
gangBonus = "miningAmountBonus"
|
|
def handler(fit, container, context):
|
|
level = container.level if "skill" in context else 1
|
|
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Mining"),
|
|
gangBoost, container.getModifiedItemAttr(gangBonus) * level)
|