MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / __init__

Method __init__

eos/modifiedAttributeDict.py:108–136  ·  view source on GitHub ↗
(self, fit=None, parent=None)

Source from the content-addressed store, hash-verified

106 pass
107
108 def __init__(self, fit=None, parent=None):
109 self.__fit = fit
110 self.parent = parent
111 # Stores original values of the entity
112 self.__original = None
113 # Modified values during calculations
114 self.__intermediary = {}
115 # Final modified values
116 self.__modified = {}
117 # Affected by entities
118 # Format:
119 # {attr name: {modifying fit: (
120 # modifying item, operation, stacking group, pre-resist amount,
121 # post-resist amount, affects result or not)}}
122 self.__affectedBy = {}
123 # Overrides (per item)
124 self.__overrides = {}
125 # Mutators (per module)
126 self.__mutators = {}
127 # Dictionaries for various value modification types
128 self.__forced = {}
129 self.__preAssigns = {}
130 self.__preIncreases = {}
131 self.__multipliers = {}
132 self.__penalizedMultipliers = {}
133 self.__postIncreases = {}
134 # We sometimes override the modifier (for things like skill handling). Store it here instead of registering it
135 # with the fit (which could cause bug for items that have both item bonuses and skill bonus, ie Subsystems)
136 self.__tmpModifier = None
137
138 def clear(self):
139 self.__intermediary.clear()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected