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

Function _calcMissileFactor

graphs/data/fitDamageStats/calc/application.py:415–425  ·  view source on GitHub ↗

Missile application.

(atkEr, atkEv, atkDrf, tgtSpeed, tgtSigRadius)

Source from the content-addressed store, hash-verified

413# Missile-specific math
414@lru_cache(maxsize=200)
415def _calcMissileFactor(atkEr, atkEv, atkDrf, tgtSpeed, tgtSigRadius):
416 """Missile application."""
417 factors = [1]
418 # "Slow" part
419 if atkEr > 0:
420 factors.append(tgtSigRadius / atkEr)
421 # "Fast" part
422 if tgtSpeed > 0:
423 factors.append(((atkEv * tgtSigRadius) / (atkEr * tgtSpeed)) ** atkDrf)
424 totalMult = min(factors)
425 return totalMult
426
427
428def _calcAggregatedDrf(reductionFactor, reductionSensitivity):

Callers 4

_missileApplicationFunction · 0.90
getVortonMultFunction · 0.85
getLauncherMultFunction · 0.85
getFighterAbilityMultFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected