aboutsummaryrefslogtreecommitdiff
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
commita0c05389081dbdabf401a6b982b6a9736cdb5fa6 (patch)
treece976c2c1cd5a10395260d8c8f221b2868c19ef4
parente31dfa88f21e51051f5943fc3326b0ebd89d9caa (diff)
downloadSkyHanni-a0c05389081dbdabf401a6b982b6a9736cdb5fa6.tar.gz
SkyHanni-a0c05389081dbdabf401a6b982b6a9736cdb5fa6.tar.bz2
SkyHanni-a0c05389081dbdabf401a6b982b6a9736cdb5fa6.zip
Added next crop milestone number to the best crop time display
-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)