Skip to content

Commit

Permalink
fix tool fortune
Browse files Browse the repository at this point in the history
  • Loading branch information
CalMWolfs committed Nov 2, 2023
1 parent ad12389 commit 119f6f8
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import at.hannibal2.skyhanni.utils.ItemUtils.getLore
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.LorenzUtils.addAsSingletonList
import at.hannibal2.skyhanni.utils.NEUInternalName
import at.hannibal2.skyhanni.utils.NEUInternalName.Companion.asInternalName
import at.hannibal2.skyhanni.utils.RenderUtils.renderString
import at.hannibal2.skyhanni.utils.RenderUtils.renderStringsAndItems
import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getEnchantments
Expand Down Expand Up @@ -174,9 +175,9 @@ class FarmingFortuneDisplay {
}
return if (internalName.startsWith("THEORETICAL_HOE")) {
listOf(10.0, 25.0, 50.0)[internalName.toString().last().digitToInt() - 1]
} else when (internalName.toString()) {
"FUNGI_CUTTER" -> 30.0
"COCO_CHOPPER" -> 20.0
} else when (internalName) {
"FUNGI_CUTTER".asInternalName() -> 30.0
"COCO_CHOPPER".asInternalName() -> 20.0
else -> 0.0
}
}
Expand Down Expand Up @@ -289,4 +290,4 @@ class FarmingFortuneDisplay {
event.move(3,"garden.farmingFortuneDropMultiplier", "garden.farmingFortunes.dropMultiplier")
event.move(3,"garden.farmingFortunePos", "garden.farmingFortunes.pos")
}
}
}

0 comments on commit 119f6f8

Please sign in to comment.