diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-01 00:22:46 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-01 00:22:46 +0200 |
commit | 9a105f19e373ee6a4e64ace394107b4395e05529 (patch) | |
tree | 5b6d4c9c87fa6d3450dce6e22dd13aaa0ce6837a /src | |
parent | fa67b7f82011f8fc4b07c0f913e2c0a968ff7055 (diff) | |
download | skyhanni-9a105f19e373ee6a4e64ace394107b4395e05529.tar.gz skyhanni-9a105f19e373ee6a4e64ace394107b4395e05529.tar.bz2 skyhanni-9a105f19e373ee6a4e64ace394107b4395e05529.zip |
Fixed wrong crop money calculation with mushroom cow pet when in no trade mode
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/farming/CropMoneyDisplay.kt | 4 |
1 files changed, 2 insertions, 2 deletions
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 |