Merge pull request #5761 from MagicfTail/Yellow-boost

Add support for making the boost colour yellow if below boost threshold
This commit is contained in:
Tomas Slusny
2018-10-05 11:52:53 +02:00
committed by GitHub
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),
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

View File

@@ -127,12 +127,12 @@ class BoostsOverlay extends Overlay
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;
}
}