UNPKG

fnbr

Version:

A library to interact with Epic Games' Fortnite HTTP and XMPP services

62 lines (61 loc) 1.38 kB
import STWItem from './STWItem'; import type { STWProfileHeroData } from '../../../resources/httpResponses'; import type { STWItemRarity, STWHeroType, STWItemTier } from '../../../resources/structs'; import type Client from '../../Client'; /** * Represents a Save The World profile's hero */ declare class STWHero extends STWItem { /** * The hero's type. */ type: STWHeroType; /** * The hero's name. */ name?: string; /** * The hero's tier */ tier: STWItemTier; /** * The hero's rarity */ rarity: STWItemRarity; /** * The hero's level */ level: number; /** * The hero's max level bonus */ maxLevelBonus: number; /** * The hero's XP */ xp: number; /** * Whether the hero is marked as seen */ isSeen: boolean; /** * Whether the hero is marked as favorite */ isFavorite: boolean; /** * Whether the hero is marked as refundable */ isRefundable: boolean; /** * @param client The main client * @param id The item ID * @param data The hero's data */ constructor(client: Client, id: string, data: STWProfileHeroData); /** * The hero's power level. * Depends on the tier, level, and rarity value */ get powerLevel(): number; } export default STWHero;