aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralexia <me@alexia.lol>2024-01-02 22:43:06 +0100
committerGitHub <noreply@github.com>2024-01-02 22:43:06 +0100
commite44ac393a54019a26d55fa509d84c9ccba0114bf (patch)
treefff73a216e6a126b97c3dc254cf7e333f1f8d598
parentb358279bc719d899600faed9e9a59141dc89c203 (diff)
downloadskyhanni-e44ac393a54019a26d55fa509d84c9ccba0114bf.tar.gz
skyhanni-e44ac393a54019a26d55fa509d84c9ccba0114bf.tar.bz2
skyhanni-e44ac393a54019a26d55fa509d84c9ccba0114bf.zip
Don't count Bountiful as max reforge fortune on tools (#870)
Don't count Bountiful as max reforge fortune on tools. #870
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/FFStats.kt32
1 files changed, 5 insertions, 27 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/FFStats.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/FFStats.kt
index caa5d0830..fdef21a09 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/FFStats.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/FFStats.kt
@@ -15,8 +15,6 @@ import net.minecraft.item.ItemStack
import kotlin.math.floor
object FFStats {
- private val toolHasBountiful get() = GardenAPI.storage?.toolWithBountiful
-
private val mathCrops =
listOf(CropType.WHEAT, CropType.CARROT, CropType.POTATO, CropType.SUGAR_CANE, CropType.NETHER_WART)
private val dicerCrops = listOf(CropType.PUMPKIN, CropType.MELON)
@@ -103,49 +101,29 @@ object FFStats {
cropPage[FortuneStats.COUNTER] = Pair(FarmingFortuneDisplay.getCounterFortune(tool), 96.0)
cropPage[FortuneStats.HARVESTING] = Pair(FarmingFortuneDisplay.getHarvestingFortune(tool), 75.0)
cropPage[FortuneStats.COLLECTION] = Pair(FarmingFortuneDisplay.getCollectionFortune(tool), 48.0)
- if (toolHasBountiful?.get(crop) == true) {
- cropPage[FortuneStats.REFORGE] = Pair(FarmingFortuneDisplay.reforgeFortune, 10.0)
- } else {
- cropPage[FortuneStats.REFORGE] = Pair(FarmingFortuneDisplay.reforgeFortune, 20.0)
- }
+ cropPage[FortuneStats.REFORGE] = Pair(FarmingFortuneDisplay.reforgeFortune, 20.0)
}
in dicerCrops -> {
cropPage[FortuneStats.SUNDER] = Pair(FarmingFortuneDisplay.getSunderFortune(tool), 75.0)
- if (toolHasBountiful?.get(crop) == true) {
- cropPage[FortuneStats.REFORGE] = Pair(FarmingFortuneDisplay.reforgeFortune, 10.0)
- } else {
- cropPage[FortuneStats.REFORGE] = Pair(FarmingFortuneDisplay.reforgeFortune, 20.0)
- }
+ cropPage[FortuneStats.REFORGE] = Pair(FarmingFortuneDisplay.reforgeFortune, 20.0)
}
CropType.MUSHROOM -> {
cropPage[FortuneStats.BASE_TOOL] = Pair(FarmingFortuneDisplay.getToolFortune(tool), 30.0)
cropPage[FortuneStats.HARVESTING] = Pair(FarmingFortuneDisplay.getHarvestingFortune(tool), 75.0)
- if (toolHasBountiful?.get(crop) == true) {
- cropPage[FortuneStats.REFORGE] = Pair(FarmingFortuneDisplay.reforgeFortune, 7.0)
- } else {
- cropPage[FortuneStats.REFORGE] = Pair(FarmingFortuneDisplay.reforgeFortune, 16.0)
- }
+ cropPage[FortuneStats.REFORGE] = Pair(FarmingFortuneDisplay.reforgeFortune, 16.0)
}
CropType.COCOA_BEANS -> {
cropPage[FortuneStats.BASE_TOOL] = Pair(FarmingFortuneDisplay.getToolFortune(tool), 20.0)
cropPage[FortuneStats.SUNDER] = Pair(FarmingFortuneDisplay.getSunderFortune(tool), 75.0)
- if (toolHasBountiful?.get(crop) == true) {
- cropPage[FortuneStats.REFORGE] = Pair(FarmingFortuneDisplay.reforgeFortune, 7.0)
- } else {
- cropPage[FortuneStats.REFORGE] = Pair(FarmingFortuneDisplay.reforgeFortune, 16.0)
- }
+ cropPage[FortuneStats.REFORGE] = Pair(FarmingFortuneDisplay.reforgeFortune, 16.0)
}
CropType.CACTUS -> {
cropPage[FortuneStats.HARVESTING] = Pair(FarmingFortuneDisplay.getHarvestingFortune(tool), 75.0)
- if (toolHasBountiful?.get(crop) == true) {
- cropPage[FortuneStats.REFORGE] = Pair(FarmingFortuneDisplay.reforgeFortune, 7.0)
- } else {
- cropPage[FortuneStats.REFORGE] = Pair(FarmingFortuneDisplay.reforgeFortune, 16.0)
- }
+ cropPage[FortuneStats.REFORGE] = Pair(FarmingFortuneDisplay.reforgeFortune, 16.0)
}
else -> {}