From b3010e565fe7e984f5a913e8a4167a3cb6810090 Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 15 May 2022 14:38:18 -0500 Subject: add accessory bag upgrades --- src/cleaners/skyblock/member.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/cleaners/skyblock/member.ts') diff --git a/src/cleaners/skyblock/member.ts b/src/cleaners/skyblock/member.ts index 6b2f452..f2526d2 100644 --- a/src/cleaners/skyblock/member.ts +++ b/src/cleaners/skyblock/member.ts @@ -19,6 +19,7 @@ import * as constants from '../../constants.js' import { Included } from '../../hypixel.js' import { CleanPlayer } from '../player.js' import { CleanRank } from '../rank.js' +import { AccessoryBagUpgrades, cleanAccessoryBagUpgrades } from './accessoryBagUpgrades.js' export interface CleanBasicMember { uuid: string @@ -45,6 +46,7 @@ export interface CleanMember extends CleanBasicMember { harp: HarpData coopInvitation: CoopInvitation | null farmingContests: FarmingContests + accessoryBagUpgrades: AccessoryBagUpgrades /** Whether the user left the coop */ left: boolean } @@ -110,6 +112,7 @@ export async function cleanSkyBlockProfileMemberResponse(member: typedHypixelApi harp: await harpPromise, coopInvitation: await coopInvitationPromise, farmingContests: await farmingContestsPromise, + accessoryBagUpgrades: cleanAccessoryBagUpgrades(member), left: (player.profiles?.find(profile => profile.uuid === profileId) === undefined) ?? false } @@ -136,6 +139,7 @@ export interface CleanMemberProfilePlayer extends CleanPlayer { harp: HarpData coopInvitation: CoopInvitation | null farmingContests: FarmingContests + accessoryBagUpgrades: AccessoryBagUpgrades left: boolean } -- cgit