farming-weight
Version:
Tools for calculating farming weight and fortune in Hypixel Skyblock
15 lines (14 loc) • 1.15 kB
TypeScript
import type { Crop } from '../constants/crops.js';
import type { FarmingEnchant } from '../constants/enchants.js';
import { Stat } from '../constants/stats.js';
import type { PlayerOptions } from '../player/playeroptions.js';
export declare function getFortuneFromEnchant(level: number, enchant: FarmingEnchant, options?: PlayerOptions, crop?: Crop): number;
export declare function getStatFromEnchant(level: number, enchant: FarmingEnchant, stat: Stat, options?: PlayerOptions, crop?: Crop): number;
/**
* Like {@link getStatFromEnchant}, but when no crop is provided, evaluates
* `cropComputed` contributions with `undefined` so non-crop-bound items (e.g.
* armor with Sunset) can resolve per-level deltas without a representative crop.
*/
export declare function getOptimisticStatFromEnchant(level: number, enchant: FarmingEnchant, stat: Stat, options?: PlayerOptions, crop?: Crop): number;
export declare function getMaxFortuneFromEnchant(enchant: FarmingEnchant, options?: PlayerOptions, crop?: Crop): number;
export declare function getMaxStatFromEnchant(enchant: FarmingEnchant, stat: Stat, options?: PlayerOptions, crop?: Crop): number;