diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/examine/ExaminePlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/examine/ExaminePlugin.java index 7e99735192..011d7a97cf 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/examine/ExaminePlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/examine/ExaminePlugin.java @@ -39,7 +39,6 @@ import net.runelite.api.ChatMessageType; import net.runelite.api.Client; import net.runelite.api.GameState; import net.runelite.api.ItemComposition; -import net.runelite.api.NPC; import net.runelite.api.widgets.Widget; import net.runelite.api.widgets.WidgetInfo; import net.runelite.api.widgets.WidgetItem; @@ -311,10 +310,8 @@ public class ExaminePlugin extends Plugin } int itemCompositionPrice = itemComposition.getPrice(); - final int gePrice = itemPrice == null ? 0 : itemPrice.getPrice() * quantity; - final int alchPrice = itemCompositionPrice <= 0 - ? 0 - : Math.round(itemCompositionPrice * HIGH_ALCHEMY_CONSTANT) * quantity; + final int gePrice = itemPrice == null ? 0 : itemPrice.getPrice(); + final int alchPrice = itemCompositionPrice <= 0 ? 0 : Math.round(itemCompositionPrice * HIGH_ALCHEMY_CONSTANT); if (gePrice > 0 || alchPrice > 0) { @@ -341,7 +338,18 @@ public class ExaminePlugin extends Plugin .append(ChatColorType.NORMAL) .append(" GE average ") .append(ChatColorType.HIGHLIGHT) - .append(String.format("%,d", gePrice)); + .append(String.format("%,d", gePrice * quantity)); + } + + if (quantity > 1) + { + message + .append(ChatColorType.NORMAL) + .append(" (") + .append(ChatColorType.HIGHLIGHT) + .append(Integer.toString(gePrice)) + .append(ChatColorType.NORMAL) + .append("ea)"); } if (alchPrice > 0) @@ -350,7 +358,18 @@ public class ExaminePlugin extends Plugin .append(ChatColorType.NORMAL) .append(" HA value ") .append(ChatColorType.HIGHLIGHT) - .append(String.format("%,d", alchPrice)); + .append(String.format("%,d", alchPrice * quantity)); + } + + if (quantity > 1) + { + message + .append(ChatColorType.NORMAL) + .append(" (") + .append(ChatColorType.HIGHLIGHT) + .append(Integer.toString(alchPrice)) + .append(ChatColorType.NORMAL) + .append("ea)"); } chatMessageManager.queue(ChatMessageType.EXAMINE_ITEM, message.build());