(mod, src, distance, tgtSigRadius)
| 255 | |
| 256 | |
| 257 | def 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 | |
| 270 | def getDroneMult(drone, src, tgt, atkSpeed, atkAngle, distance, tgtSpeed, tgtAngle, tgtSigRadius): |
no test coverage detected