Applied Mining Crystal Bonus to modules

Previously the mining crystal bonus was not applied to modules, so
adding a crystal didn't change the amount mined at all.  This now
applies.  Left the old application in place, so it still applies to a
nonsense `specialtyMiningAmount` stat if you want to see that seperated
out for some weird reason.
This commit is contained in:
Ebag333
2016-10-16 15:09:17 -07:00
parent 7331c158b6
commit 9be9a21b22

View File

@@ -6,3 +6,5 @@
type = "passive"
def handler(fit, module, context):
module.multiplyItemAttr("specialtyMiningAmount", module.getModifiedChargeAttr("specialisationAsteroidYieldMultiplier"))
fit.modules.filteredItemMultiply(lambda mod: mod.item.requiresSkill("Mining"),
"miningAmount", module.getModifiedChargeAttr("specialisationAsteroidYieldMultiplier"))