aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/garden
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-23 14:43:35 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-23 14:43:35 +0100
commit4f133a119ad4cb02f4ecb60d3bfb474879c75923 (patch)
treece976c2c1cd5a10395260d8c8f221b2868c19ef4 /src/main/java/at/hannibal2/skyhanni/features/garden
parent1c39d8406fb1fa956b793d766c14de84025cf4ab (diff)
downloadskyhanni-4f133a119ad4cb02f4ecb60d3bfb474879c75923.tar.gz
skyhanni-4f133a119ad4cb02f4ecb60d3bfb474879c75923.tar.bz2
skyhanni-4f133a119ad4cb02f4ecb60d3bfb474879c75923.zip
Added next crop milestone number to the best crop time display
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/GardenBestCropTime.kt8
1 files changed, 4 insertions, 4 deletions
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)