Add support for making the boost colour yellow if below boost threshold

This commit is contained in:
Magic fTail
2018-10-02 15:49:12 +02:00
parent 14e0c28e10
commit 1404a82674
2 changed files with 6 additions and 6 deletions

View File

@@ -76,12 +76,12 @@ public class BoostIndicator extends InfoBox
int boosted = client.getBoostedSkillLevel(skill), int boosted = client.getBoostedSkillLevel(skill),
base = client.getRealSkillLevel(skill); base = client.getRealSkillLevel(skill);
if (boosted > base) if (boosted < base)
{ {
return Color.GREEN; return new Color(238, 51, 51);
} }
return new Color(238, 51, 51); return boosted - base < config.boostThreshold() ? Color.YELLOW : Color.GREEN;
} }
@Override @Override

View File

@@ -127,12 +127,12 @@ class BoostsOverlay extends Overlay
private Color getTextColor(int boost) private Color getTextColor(int boost)
{ {
if (boost > 0) if (boost < 0)
{ {
return Color.GREEN; return new Color(238, 51, 51);
} }
return new Color(238, 51, 51); return boost < config.boostThreshold() ? Color.YELLOW : Color.GREEN;
} }
} }