Penalize speed ganglinks against overheat on module itself (fixes #170)

This commit is contained in:
DarkPhoenix
2014-11-06 23:17:44 +03:00
parent c28e52f2d1
commit 98cac2a0da
2 changed files with 3 additions and 2 deletions

View File

@@ -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)

View File

@@ -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"))
module.boostItemAttr("speedFactor", module.getModifiedItemAttr("overloadSpeedFactorBonus"),
stackingPenalties=True)