Fix access levels in XpStateSingle

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-05-21 10:21:31 +02:00
parent 284623b4f6
commit f66c261935

View File

@@ -53,7 +53,7 @@ class XpStateSingle
return toHourly(xpGained); return toHourly(xpGained);
} }
int getActionsHr() private int getActionsHr()
{ {
return toHourly(actions); return toHourly(actions);
} }
@@ -82,12 +82,12 @@ class XpStateSingle
return Math.max(60, Duration.between(skillTimeStart, Instant.now()).getSeconds()); return Math.max(60, Duration.between(skillTimeStart, Instant.now()).getSeconds());
} }
int getXpRemaining() private int getXpRemaining()
{ {
return nextLevelExp - (startXp + xpGained); return nextLevelExp - (startXp + xpGained);
} }
int getActionsRemaining() private int getActionsRemaining()
{ {
if (actionsHistoryInitialized) if (actionsHistoryInitialized)
{ {
@@ -112,7 +112,7 @@ class XpStateSingle
return Integer.MAX_VALUE; return Integer.MAX_VALUE;
} }
int getSkillProgress() private int getSkillProgress()
{ {
int currentXp = startXp + xpGained; int currentXp = startXp + xpGained;
@@ -121,7 +121,7 @@ class XpStateSingle
return (int) ((xpGained / xpGoal) * 100); return (int) ((xpGained / xpGoal) * 100);
} }
String getTimeTillLevel() private String getTimeTillLevel()
{ {
long seconds = getTimeElapsedInSeconds(); long seconds = getTimeElapsedInSeconds();