diff --git a/output/extended-ich.json b/output/extended-ich.json index 8446f33b..928cc592 100644 --- a/output/extended-ich.json +++ b/output/extended-ich.json @@ -1,83 +1,8 @@ { - "2307365": -11, - "40394833": -153950757, - "46125926": -153950757, - "64236626": -11, - "92459755": -11, - "94729174": -11, - "135029084": -11, "199733460": 55, "239189018": 55, - "268260373": -153950757, - "304659313": -153950757, - "411397829": -11, - "447296102": -153950757, - "487361141": -11, - "515224227": -11, - "522366885": -11, - "568611921": -153950757, - "568611922": -153950757, - "599895591": -11, - "613334176": -153950757, - "672957262": -153950757, - "731147178": -11, - "817909300": -153950757, - "825554997": -11, - "959037361": -153950757, - "981718087": -153950757, - "1125217994": -153950757, - "1151688091": -153950757, - "1197771438": -153950757, - "1218113510": -153950757, - "1332123064": -153950757, - "1606497639": -153950757, - "1854753405": -153950757, - "1870979911": -153950757, - "1946491241": -153950757, - "1983332560": -153950757, - "1988218406": -11, - "2026087437": -153950757, - "2060863616": -153950757, - "2108920981": -153950757, - "2179048386": -14, - "2185327324": -11, - "2198166292": -14, "2213504923": 55, - "2306182339": -153950757, - "2326716489": -11, "2352138838": 55, - "2357297366": -153950757, - "2378101424": -153950757, - "2480074702": -153950757, - "2531963421": -11, "2545426109": 55, - "2584830733": -153950757, - "2653171212": -11, - "2734369894": -153950757, - "2782847179": -11, - "2812324401": -153950757, - "2821430069": -11, - "2936850733": -153950757, - "3224066584": 55, - "3246523829": -153950757, - "3252697558": -153950757, - "3381450498": -14, - "3549153978": -153950757, - "3556971406": -11, - "3616586446": -11, - "3686538757": -153950757, - "3745974521": -153950757, - "3821409356": -153950757, - "3849810018": -153950757, - "3850168899": -153950757, - "3886719505": -14, - "3947966653": -14, - "3993415705": -153950757, - "4037745684": -11, - "4038592169": -153950757, - "4043921923": -153950757, - "4096943616": -153950757, - "4162642204": -153950757, - "4248569242": -11, - "4255586669": -153950757 + "3224066584": 55 } diff --git a/src/generate-extended-ich.ts b/src/generate-extended-ich.ts index 8740f5e5..d0533907 100644 --- a/src/generate-extended-ich.ts +++ b/src/generate-extended-ich.ts @@ -4,48 +4,12 @@ import { writeFile } from './helpers.js'; const inventoryItems = getAllDefs('InventoryItem'); -const realWeaponsOnly = inventoryItems.filter( - (item) => - item.itemCategoryHashes?.includes(ItemCategoryHashes.Weapon) && - !item.itemCategoryHashes.includes(ItemCategoryHashes.Dummies), -); - -const ffGrenadeLaunchers = realWeaponsOnly.filter( - (item) => - item.itemCategoryHashes?.includes(ItemCategoryHashes.GrenadeLaunchers) && - !item.itemCategoryHashes.includes(ItemCategoryHashes.PowerWeapon), -); - -const slugShotguns = realWeaponsOnly.filter( - (item) => - item.itemCategoryHashes?.includes(ItemCategoryHashes.Shotgun) && - item.sockets?.socketEntries[0].singleInitialItemHash === 918679156, // Slug Precision Frame -); - -const specialSidearms = realWeaponsOnly.filter( - (item) => - item.itemCategoryHashes?.includes(ItemCategoryHashes.Sidearm) && - item.equippingBlock?.ammoType === 2, // special ammo -); - const festivalMasks = inventoryItems.filter((item) => item.itemTypeDisplayName?.includes('Festival Mask'), ); const extendedICH: Record = {}; -ffGrenadeLaunchers.forEach((gl) => { - extendedICH[gl.hash] = -ItemCategoryHashes.GrenadeLaunchers; -}); - -slugShotguns.forEach((ssg) => { - extendedICH[ssg.hash] = -ItemCategoryHashes.Shotgun; -}); - -specialSidearms.forEach((ssa) => { - extendedICH[ssa.hash] = -ItemCategoryHashes.Sidearm; -}); - festivalMasks.forEach((fm) => { extendedICH[fm.hash] = ItemCategoryHashes.Mask; });