Skip to content

Add minimum clue value configuration option #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cjonsmith
Copy link

To prevent spam from frequent low level clue completions, this PR adds an additional configuration option to add a minimum value threshold for a clue reward casket to meet before it sends a Discord notification.

This change has been tested locally, and the logic for capturing the items from a clue reward and accurately summing the total value of the clue come from the Loot Tracker plugin:

https://github.com/runelite/runelite/blob/8760471818964fed5b8a34010b799d9816b408f4/runelite-client/src/main/java/net/runelite/client/plugins/loottracker/LootTrackerPlugin.java#L580-L581

https://github.com/runelite/runelite/blob/8760471818964fed5b8a34010b799d9816b408f4/runelite-client/src/main/java/net/runelite/client/plugins/loottracker/LootTrackerPlugin.java#L1135-L1145

A further improvement that can be introduced later is also a boolean toggle that allows users to bypass the minimum value threshold if a clue unique is obtained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant