Dcai169 / Destiny-API-Ripper-Extension

Extensions and GUI for https://github.com/TiredHobgoblin/Destiny-Collada-Generator.
MIT License
24 stars 6 forks source link

Mask Ornaments are not available #24

Open thomas-a-nance opened 8 months ago

thomas-a-nance commented 8 months ago

FotL changed from Masks to Mask Ornaments, and DARE does not show Mask Ornaments

thomas-a-nance commented 8 months ago

Since I don't have permission to branch:

mainPreload.js:

destinyManifest.js:

  1. 125438212 (Exotic Ornament Voucher)
  2. 1959648454 (Default Ornament)
  3. 2931483505 (Default Ornament)

-add a new blacklist under line 11: const DESTINY2_CATEGORY_HASH_BLACKLIST = new Set([1875601085, 4104513227]);

-add under line 83 if statement:

//Remove Armor Mods & Glow Effects
if (item.itemCategoryHashes?.some(itemCategoryHash => DESTINY2_CATEGORY_HASH_BLACKLIST.has(itemCategoryHash))){
    return false;
}

-at line 110(ish), add the following if check at the end:

// FotL Mask Ornaments
if (item.itemCategoryHashes?.some(itemCategoryHash => [56].includes(itemCategoryHash))) {
    return true;
}