From ae55726abe66ef29fe410dc02e04db1bf6e99735 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 23 Apr 2022 14:46:54 -0500 Subject: add headTexture to itemList --- src/cleaners/skyblock/itemList.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cleaners/skyblock') diff --git a/src/cleaners/skyblock/itemList.ts b/src/cleaners/skyblock/itemList.ts index c0a3e64..3d1cdce 100644 --- a/src/cleaners/skyblock/itemList.ts +++ b/src/cleaners/skyblock/itemList.ts @@ -12,6 +12,7 @@ export interface ItemRequirement { // based on Item from inventory.ts export interface ItemListItem { id: string + headTexture?: string vanillaId: string tier: string | null display: { @@ -41,6 +42,7 @@ function cleanItemListItem(item: typedHypixelApi.SkyBlockItemsResponse['items'][ const vanillaId = item.material.toLowerCase() return { id: item.id, + headTexture: (item.material === 'SKULL_ITEM' && 'skin' in item) ? item.skin : undefined, vanillaId: item.durability ? `${vanillaId}:${item.durability}` : vanillaId, tier: item.tier ?? null, display: { -- cgit