From 2d05e43d0cac6221f932da92e6fed4db11da244a Mon Sep 17 00:00:00 2001 From: heyngra Date: Tue, 27 Jun 2023 10:32:38 +0200 Subject: Change kismet in dungeon profits to bazaar (#737) --- .../io/github/moulberry/notenoughupdates/listener/RenderListener.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java b/src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java index a31e54c4..f355d5d7 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java @@ -777,7 +777,8 @@ public class RenderListener { } } } - double kismetPrice = neu.manager.auctionManager.getLowestBin("KISMET_FEATHER"); + JsonObject kismetBazaar = neu.manager.auctionManager.getBazaarInfo("KISMET_FEATHER"); + double kismetPrice = (kismetBazaar != null && kismetBazaar.has("curr_buy")) ? kismetBazaar.get("curr_buy").getAsFloat() : 0; String kismetStr = EnumChatFormatting.RED + formatCoins(kismetPrice) + " coins"; if (neu.config.dungeons.useKismetOnDungeonProfit) profitLossBIN = kismetUsed ? profitLossBIN - kismetPrice : profitLossBIN; -- cgit