MCPcopy
hub / github.com/pyfa-org/Pyfa / getDoomsdayMult

Function getDoomsdayMult

graphs/data/fitDamageStats/calc/application.py:222–235  ·  view source on GitHub ↗
(mod, tgt, distance, tgtSigRadius)

Source from the content-addressed store, hash-verified

220
221
222def getDoomsdayMult(mod, tgt, distance, tgtSigRadius):
223 modRange = mod.maxRange
224 # Single-target DDs have no range limit
225 if distance is not None and modRange and distance > modRange:
226 return 0
227 # Single-target titan DDs are vs capitals only
228 if {'superWeaponAmarr', 'superWeaponCaldari', 'superWeaponGallente', 'superWeaponMinmatar'}.intersection(mod.item.effects):
229 # Disallow only against subcaps, allow against caps and tgt profiles
230 if tgt.isFit and not tgt.item.ship.item.requiresSkill('Capital Ships'):
231 return 0
232 damageSig = mod.getModifiedItemAttr('signatureRadius')
233 if not damageSig:
234 return 1
235 return min(1, tgtSigRadius / damageSig)
236
237
238def getBombMult(mod, src, tgt, distance, tgtSigRadius):

Callers 1

getApplicationPerKeyFunction · 0.85

Calls 2

requiresSkillMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected