Fix several bugs related to siege mod rep cycle time mutations

This commit is contained in:
DarkPhoenix
2020-09-16 16:16:44 +03:00
parent 5cf555b8ce
commit 7af28b497c
2 changed files with 4 additions and 6 deletions

View File

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

View File

@@ -89,6 +89,7 @@ class ItemMutatorList(wx.ScrolledWindow):
higOverrides = {
('Stasis Web', 'speedFactor'): False,
('Damage Control', 'duration'): True,
('Siege Module', 'siegeLocalLogisticsDurationBonus'): False
}
first = True