farming-weight
Version:
Tools for calculating farming weight and fortune in Hypixel Skyblock
11 lines (10 loc) • 583 B
TypeScript
import { Stat } from '../../constants/stats.js';
import type { Effect } from '../../effects/types.js';
/**
* Convert a `Partial<Record<Stat, number>>` to an `Effect[]`. Each non-zero
* stat becomes an `add-stat` effect, except `Stat.Overbloom` which is rerouted
* to a global `add-rare-pct` effect with `relatedStats: [Stat.Overbloom]` so
* the resolver picks it up both as a virtual-stat contribution and as an
* additive percent on overbloom-tagged drops.
*/
export declare function statsToEffects(stats: Partial<Record<Stat, number>> | undefined, source: string): Effect[];