Skip to content

Commit

Permalink
Always return some value in mutators
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFenX committed Sep 10, 2020
1 parent 7bff295 commit 4efa9a6
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions eos/saveddata/mutator.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,24 @@ def maxMod(self):

@property
def baseValue(self):
return self.baseAttribute.value
try:
return self.baseAttribute.value
except AttributeError:
return 0

@property
def minValue(self):
return self.minMod * self.baseAttribute.value
try:
return self.minMod * self.baseAttribute.value
except AttributeError:
return 0

@property
def maxValue(self):
return self.maxMod * self.baseAttribute.value
try:
return self.maxMod * self.baseAttribute.value
except AttributeError:
return 0

@property
def attribute(self):
Expand Down

0 comments on commit 4efa9a6

Please sign in to comment.