From ee9cef814b12de60cc25763232c631f6ab5af4cc Mon Sep 17 00:00:00 2001 From: Lorenz Date: Fri, 29 Jul 2022 17:15:30 +0200 Subject: using average item price instead of lowest bin --- .../notenoughupdates/miscgui/minionhelper/MinionHelperManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/io') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/MinionHelperManager.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/MinionHelperManager.java index d7bb0e1e..5bbdf090 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/MinionHelperManager.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/MinionHelperManager.java @@ -173,7 +173,7 @@ public class MinionHelperManager { upgradeCost += calculateUpgradeCosts(getMinionById(internalName).getMinionSource(), false); } else { if (!cheapItems.contains(internalName)) { - long lowestBin = NotEnoughUpdates.INSTANCE.manager.auctionManager.getLowestBin(internalName); + double lowestBin = NotEnoughUpdates.INSTANCE.manager.auctionManager.getItemAvgBin(internalName); upgradeCost += lowestBin * amount; } } @@ -242,8 +242,8 @@ public class MinionHelperManager { int has = highestCollectionTier.get(internalName); return has >= need; - } else { - Utils.addChatMessage("§cInvalid hypixel collection name: '" + internalName + "'"); +// } else { +// Utils.addChatMessage("§cInvalid hypixel collection name: '" + internalName + "'"); } } else if (requirement instanceof SlayerRequirement) { -- cgit