(self, src, time)
| 79 | class 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) |
nothing calls this directly
no test coverage detected