Skip to content

Commit

Permalink
Modify applied cap drain based on ship's cap resistance
Browse files Browse the repository at this point in the history
  • Loading branch information
blitzmann committed Mar 8, 2016
1 parent 68a6a82 commit 627dac6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eos/saveddata/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,8 @@ def calculateShieldRecharge(self, percent = PEAK_RECHARGE):
return 10 / rechargeRate * sqrt(percent) * (1 - sqrt(percent)) * capacity

def addDrain(self, cycleTime, capNeed, clipSize=0):
self.__extraDrains.append((cycleTime, capNeed, clipSize))
resistance = self.ship.getModifiedItemAttr("energyWarfareResistance") or 1
self.__extraDrains.append((cycleTime, capNeed * resistance, clipSize))

def removeDrain(self, i):
del self.__extraDrains[i]
Expand Down

0 comments on commit 627dac6

Please sign in to comment.