UNPKG

farming-weight

Version:

Tools for calculating farming weight and fortune in Hypixel Skyblock

38 lines (37 loc) 2.05 kB
import { Rarity, type RarityRecord } from './reforges.js'; import { Stat } from './stats.js'; export declare const GARDEN_CHIP_MAX_LEVEL: 20; export declare const GARDEN_CHIP_WIKI: "https://w.elitesb.gg/Garden_Chip"; export type GardenChipId = 'cropshot' | 'vermin_vaporizer' | 'synthesis' | 'sowledge' | 'mechamind' | 'hypercharge' | 'evergreen' | 'overdrive' | 'quickdraw' | 'rarefinder'; export interface GardenChipInfo { skyblockId: string; name: string; wiki: string; /** * Some chips map cleanly to existing stats. Others are progress-only for now. */ statsPerRarity?: RarityRecord<Partial<Record<Stat, number>>>; /** * Per-level multiplier for temporary fortune sources, by rarity. * Used by Hypercharge Chip. */ tempMultiplierPerLevel?: RarityRecord<number>; } export declare const GARDEN_CHIPS: Record<GardenChipId, GardenChipInfo>; export declare function getChipLevel(level?: number | null): number; export declare function getChipRarity(level?: number | null): Rarity; export declare function getChipStats(chipId: GardenChipId, level?: number | null): Partial<Record<Stat, number>>; /** Returns the per-level multiplier for temporary fortune sources for a chip, based on level-derived rarity. */ export declare function getChipTempMultiplierPerLevel(chipId: GardenChipId, level?: number | null): number; /** * Normalizes chip identifiers to the canonical GardenChipId format. * Accepts canonical IDs, full SkyBlock IDs, and short names. */ export declare function normalizeChipId(id: string): GardenChipId | undefined; export declare function normalizeChipLevels(chips?: Record<string, number | null | undefined>): Partial<Record<GardenChipId, number>> | undefined; export declare function getChipInputLevel(chips: Record<string, number | null | undefined> | undefined, chipId: GardenChipId): number; /** * Type that accepts either the full chip ID or the short name. * E.g., both 'CROPSHOT_GARDEN_CHIP' and 'CROPSHOT' are valid. */ export type ChipIdInput = GardenChipId | string;