Skip to content

Commit

Permalink
feat: use thumbnail corresponding to clue difficulty (pajlads#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
iProdigy authored Sep 28, 2024
1 parent d6da5bf commit 5ee3ecf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## Unreleased

- Minor: Use embed thumbnail that corresponds to clue scroll difficulty. (#546)
- Minor: Include NPC ID in loot notification metadata. (#550)
- Minor: Allow customization of rich embed highlight color. (#534)
- Minor: Include Moxi pet name in pet notifications. (#557)
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/dinkplugin/notifiers/ClueNotifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,14 @@ private void handleNotify(Map<Integer, Integer> clueItems) {
.replacement("%TOTAL_VALUE%", Replacements.ofText(QuantityFormatter.quantityToStackSize(totalPrice.get())))
.replacement("%LOOT%", lootMessage.build())
.build();
String icon = String.format("https://oldschool.runescape.wiki/images/Clue_scroll_(%s).png", clueType.toLowerCase());
createMessage(screenshot,
NotificationBody.builder()
.text(notifyMessage)
.extra(new ClueNotificationData(clueType, clueCount, itemStacks))
.type(NotificationType.CLUE)
.embeds(embeds)
.thumbnailUrl(icon)
.build()
);
}
Expand Down

0 comments on commit 5ee3ecf

Please sign in to comment.