diff options
author | Luna <luna@alexia.lol> | 2024-07-21 11:16:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-21 11:16:12 +0200 |
commit | bad8528b29b16c3b901fb17e19cb932d67fdca46 (patch) | |
tree | d9892134d63028ef0485b82244e39c8ca8d106fe /src/main/java/at/hannibal2 | |
parent | 56da75a2b9dbeaeeab3f5a89d485b6be48affec8 (diff) | |
download | skyhanni-bad8528b29b16c3b901fb17e19cb932d67fdca46.tar.gz skyhanni-bad8528b29b16c3b901fb17e19cb932d67fdca46.tar.bz2 skyhanni-bad8528b29b16c3b901fb17e19cb932d67fdca46.zip |
Fix: Ignore Jasper/Ruby Crystal price (#2235)
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/NEUInternalName.kt | 4 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt | 4 |
2 files changed, 6 insertions, 2 deletions
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<NeuRecipe> = 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) { |