From fe06e0ee479be4395ae8299b32ac7a21a73534e4 Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 15 May 2022 13:11:43 -0500 Subject: [PATCH] Accessory bag storage and other fixes --- package.json | 2 +- src/responses/resources/quests.ts | 2 ++ src/responses/resources/skyblock/items.ts | 2 +- src/responses/skyblock/_profile_member.ts | 29 +++++++++++++++++++++++ 4 files changed, 33 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5d4dcd9..61efff8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "typed-hypixel-api", - "version": "1.3.1", + "version": "1.4.0", "main": "build/index.js", "types": "build/index.d.js", "repository": "https://github.com/skyblockstats/typed-hypixel-api.git", diff --git a/src/responses/resources/quests.ts b/src/responses/resources/quests.ts index 79baa70..31c1c89 100644 --- a/src/responses/resources/quests.ts +++ b/src/responses/resources/quests.ts @@ -27,6 +27,8 @@ export interface QuestsResponse { | 'SkyClashCardPackReward' | 'PitGold' | 'BedwarsExpReward' + | 'WoolWarsWoolReward' + | 'WoolWarsExpReward' amount: number }[] objectives: ({ diff --git a/src/responses/resources/skyblock/items.ts b/src/responses/resources/skyblock/items.ts index b2bc644..129a4a6 100644 --- a/src/responses/resources/skyblock/items.ts +++ b/src/responses/resources/skyblock/items.ts @@ -186,7 +186,7 @@ export interface SkyBlockItemsResponse { level: number } dungeon_completion?: { - type: 'CATACOMBS' + type: 'CATACOMBS' | 'MASTER_CATACOMBS' tier: number } /** diff --git a/src/responses/skyblock/_profile_member.ts b/src/responses/skyblock/_profile_member.ts index b9cf203..6343792 100644 --- a/src/responses/skyblock/_profile_member.ts +++ b/src/responses/skyblock/_profile_member.ts @@ -471,6 +471,35 @@ export interface SkyBlockProfileMember { forge_1?: Record } } + /** Extra information about the user's accessory bag upgrades and powers. */ + accessory_bag_storage?: { + /** The member's tuning templates. https://wiki.hypixel.net/Powers#Tuning_Templates */ + tuning: { + /** + * A tuning template. This is formatted as a record of stat ids to + * their upgraded value, for example { strength: 104 }. + * You can find more info at https://wiki.hypixel.net/Powers#Tuning_Templates + */ + [key: `slot_${number}`]: Record + /** + * The number of extra tuning templates unlocked. For + * example, if this is 2, `slot_0`, `slot_1`, and `slot_2` will be + * in `tuning`. If this is missing, you can assume it's 0. + */ + highest_unlocked_slot?: number + } + /** + * The number of times the player has bought extra slots for their + * accessory bag. The unofficial wiki contains a table of the extra + * slots you gain per purchase. + * https://hypixel-skyblock.fandom.com/wiki/Accessory_Bag + */ + bag_upgrades_purchased?: number + /** The prefix of the active power stone. Power stones give you extra stats. */ + selected_power?: string + /** The prefixes of the power stones that the member has unlocked. */ + unlocked_powers?: string[] + } unlocked_coll_tiers?: string[] sacks_counts?: Record