From 2d96af9fc832cf08dc41c981f49925bd788f64ec Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Wed, 21 Aug 2019 11:36:24 +0300 Subject: [PATCH] Use regular getter when no modifications needed --- eos/modifiedAttributeDict.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eos/modifiedAttributeDict.py b/eos/modifiedAttributeDict.py index 7a0821559..04015405f 100644 --- a/eos/modifiedAttributeDict.py +++ b/eos/modifiedAttributeDict.py @@ -243,6 +243,9 @@ class ModifiedAttributeDict(collections.MutableMapping): elif operator == Operator.POSTINCREASE: postIncreaseAdjustment -= postResAmount + if preIncreaseAdjustment == 0 and multiplierAdjustment == 1 and postIncreaseAdjustment == 0 and len(ignorePenalizedMultipliers) == 0: + return self.get(key, default=default) + val = self.__calculateValue( key, preIncAdj=preIncreaseAdjustment, multAdj=multiplierAdjustment, postIncAdj=postIncreaseAdjustment, ignorePenMult=ignorePenalizedMultipliers)