Rename cap graph

This commit is contained in:
DarkPhoenix
2019-06-29 00:28:24 +03:00
parent eff0510092
commit 24494e9b29
2 changed files with 4 additions and 5 deletions

View File

@@ -4,8 +4,7 @@ from gui.builtinGraphs import ( # noqa: E402,F401
# fitDmgVsTime,
# fitShieldRegenVsShieldPerc,
# fitShieldAmountVsTime,
fitCap,
# fitCapAmountVsTime,
fitCapRegen,
fitMobility,
fitWarpTime
)

View File

@@ -23,9 +23,9 @@ import math
from .base import FitGraph, XDef, YDef, Input
class FitCapAmountVsTimeGraph(FitGraph):
class FitCapRegenGraph(FitGraph):
name = 'Capacitor'
name = 'Capacitor Regeneration'
# UI stuff
@property
@@ -117,4 +117,4 @@ def calculateCapRegen(maxCapAmount, capRegenTime, currentCapAmount):
return 10 * maxCapAmount / capRegenTime * (math.sqrt(currentCapAmount / maxCapAmount) - currentCapAmount / maxCapAmount)
FitCapAmountVsTimeGraph.register()
FitCapRegenGraph.register()