Skip to content

Commit

Permalink
Fix several bugs related to siege mod rep cycle time mutations
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFenX committed Sep 16, 2020
1 parent 5cf555b commit 7af28b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 3 additions & 6 deletions eos/saveddata/mutator.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,9 @@ def validator(self, key, val):
# 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
Expand Down
1 change: 1 addition & 0 deletions gui/builtinItemStatsViews/itemMutator.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def __init__(self, parent, mod):
higOverrides = {
('Stasis Web', 'speedFactor'): False,
('Damage Control', 'duration'): True,
('Siege Module', 'siegeLocalLogisticsDurationBonus'): False
}

first = True
Expand Down

0 comments on commit 7af28b4

Please sign in to comment.