Penalize speed ganglinks against overheat on module itself (fixes #170)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user