From 65b58b5300da8f848ded58874c34f3fa2d3ea7e5 Mon Sep 17 00:00:00 2001 From: Ben Hollis Date: Sat, 25 May 2024 21:13:46 -0700 Subject: [PATCH] Add masterwork hashes --- api/shapes/wishlist.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/shapes/wishlist.ts b/api/shapes/wishlist.ts index b0b7a9e..83f1671 100644 --- a/api/shapes/wishlist.ts +++ b/api/shapes/wishlist.ts @@ -3,6 +3,7 @@ import { DestinyItemSubType } from 'bungie-api-ts/destiny2'; export type ItemHash = number; +export type StatHash = number; export interface WishList { /** @@ -140,6 +141,13 @@ interface Roll { */ plugs: ItemHash[][]; + /** + * Optionally, one or more masterwork stats can be chosen which must also be + * present for this roll to match. This is more convenient than having to + * specify 10 plug hashes per masterwork stat. + */ + masterworkStats?: StatHash[]; + /** * Tag for the current combination. This can be used to show special flair on * the item, as a search filter, or to allow users to select which types of