diff options
author | mat <github@matdoes.dev> | 2022-04-23 14:46:54 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2022-04-23 14:46:54 -0500 |
commit | ae55726abe66ef29fe410dc02e04db1bf6e99735 (patch) | |
tree | bc0f7a215451199046dba27ac7c22655582555ec | |
parent | 57cb3e84f9c8f513665e364459c8ff342d9b3d74 (diff) | |
download | skyblock-api-ae55726abe66ef29fe410dc02e04db1bf6e99735.tar.gz skyblock-api-ae55726abe66ef29fe410dc02e04db1bf6e99735.tar.bz2 skyblock-api-ae55726abe66ef29fe410dc02e04db1bf6e99735.zip |
add headTexture to itemList
-rw-r--r-- | src/cleaners/skyblock/itemList.ts | 2 |
1 files changed, 2 insertions, 0 deletions
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: { |