From 59bb9670b67cb05f724fee99c957dbedc6802138 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Thu, 25 Mar 2021 12:49:50 +0300 Subject: [PATCH] Multiple fixes related to sig suppressor --- eos/effects.py | 2 +- eos/saveddata/drone.py | 2 +- eos/saveddata/module.py | 1 + gui/fitCommands/helpers.py | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/eos/effects.py b/eos/effects.py index 3664372f4..8ddcff221 100644 --- a/eos/effects.py +++ b/eos/effects.py @@ -37378,7 +37378,7 @@ class Effect8108(BaseEffect): Module: Signature Radius Suppressor I """ - type = 'passive' + type = 'offline' @staticmethod def handler(fit, src, context, projectionRange, **kwargs): diff --git a/eos/saveddata/drone.py b/eos/saveddata/drone.py index 7c54b7920..a5cbe1945 100644 --- a/eos/saveddata/drone.py +++ b/eos/saveddata/drone.py @@ -111,7 +111,7 @@ class Drone(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut): if self.hasAmmo: cycleTime = self.getModifiedItemAttr("missileLaunchDuration", 0) else: - for attr in ("speed", "duration"): + for attr in ("speed", "duration", "durationHighisGood"): cycleTime = self.getModifiedItemAttr(attr, None) if cycleTime is not None: break diff --git a/eos/saveddata/module.py b/eos/saveddata/module.py index a22fb808a..e282e687f 100644 --- a/eos/saveddata/module.py +++ b/eos/saveddata/module.py @@ -1021,6 +1021,7 @@ class Module(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut): speed = max( self.getModifiedItemAttr("speed", 0), # Most weapons self.getModifiedItemAttr("duration", 0), # Most average modules + self.getModifiedItemAttr("durationHighisGood", 0), # Most average modules self.getModifiedItemAttr("durationSensorDampeningBurstProjector", 0), self.getModifiedItemAttr("durationTargetIlluminationBurstProjector", 0), self.getModifiedItemAttr("durationECMJammerBurstProjector", 0), diff --git a/gui/fitCommands/helpers.py b/gui/fitCommands/helpers.py index 464e3bf0e..23f49281d 100644 --- a/gui/fitCommands/helpers.py +++ b/gui/fitCommands/helpers.py @@ -325,7 +325,7 @@ def activeStateLimit(itemIdentity): 'cynosuralGeneration', 'jumpPortalGeneration', 'jumpPortalGenerationBO', 'cloneJumpAccepting', 'cloakingWarpSafe', 'cloakingPrototype', 'cloaking', 'massEntanglerEffect5', 'electronicAttributeModifyOnline', 'targetPassively', - 'cargoScan', 'shipScan', 'surveyScan' + 'cargoScan', 'shipScan', 'surveyScan', 'targetSpectrumBreakerBonus' }.intersection(item.effects): return FittingModuleState.ONLINE return FittingModuleState.ACTIVE