From bad8528b29b16c3b901fb17e19cb932d67fdca46 Mon Sep 17 00:00:00 2001 From: Luna Date: Sun, 21 Jul 2024 11:16:12 +0200 Subject: Fix: Ignore Jasper/Ruby Crystal price (#2235) --- src/main/java/at/hannibal2/skyhanni/utils/NEUInternalName.kt | 4 +++- src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src/main/java/at') diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NEUInternalName.kt b/src/main/java/at/hannibal2/skyhanni/utils/NEUInternalName.kt index b3605094a..98f903468 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/NEUInternalName.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/NEUInternalName.kt @@ -11,8 +11,10 @@ class NEUInternalName private constructor(private val internalName: String) { val NONE = "NONE".asInternalName() val MISSING_ITEM = "MISSING_ITEM".asInternalName() - val WISP_POTION = "WISP_POTION".asInternalName() + val JASPER_CRYSTAL = "JASPER_CRYSTAL".asInternalName() + val RUBY_CRYSTAL = "RUBY_CRYSTAL".asInternalName() val SKYBLOCK_COIN = "SKYBLOCK_COIN".asInternalName() + val WISP_POTION = "WISP_POTION".asInternalName() fun String.asInternalName(): NEUInternalName { val internalName = uppercase().replace(" ", "_") diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt index 217d681c3..35992a15e 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt @@ -182,8 +182,10 @@ object NEUItems { pastRecipes: List = emptyList(), ): Double? { when (this) { - NEUInternalName.WISP_POTION -> return 20_000.0 + NEUInternalName.JASPER_CRYSTAL -> return 0.0 + NEUInternalName.RUBY_CRYSTAL -> return 0.0 NEUInternalName.SKYBLOCK_COIN -> return 1.0 + NEUInternalName.WISP_POTION -> return 20_000.0 } if (priceSource != ItemPriceSource.NPC_SELL) { -- cgit