From 7af28b497c408c05c3199572110a82f5e8a0c059 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Wed, 16 Sep 2020 16:16:44 +0300 Subject: [PATCH] Fix several bugs related to siege mod rep cycle time mutations --- eos/saveddata/mutator.py | 9 +++------ gui/builtinItemStatsViews/itemMutator.py | 1 + 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/eos/saveddata/mutator.py b/eos/saveddata/mutator.py index e21135dee..ee1b116c2 100644 --- a/eos/saveddata/mutator.py +++ b/eos/saveddata/mutator.py @@ -89,12 +89,9 @@ class Mutator(EqBase): # sweet, all good returnVal = val else: - # need to fudge the numbers a bit. Go with the value closest to base - if val >= 0: - returnVal = min(self.maxValue, max(self.minValue, val)) - else: - returnVal = max(self.maxValue, min(self.minValue, val)) - + actualMin = min(self.minValue, self.maxValue) + actualMax = max(self.minValue, self.maxValue) + returnVal = min(actualMax, max(actualMin, val)) return returnVal @property diff --git a/gui/builtinItemStatsViews/itemMutator.py b/gui/builtinItemStatsViews/itemMutator.py index ce5d366c7..1796f103c 100644 --- a/gui/builtinItemStatsViews/itemMutator.py +++ b/gui/builtinItemStatsViews/itemMutator.py @@ -89,6 +89,7 @@ class ItemMutatorList(wx.ScrolledWindow): higOverrides = { ('Stasis Web', 'speedFactor'): False, ('Damage Control', 'duration'): True, + ('Siege Module', 'siegeLocalLogisticsDurationBonus'): False } first = True