From 35ff8ea7bcaa45f535e363ca4c002bef192009c9 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 19 Mar 2023 20:34:09 +0100 Subject: Added crop icon to best crop time display --- .../skyhanni/features/garden/GardenBestCropTime.kt | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/main') 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 6bbe18953..280e4c462 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenBestCropTime.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenBestCropTime.kt @@ -46,17 +46,22 @@ class GardenBestCropTime { number++ if (number > config.cropMilestoneShowOnlyBest && !isCurrent) continue + val list = mutableListOf() + list.add("§7$number# ") + GardenAPI.addGardenCropToList(cropName, list) + val color = if (isCurrent) "§e" else "" val contestFormat = if (GardenNextJacobContest.isNextCrop(cropName)) "§n" else "" - val cropNameDisplay = "§7$number# $color$contestFormat$cropName§r" + val cropNameDisplay = "$color$contestFormat$cropName§r" + list.add("$cropNameDisplay §b$duration") + if (gardenExp) { val crops = GardenCropMilestones.cropCounter[cropName]!! val currentTier = GardenCropMilestones.getTierForCrops(crops) val gardenExpForTier = getGardenExpForTier(currentTier + 1) - display.add(Collections.singletonList("$cropNameDisplay §b$duration §7(§2$gardenExpForTier §7Exp)")) - } else { - display.add(Collections.singletonList("$cropNameDisplay §b$duration")) + list.add(" §7(§2$gardenExpForTier §7Exp)") } + display.add(list) } } -- cgit