Skip to content

Commit

Permalink
fix tool fortune (hannibal002#674)
Browse files Browse the repository at this point in the history
Fixed tool fortune. hannibal002#674
  • Loading branch information
CalMWolfs authored Nov 2, 2023
1 parent c14cfe9 commit 4b2a3c1
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 4b2a3c1

Please sign in to comment.