diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2023-05-07 05:33:26 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-06 21:33:26 +0200 |
commit | 15ac449c0381fbd142748165c29fa538aeb2a5fa (patch) | |
tree | 01a33998f87d56902ca40f7aaaf3038ce822d24f /src | |
parent | fec41716f40ed43791fd37071b06e8516d207807 (diff) | |
download | skyhanni-15ac449c0381fbd142748165c29fa538aeb2a5fa.tar.gz skyhanni-15ac449c0381fbd142748165c29fa538aeb2a5fa.tar.bz2 skyhanni-15ac449c0381fbd142748165c29fa538aeb2a5fa.zip |
Added predicted socre to Jacob's menu (#87)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestFFNeededDisplay.kt | 7 |
1 files changed, 7 insertions, 0 deletions
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 { |