From 67b6c83bb54e451264f9573aa5c9b9a0fcaf2000 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Mon, 10 Jul 2023 17:21:18 +0200 Subject: Added Motes Grubber to Not Clickable Items feature --- .../skyhanni/features/inventory/HideNotClickableItems.kt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/main/java/at/hannibal2') diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/HideNotClickableItems.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/HideNotClickableItems.kt index 6b061d1bc..a90ba8a6f 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/HideNotClickableItems.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/HideNotClickableItems.kt @@ -8,6 +8,7 @@ import at.hannibal2.skyhanni.events.RepositoryReloadEvent import at.hannibal2.skyhanni.features.bazaar.BazaarApi import at.hannibal2.skyhanni.features.garden.composter.ComposterOverlay import at.hannibal2.skyhanni.features.garden.visitor.GardenVisitorFeatures +import at.hannibal2.skyhanni.features.rift.RiftAPI.motesNpcPrice import at.hannibal2.skyhanni.utils.* import at.hannibal2.skyhanni.utils.InventoryUtils.getInventoryName import at.hannibal2.skyhanni.utils.ItemUtils.cleanName @@ -170,12 +171,26 @@ class HideNotClickableItems { hideAttributeFusion(chestName, stack) -> true hideYourEquipment(chestName, stack) -> true hideComposter(chestName, stack) -> true + hideRiftMotesGrubber(chestName, stack) -> true else -> { false } } } + private fun hideRiftMotesGrubber(chestName: String, stack: ItemStack): Boolean { +// if (!RiftAPI.inRift()) return false + + if (chestName != "Motes Grubber") return false + + reverseColor = true + + if (stack.motesNpcPrice() != null) return false + + hideReason = "Not sellable for Motes!" + return true + } + private fun hideComposter(chestName: String, stack: ItemStack): Boolean { if (!ComposterOverlay.inInventory) return false -- cgit