aboutsummaryrefslogtreecommitdiff
path: root/src/cleaners/skyblock
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-04-23 14:46:54 -0500
committermat <github@matdoes.dev>2022-04-23 14:46:54 -0500
commitae55726abe66ef29fe410dc02e04db1bf6e99735 (patch)
treebc0f7a215451199046dba27ac7c22655582555ec /src/cleaners/skyblock
parent57cb3e84f9c8f513665e364459c8ff342d9b3d74 (diff)
downloadskyblock-api-ae55726abe66ef29fe410dc02e04db1bf6e99735.tar.gz
skyblock-api-ae55726abe66ef29fe410dc02e04db1bf6e99735.tar.bz2
skyblock-api-ae55726abe66ef29fe410dc02e04db1bf6e99735.zip
add headTexture to itemList
Diffstat (limited to 'src/cleaners/skyblock')
-rw-r--r--src/cleaners/skyblock/itemList.ts2
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: {