(mod, tgt, distance, tgtSigRadius)
| 220 | |
| 221 | |
| 222 | def 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 | |
| 238 | def getBombMult(mod, src, tgt, distance, tgtSigRadius): |
no test coverage detected