aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt
diff options
context:
space:
mode:
authorSerhan <serhanduzce@gmail.com>2023-09-02 11:52:43 +0300
committerGitHub <noreply@github.com>2023-09-02 10:52:43 +0200
commit3971a5bff7b1ad8c57fb00d1920acbc94309801a (patch)
tree2c38d10d58d3fbbe98fdd35913b4d65623affbf4 /src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt
parent24326997aa39c566cc2c23b2b796a63dafc9f566 (diff)
downloadskyhanni-3971a5bff7b1ad8c57fb00d1920acbc94309801a.tar.gz
skyhanni-3971a5bff7b1ad8c57fb00d1920acbc94309801a.tar.bz2
skyhanni-3971a5bff7b1ad8c57fb00d1920acbc94309801a.zip
new Gemstone Slot Unlock Cost line for Estimated Item Value feature (#408)
new Gemstone Slot Unlock Cost line for Estimated Item Value feature #408
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt
index c87941766..0cf1d3b32 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt
@@ -9,6 +9,7 @@ import at.hannibal2.skyhanni.utils.NEUInternalName.Companion.asInternalName
import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher
import com.google.gson.JsonObject
import net.minecraft.item.ItemStack
+import java.util.*
object SkyBlockItemModifierUtils {
private val drillPartTypes = listOf("drill_part_upgrade_module", "drill_part_engine", "drill_part_fuel_tank")
@@ -263,4 +264,27 @@ object SkyBlockItemModifierUtils {
fun getByName(name: String) = entries.firstOrNull { it.name == name }
}
}
+
+ enum class GemstoneSlotType(val colorCode: Char) {
+ JADE('a'),
+ AMBER('6'),
+ TOPAZ('e'),
+ SAPPHIRE('b'),
+ AMETHYST('5'),
+ JASPER('d'),
+ RUBY('c'),
+ OPAL('f'),
+ COMBAT('4'),
+ OFFENSIVE('9'),
+ DEFENSIVE('a'),
+ MINING('5'),
+ UNIVERSAL('f')
+ ;
+
+ companion object {
+ fun getColorCode(name: String) = entries.stream().filter {
+ name.uppercase(Locale.ENGLISH).contains(it.name)
+ }.findFirst().get().colorCode
+ }
+ }
} \ No newline at end of file