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

Function getGuidedBombMult

graphs/data/fitDamageStats/calc/application.py:257–267  ·  view source on GitHub ↗
(mod, src, distance, tgtSigRadius)

Source from the content-addressed store, hash-verified

255
256
257def getGuidedBombMult(mod, src, distance, tgtSigRadius):
258 modRange = mod.maxRange
259 if modRange is None:
260 return 0
261 if distance is not None and distance > modRange - src.getRadius():
262 return 0
263 eR = mod.getModifiedChargeAttr('aoeCloudSize')
264 if eR == 0:
265 return 1
266 else:
267 return min(1, tgtSigRadius / eR)
268
269
270def getDroneMult(drone, src, tgt, atkSpeed, atkAngle, distance, tgtSpeed, tgtAngle, tgtSigRadius):

Callers 1

getApplicationPerKeyFunction · 0.85

Calls 2

getRadiusMethod · 0.80
getModifiedChargeAttrMethod · 0.80

Tested by

no test coverage detected