Merge pull request #7606 from deathbeam/show-xp-target-only-if-larget
Show xp globe goal only if goal > current xp
This commit is contained in:
@@ -175,6 +175,11 @@ public class XpGlobesOverlay extends Overlay
|
|||||||
|
|
||||||
private void drawProgressLabel(Graphics2D graphics, XpGlobe globe, int startXp, int goalXp, int x, int y)
|
private void drawProgressLabel(Graphics2D graphics, XpGlobe globe, int startXp, int goalXp, int x, int y)
|
||||||
{
|
{
|
||||||
|
if (goalXp <= globe.getCurrentXp())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Convert to int just to limit the decimal cases
|
// Convert to int just to limit the decimal cases
|
||||||
String progress = (int) (getSkillProgress(startXp, globe.getCurrentXp(), goalXp)) + "%";
|
String progress = (int) (getSkillProgress(startXp, globe.getCurrentXp(), goalXp)) + "%";
|
||||||
|
|
||||||
@@ -254,7 +259,7 @@ public class XpGlobesOverlay extends Overlay
|
|||||||
.right(skillCurrentXp)
|
.right(skillCurrentXp)
|
||||||
.build());
|
.build());
|
||||||
|
|
||||||
if (goalXp != -1)
|
if (goalXp > mouseOverSkill.getCurrentXp())
|
||||||
{
|
{
|
||||||
XpActionType xpActionType = xpTrackerService.getActionType(mouseOverSkill.getSkill());
|
XpActionType xpActionType = xpTrackerService.getActionType(mouseOverSkill.getSkill());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user