diff options
author | CalMWolfs <cwolfson58@gmail.com> | 2023-06-18 09:28:48 +1000 |
---|---|---|
committer | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2023-06-18 10:10:54 +0200 |
commit | b09c4e4a38db21c1a83501b41d77c48d3b08d59b (patch) | |
tree | ea4c8a45a5126b2cc398d209a92694cc210b9179 /src/main/java/at/hannibal2/skyhanni/features/garden | |
parent | 4a4956e12f7a3edae22422ab83a796c8c7e2ffe5 (diff) | |
download | skyhanni-b09c4e4a38db21c1a83501b41d77c48d3b08d59b.tar.gz skyhanni-b09c4e4a38db21c1a83501b41d77c48d3b08d59b.tar.bz2 skyhanni-b09c4e4a38db21c1a83501b41d77c48d3b08d59b.zip |
small additions and fixes
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/FarmingReforges.kt | 7 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/FortuneUpgrades.kt | 6 |
2 files changed, 9 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/FarmingReforges.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/FarmingReforges.kt index 6920c5e77..672428ba7 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/FarmingReforges.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/FarmingReforges.kt @@ -9,13 +9,16 @@ enum class FarmingReforges( val epic: Int, val legendary: Int, val mythic: Int -) { +) { // if reforge item is an empty string it means it will never be called, just for upgrading and recomb stats BLESSED("Blessed", "BLESSED_FRUIT", 5, 7, 9, 13, 16, 20), BOUNTIFUL("Bountiful", "GOLDEN_BALL", 1, 2, 3, 5, 7, 10), BLOOMING("Blooming", "FLOWERING_BOUQUET", 1, 2, 3, 4, 5, 6), ROOTED("Rooted", "BURROWING_SPORES", 4, 6, 8, 10, 12, 14), BUSTLING("Bustling", "SKYMART_BROCHURE", 1, 2, 4, 6, 8, 10), - MOSSY("Mossy", "OVERGROWN_GRASS", 5, 10, 15, 20, 25, 30) + MOSSY("Mossy", "OVERGROWN_GRASS", 5, 10, 15, 20, 25, 30), + ROBUST("Robust", "", 2, 3, 4, 6, 8, 10), + EARTHLY("Earthly", "LARGE_WALNUT", 1, 4, 6, 8, 10, 12), + GREEN_THUMB("Green Thumb", "", 1, 2, 3, 4, 5, 6) } operator fun FarmingReforges.get(index: Int, current: Double = 0.0): Double? { diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/FortuneUpgrades.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/FortuneUpgrades.kt index f6e220fa0..6329fcb0a 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/FortuneUpgrades.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/FortuneUpgrades.kt @@ -196,7 +196,10 @@ object FortuneUpgrades { private fun recombobulateItem(item: ItemStack, list: MutableList<FortuneUpgrade>) { if (item.isRecombobulated()) return - val reforge = item.getReforgeName()?.let { FarmingReforges.valueOf(it.uppercase()) } ?: return + val reforge = item.getReforgeName()?.let { + FarmingReforges.values().find { enumValue -> enumValue.name == it.uppercase() + } + } ?: return FarmingFortuneDisplay.loadFortuneLineData(item, 0.0) val increase = reforge[item.getItemRarity() + 1, FarmingFortuneDisplay.reforgeFortune] ?: return @@ -206,7 +209,6 @@ object FortuneUpgrades { private fun reforgeItem(item: ItemStack, reforge: FarmingReforges, list: MutableList<FortuneUpgrade>,copperPrice: Int? = null) { FarmingFortuneDisplay.loadFortuneLineData(item, 0.0) - val increase = reforge[item.getItemRarity(), FarmingFortuneDisplay.reforgeFortune] ?: return list.add(FortuneUpgrade("§7Reforge your ${item.displayName} §7to ${reforge.reforgeName}", copperPrice, reforge.reforgeItem, 1, increase)) |