From 4f133a119ad4cb02f4ecb60d3bfb474879c75923 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 23 Mar 2023 14:43:35 +0100 Subject: Added next crop milestone number to the best crop time display --- .../at/hannibal2/skyhanni/features/garden/GardenBestCropTime.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenBestCropTime.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenBestCropTime.kt index 949c00204..976994070 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenBestCropTime.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenBestCropTime.kt @@ -52,13 +52,13 @@ class GardenBestCropTime { val color = if (isCurrent) "§e" else "§7" val contestFormat = if (GardenNextJacobContest.isNextCrop(crop)) "§n" else "" - val cropNameDisplay = "$color$contestFormat${crop.cropName}§r" + val crops = GardenCropMilestones.cropCounter[crop]!! + val nextTier = GardenCropMilestones.getTierForCrops(crops) + 1 + val cropNameDisplay = "$color$contestFormat${crop.cropName} $nextTier§r" list.add("$cropNameDisplay §b$duration") if (gardenExp) { - val crops = GardenCropMilestones.cropCounter[crop]!! - val currentTier = GardenCropMilestones.getTierForCrops(crops) - val gardenExpForTier = getGardenExpForTier(currentTier + 1) + val gardenExpForTier = getGardenExpForTier(nextTier) list.add(" §7(§2$gardenExpForTier §7Exp)") } display.add(list) -- cgit