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

Method _getDamagePerKey

graphs/data/fitDamageStats/getter.py:81–101  ·  view source on GitHub ↗
(self, src, time)

Source from the content-addressed store, hash-verified

79class YVolleyMixin:
80
81 def _getDamagePerKey(self, src, time):
82 # Use data from time cache if time was not specified
83 if time is not None:
84 return self._getTimeCacheDataPoint(src=src, time=time)
85 # Compose map ourselves using current fit settings if time is not specified
86 volleyMap = {}
87 defaultSpoolValue = eos.config.settings['globalDefaultSpoolupPercentage']
88 for mod in src.item.activeModulesIter():
89 if not mod.isDealingDamage():
90 continue
91 volleyMap[mod] = mod.getVolley(spoolOptions=SpoolOptions(SpoolType.SPOOL_SCALE, defaultSpoolValue, False))
92 for drone in src.item.activeDronesIter():
93 if not drone.isDealingDamage():
94 continue
95 volleyMap[drone] = drone.getVolley()
96 for fighter in src.item.activeFightersIter():
97 if not fighter.isDealingDamage():
98 continue
99 for effectID, effectVolley in fighter.getVolleyPerEffect().items():
100 volleyMap[(fighter, effectID)] = effectVolley
101 return volleyMap
102
103 def _prepareTimeCache(self, src, maxTime):
104 self.graph._timeCache.prepareVolleyData(src=src, maxTime=maxTime)

Callers

nothing calls this directly

Calls 8

activeModulesIterMethod · 0.80
activeDronesIterMethod · 0.80
activeFightersIterMethod · 0.80
itemsMethod · 0.80
getVolleyPerEffectMethod · 0.80
isDealingDamageMethod · 0.45
getVolleyMethod · 0.45

Tested by

no test coverage detected