MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / maxRange

Method maxRange

eos/saveddata/fighter.py:311–323  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 2

getModifiedChargeAttrMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected