Skip to content

Commit

Permalink
feat: Add flavourText and version the definition (#1706)
Browse files Browse the repository at this point in the history
  • Loading branch information
NigelBreslaw authored May 22, 2024
1 parent 3ea7d45 commit 6564cb3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions minifier/next_gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ enum RepeatStringsName {
// Interface (Schema) for the DestinyItemDefinition
interface JsonData {
[key: string]: {
flavorText: any;
sockets: any;
plug: any;
perks: any;
Expand Down Expand Up @@ -317,6 +318,11 @@ function createMiniDefinition(jsonData: JsonData, uniqueKey: string): ProcessedD
item.a = 0;
}

const flavorText = jsonData[key].flavorText;
if (flavorText) {
item.f = stripImageUrl(flavorText);
}

const nonTransferrable = jsonData[key].nonTransferrable;
if (nonTransferrable) {
item.nt = 1;
Expand Down

0 comments on commit 6564cb3

Please sign in to comment.