MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / preAssign

Method preAssign

eos/modifiedAttributeDict.py:490–494  ·  view source on GitHub ↗

Overwrites original value of the entity with given one, allowing further modification

(self, attributeName, value, **kwargs)

Source from the content-addressed store, hash-verified

488 affs.append((modifier, operator, stackingGroup, preResAmount, postResAmount, used))
489
490 def preAssign(self, attributeName, value, **kwargs):
491 """Overwrites original value of the entity with given one, allowing further modification"""
492 self.__preAssigns[attributeName] = value
493 self.__placehold(attributeName)
494 self.__afflict(attributeName, Operator.PREASSIGN, None, value, value, value != self.getOriginal(attributeName))
495
496 def increase(self, attributeName, increase, position="pre", skill=None, **kwargs):
497 """Increase value of given attribute by given number"""

Callers 2

preAssignItemAttrMethod · 0.80
preAssignChargeAttrMethod · 0.80

Calls 3

__placeholdMethod · 0.95
__afflictMethod · 0.95
getOriginalMethod · 0.95

Tested by

no test coverage detected