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

Method getCapRegenGainFromMod

eos/saveddata/fit.py:1535–1541  ·  view source on GitHub ↗

Return how much cap regen do we gain from having this module

(self, mod)

Source from the content-addressed store, hash-verified

1533 return None
1534
1535 def getCapRegenGainFromMod(self, mod):
1536 """Return how much cap regen do we gain from having this module"""
1537 currentRegen = self.calculateCapRecharge()
1538 nomodRegen = self.calculateCapRecharge(
1539 capacity=self.ship.getModifiedItemAttrExtended("capacitorCapacity", ignoreAfflictors=[mod]),
1540 rechargeRate=self.ship.getModifiedItemAttrExtended("rechargeRate", ignoreAfflictors=[mod]) / 1000.0)
1541 return currentRegen - nomodRegen
1542
1543 def getRemoteReps(self, spoolOptions=None):
1544 if spoolOptions not in self.__remoteRepMap:

Callers 1

getTextMethod · 0.80

Calls 2

calculateCapRechargeMethod · 0.95

Tested by

no test coverage detected