diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-19 20:34:09 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-19 20:34:09 +0100 |
commit | 35ff8ea7bcaa45f535e363ca4c002bef192009c9 (patch) | |
tree | c77d99b7c6a4d117d98595a63087a13242e66188 /src/main/java/at/hannibal2/skyhanni/features/garden | |
parent | edd6c15ef2bb9ec8d0ed47a1a5dacbe72f78c053 (diff) | |
download | skyhanni-35ff8ea7bcaa45f535e363ca4c002bef192009c9.tar.gz skyhanni-35ff8ea7bcaa45f535e363ca4c002bef192009c9.tar.bz2 skyhanni-35ff8ea7bcaa45f535e363ca4c002bef192009c9.zip |
Added crop icon to 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.kt | 13 |
1 files changed, 9 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 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<Any>() + 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) } } |