From 9a105f19e373ee6a4e64ace394107b4395e05529 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 1 Aug 2023 00:22:46 +0200 Subject: Fixed wrong crop money calculation with mushroom cow pet when in no trade mode --- .../at/hannibal2/skyhanni/features/garden/farming/CropMoneyDisplay.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/CropMoneyDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/CropMoneyDisplay.kt index f39826a9a..f72bf42cc 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/CropMoneyDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/CropMoneyDisplay.kt @@ -111,8 +111,8 @@ object CropMoneyDisplay { if (GardenAPI.mushroomCowPet && it != CropType.MUSHROOM) { val (redPrice, brownPrice) = if (LorenzUtils.noTradeMode) { - val redPrice = BazaarApi.getBazaarDataByInternalName("ENCHANTED_RED_MUSHROOM")?.npcPrice ?: 160.0 / 160 - val brownPrice = BazaarApi.getBazaarDataByInternalName("ENCHANTED_BROWN_MUSHROOM")?.npcPrice ?: 160.0 / 160 + val redPrice = (BazaarApi.getBazaarDataByInternalName("ENCHANTED_RED_MUSHROOM")?.npcPrice ?: 160.0) / 160 + val brownPrice = (BazaarApi.getBazaarDataByInternalName("ENCHANTED_BROWN_MUSHROOM")?.npcPrice ?: 160.0) / 160 redPrice to brownPrice } else { val redPrice = NEUItems.getPrice("ENCHANTED_RED_MUSHROOM") / 160 -- cgit