XpInfoBox - Remove min/max experience check (#3397)

Because of level goals, the min/max experience check can be overflown pretty easily and so is no longer necessary.
This commit is contained in:
Lars
2018-05-28 10:40:19 +02:00
committed by Tomas Slusny
parent a45ff3cecb
commit 794ead0007

View File

@@ -208,16 +208,7 @@ class XpInfoBox extends JPanel
public static String htmlLabel(String key, int value)
{
String valueStr = value + "";
if (value > 9999999 || value < -9999999)
{
valueStr = "Lots!";
}
else
{
valueStr = StackFormatter.quantityToRSDecimalStack(value);
}
String valueStr = StackFormatter.quantityToRSDecimalStack(value);
return "<html><body style = 'color:" + SwingUtil.toHexColor(ColorScheme.LIGHT_GRAY_COLOR) + "'>" + key + "<span style = 'color:white'>" + valueStr + "</span></body></html>";
}