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

Function getAttrDefault

eos/modifiedAttributeDict.py:37–48  ·  view source on GitHub ↗
(key, fallback=None)

Source from the content-addressed store, hash-verified

35
36
37def getAttrDefault(key, fallback=None):
38 try:
39 default = defaultValuesCache[key]
40 except KeyError:
41 attrInfo = getAttributeInfo(key)
42 if attrInfo is None:
43 default = defaultValuesCache[key] = None
44 else:
45 default = defaultValuesCache[key] = attrInfo.defaultValue
46 if default is None:
47 default = fallback
48 return default
49
50
51def getResistanceAttrID(modifyingItem, effect):

Callers 2

getOriginalMethod · 0.85
__calculateValueMethod · 0.85

Calls 1

getAttributeInfoFunction · 0.90

Tested by

no test coverage detected