Swap extra cap stats readout

This commit is contained in:
DarkPhoenix
2019-06-06 17:20:05 +03:00
parent 1a3a656879
commit e8f09514ab
2 changed files with 23 additions and 24 deletions

View File

@@ -1167,6 +1167,10 @@ class Fit(object):
return self.__capRecharge
@property
def capDelta(self):
return (self.__capRecharge or 0) - (self.__capUsed or 0)
def calculateCapRecharge(self, percent=PEAK_RECHARGE):
capacity = self.ship.getModifiedItemAttr("capacitorCapacity")
rechargeRate = self.ship.getModifiedItemAttr("rechargeRate") / 1000.0