From 98cac2a0dac08c54c17a365b55a0691433688fae Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Thu, 6 Nov 2014 23:17:44 +0300 Subject: [PATCH] Penalize speed ganglinks against overheat on module itself (fixes #170) --- eos/effects/gangabmwdfactorboost.py | 2 +- eos/effects/overloadselfspeedbonus.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/eos/effects/gangabmwdfactorboost.py b/eos/effects/gangabmwdfactorboost.py index ecfe88419f..898d561c2c 100644 --- a/eos/effects/gangabmwdfactorboost.py +++ b/eos/effects/gangabmwdfactorboost.py @@ -8,4 +8,4 @@ def handler(fit, module, context): if "gang" not in context: return fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Propulsion Module", "speedFactor", module.getModifiedItemAttr("commandBonus"), - stackingPenalties = True) + stackingPenalties=True) diff --git a/eos/effects/overloadselfspeedbonus.py b/eos/effects/overloadselfspeedbonus.py index ec24f3926c..08a6217292 100644 --- a/eos/effects/overloadselfspeedbonus.py +++ b/eos/effects/overloadselfspeedbonus.py @@ -4,4 +4,5 @@ # Modules from group: Propulsion Module (107 of 107) type = "overheat" def handler(fit, module, context): - module.boostItemAttr("speedFactor", module.getModifiedItemAttr("overloadSpeedFactorBonus")) \ No newline at end of file + module.boostItemAttr("speedFactor", module.getModifiedItemAttr("overloadSpeedFactorBonus"), + stackingPenalties=True)