diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-07-10 17:21:18 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-07-10 17:21:18 +0200 |
commit | 67b6c83bb54e451264f9573aa5c9b9a0fcaf2000 (patch) | |
tree | e8e844e43325ee9d500ebbfbdb0b4983ed992839 /src/main/java/at/hannibal2 | |
parent | b8e54dd10bb6383d11d15863c2d90c0cabd7ee2e (diff) | |
download | skyhanni-67b6c83bb54e451264f9573aa5c9b9a0fcaf2000.tar.gz skyhanni-67b6c83bb54e451264f9573aa5c9b9a0fcaf2000.tar.bz2 skyhanni-67b6c83bb54e451264f9573aa5c9b9a0fcaf2000.zip |
Added Motes Grubber to Not Clickable Items feature
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/inventory/HideNotClickableItems.kt | 15 |
1 files changed, 15 insertions, 0 deletions
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 |