From 9be9a21b22ff3c357e3db8c9351d03ad293bf4a3 Mon Sep 17 00:00:00 2001 From: Ebag333 Date: Sun, 16 Oct 2016 15:09:17 -0700 Subject: [PATCH] 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. --- eos/effects/mininginfomultiplier.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eos/effects/mininginfomultiplier.py b/eos/effects/mininginfomultiplier.py index 10ecb4eef..26e31b783 100644 --- a/eos/effects/mininginfomultiplier.py +++ b/eos/effects/mininginfomultiplier.py @@ -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"))