(self)
| 309 | |
| 310 | @property |
| 311 | def maxRange(self): |
| 312 | attrs = ("shieldTransferRange", "powerTransferRange", |
| 313 | "energyDestabilizationRange", "empFieldRange", |
| 314 | "ecmBurstRange", "maxRange") |
| 315 | for attr in attrs: |
| 316 | maxRange = self.getModifiedItemAttr(attr, None) |
| 317 | if maxRange is not None: |
| 318 | return maxRange |
| 319 | if self.charge is not None: |
| 320 | delay = self.getModifiedChargeAttr("explosionDelay", None) |
| 321 | speed = self.getModifiedChargeAttr("maxVelocity", None) |
| 322 | if delay is not None and speed is not None: |
| 323 | return delay / 1000.0 * speed |
| 324 | |
| 325 | # Had to add this to match the falloff property in modules.py |
| 326 | # Fscking ship scanners. If you find any other falloff attributes, |
nothing calls this directly
no test coverage detected