From 15ac449c0381fbd142748165c29fa538aeb2a5fa Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Sun, 7 May 2023 05:33:26 +1000 Subject: Added predicted socre to Jacob's menu (#87) --- .../features/garden/contest/JacobContestFFNeededDisplay.kt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestFFNeededDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestFFNeededDisplay.kt index 84ae1048c..e7b356b63 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestFFNeededDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestFFNeededDisplay.kt @@ -88,6 +88,13 @@ class JacobContestFFNeededDisplay { val farmingFortune = formatFarmingFortune(trueFF) add(listOf("§6Your ", crop.icon, "§6FF: $farmingFortune")) } + addAsSingletonList("") + if (blocksPerSecond == null || trueFF == null) { + add(listOf("§cMissing data from above!")) + } else { + val predictedScore = (trueFF * blocksPerSecond * crop.baseDrops * 20 * 60 / 100).toInt().addSeparators() + add(listOf("§6Predicted ", crop.icon, "§6crops: $predictedScore")) + } } private fun formatFarmingFortune(farmingFortune: Double): String { -- cgit