Merge pull request #14074 from Hydrox6/loot-tracker-ea
This commit is contained in:
@@ -50,6 +50,7 @@ import javax.swing.SwingConstants;
|
||||
import javax.swing.border.EmptyBorder;
|
||||
import lombok.AccessLevel;
|
||||
import lombok.Getter;
|
||||
import net.runelite.api.ItemID;
|
||||
import net.runelite.client.game.ItemManager;
|
||||
import net.runelite.client.ui.ColorScheme;
|
||||
import net.runelite.client.ui.FontManager;
|
||||
@@ -375,8 +376,32 @@ class LootTrackerBox extends JPanel
|
||||
final long gePrice = item.getTotalGePrice();
|
||||
final long haPrice = item.getTotalHaPrice();
|
||||
final String ignoredLabel = item.isIgnored() ? " - Ignored" : "";
|
||||
return "<html>" + name + " x " + quantity + ignoredLabel
|
||||
+ "<br>GE: " + QuantityFormatter.quantityToStackSize(gePrice)
|
||||
+ "<br>HA: " + QuantityFormatter.quantityToStackSize(haPrice) + "</html>";
|
||||
final StringBuilder sb = new StringBuilder("<html>");
|
||||
sb.append(name).append(" x ").append(QuantityFormatter.formatNumber(quantity)).append(ignoredLabel);
|
||||
if (item.getId() == ItemID.COINS_995)
|
||||
{
|
||||
sb.append("</html>");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
sb.append("<br>GE: ").append(QuantityFormatter.quantityToStackSize(gePrice));
|
||||
if (quantity > 1)
|
||||
{
|
||||
sb.append(" (").append(QuantityFormatter.quantityToStackSize(item.getGePrice())).append(" ea)");
|
||||
}
|
||||
|
||||
if (item.getId() == ItemID.PLATINUM_TOKEN)
|
||||
{
|
||||
sb.append("</html>");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
sb.append("<br>HA: ").append(QuantityFormatter.quantityToStackSize(haPrice));
|
||||
if (quantity > 1)
|
||||
{
|
||||
sb.append(" (").append(QuantityFormatter.quantityToStackSize(item.getHaPrice())).append(" ea)");
|
||||
}
|
||||
sb.append("</html>");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user