From be5d92abdeeaa03cd201065b46e90a843f1663ba Mon Sep 17 00:00:00 2001 From: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> Date: Wed, 5 Apr 2023 04:09:09 +1000 Subject: Fixed craft cost on items that cant be sold like minions (#665) * Fixed craft cost on items that cant be sold (minions) * add config option --- .../github/moulberry/notenoughupdates/ItemPriceInformation.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java b/src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java index c46b7bb1..537ba270 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java @@ -365,6 +365,15 @@ public class ItemPriceInformation { } } + } else if (NotEnoughUpdates.INSTANCE.config.tooltipTweaks.rawCraft && craftCost != null && craftCost.fromRecipe) { + + if (craftCost.craftCost == 0) return; + double cost = craftCost.craftCost; + int shiftStackMultiplier = useStackSize && stack.stackSize > 1 ? stack.stackSize : 64; + if (Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) cost = cost * shiftStackMultiplier; + tooltip.add(""); + tooltip.add(formatPrice("Raw Craft Cost: ", cost)); + } else if (auctionInfoErrored && NotEnoughUpdates.INSTANCE.hasSkyblockScoreboard()) { String message = EnumChatFormatting.RED.toString() + EnumChatFormatting.BOLD + "[NEU] API is down"; if (auctionableItems != null && !auctionableItems.isEmpty()) { -- cgit