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

Function getBreacherMult

graphs/data/fitDamageStats/calc/application.py:198–210  ·  view source on GitHub ↗
(mod, distance)

Source from the content-addressed store, hash-verified

196
197
198def getBreacherMult(mod, distance):
199 missileMaxRangeData = mod.missileMaxRangeData
200 if missileMaxRangeData is None:
201 return 0
202 # The ranges already consider ship radius
203 lowerRange, higherRange, higherChance = missileMaxRangeData
204 if distance is None or distance <= lowerRange:
205 distanceFactor = 1
206 elif lowerRange < distance <= higherRange:
207 distanceFactor = higherChance
208 else:
209 distanceFactor = 0
210 return distanceFactor
211
212
213def getSmartbombMult(mod, distance):

Callers 1

getApplicationPerKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected