UNPKG

farming-weight

Version:

Tools for calculating farming weight and fortune in Hypixel Skyblock

528 lines 15.2 kB
import { Stat } from './stats.js'; export var Rarity; (function (Rarity) { Rarity["Common"] = "Common"; Rarity["Uncommon"] = "Uncommon"; Rarity["Rare"] = "Rare"; Rarity["Epic"] = "Epic"; Rarity["Legendary"] = "Legendary"; Rarity["Mythic"] = "Mythic"; Rarity["Divine"] = "Divine"; Rarity["Special"] = "Special"; Rarity["VerySpecial"] = "Very Special"; Rarity["Ultimate"] = "Ultimate"; Rarity["Admin"] = "Admin"; })(Rarity || (Rarity = {})); export const RARITY_VALUES = { [Rarity.Common]: 1, [Rarity.Uncommon]: 2, [Rarity.Rare]: 3, [Rarity.Epic]: 4, [Rarity.Legendary]: 5, [Rarity.Mythic]: 6, [Rarity.Divine]: 7, [Rarity.Special]: 8, [Rarity.VerySpecial]: 9, [Rarity.Ultimate]: 10, [Rarity.Admin]: 11, }; export function compareRarity(a, b) { return RARITY_VALUES[a] - RARITY_VALUES[b]; } export var ReforgeTarget; (function (ReforgeTarget) { ReforgeTarget["Hoe"] = "Hoe"; ReforgeTarget["Axe"] = "Axe"; ReforgeTarget["Armor"] = "Armor"; ReforgeTarget["Equipment"] = "Equipment"; ReforgeTarget["Sword"] = "Sword"; })(ReforgeTarget || (ReforgeTarget = {})); export const REFORGES = { bountiful: { name: 'Bountiful', wiki: 'https://wiki.hypixel.net/Golden_Ball', appliesTo: [ReforgeTarget.Hoe, ReforgeTarget.Axe], stone: { name: 'Golden Ball', id: 'GOLDEN_BALL', npc: 1000000, }, tiers: { [Rarity.Common]: { stats: { [Stat.FarmingFortune]: 1, [Stat.Speed]: 1, }, cost: 20000, }, [Rarity.Uncommon]: { stats: { [Stat.FarmingFortune]: 2, [Stat.Speed]: 2, }, cost: 40000, }, [Rarity.Rare]: { stats: { [Stat.FarmingFortune]: 3, [Stat.Speed]: 3, }, cost: 80000, }, [Rarity.Epic]: { stats: { [Stat.FarmingFortune]: 5, [Stat.Speed]: 5, }, cost: 150000, }, [Rarity.Legendary]: { stats: { [Stat.FarmingFortune]: 7, [Stat.Speed]: 8, }, cost: 300000, }, [Rarity.Mythic]: { stats: { [Stat.FarmingFortune]: 10, [Stat.Speed]: 13, }, cost: 600000, }, }, }, blessed: { name: 'Blessed', wiki: 'https://wiki.hypixel.net/Blessed_Fruit', appliesTo: [ReforgeTarget.Hoe, ReforgeTarget.Axe], stone: { name: 'Blessed Fruit', id: 'BLESSED_FRUIT', npc: 1000000, }, tiers: { [Rarity.Common]: { stats: { [Stat.FarmingFortune]: 5, [Stat.FarmingWisdom]: 1, [Stat.Speed]: 5, }, cost: 10000, }, [Rarity.Uncommon]: { stats: { [Stat.FarmingFortune]: 7, [Stat.FarmingWisdom]: 2, [Stat.Speed]: 7, }, cost: 10000, }, [Rarity.Rare]: { stats: { [Stat.FarmingFortune]: 9, [Stat.FarmingWisdom]: 3, [Stat.Speed]: 9, }, cost: 10000, }, [Rarity.Epic]: { stats: { [Stat.FarmingFortune]: 13, [Stat.FarmingWisdom]: 4, [Stat.Speed]: 13, }, cost: 10000, }, [Rarity.Legendary]: { stats: { [Stat.FarmingFortune]: 16, [Stat.FarmingWisdom]: 5, [Stat.Speed]: 16, }, cost: 10000, }, [Rarity.Mythic]: { stats: { [Stat.FarmingFortune]: 20, [Stat.FarmingWisdom]: 6, [Stat.Speed]: 20, }, cost: 10000, }, }, }, earthy: { name: 'Earthy', wiki: 'https://wiki.hypixel.net/Large_Walnut', appliesTo: [ReforgeTarget.Axe], stone: { name: 'Large Walnut', id: 'LARGE_WALNUT', copper: 150, }, tiers: { [Rarity.Common]: { stats: { [Stat.FarmingFortune]: 2, [Stat.Speed]: 1, }, cost: 5000, }, [Rarity.Uncommon]: { stats: { [Stat.FarmingFortune]: 4, [Stat.Speed]: 1, }, cost: 10000, }, [Rarity.Rare]: { stats: { [Stat.FarmingFortune]: 6, [Stat.Speed]: 1, }, cost: 20000, }, [Rarity.Epic]: { stats: { [Stat.FarmingFortune]: 8, [Stat.Speed]: 1, }, cost: 50000, }, [Rarity.Legendary]: { stats: { [Stat.FarmingFortune]: 10, [Stat.Speed]: 1, }, cost: 100000, }, [Rarity.Mythic]: { stats: { [Stat.FarmingFortune]: 12, [Stat.Speed]: 1, }, cost: 200000, }, }, }, bustling: { name: 'Bustling', wiki: 'https://wiki.hypixel.net/SkyMart_Brochure', appliesTo: [ReforgeTarget.Armor], stone: { name: 'SkyMart Brochure', id: 'SKYMART_BROCHURE', copper: 100, }, tiers: { [Rarity.Common]: { stats: { [Stat.FarmingFortune]: 1, }, cost: 1000, }, [Rarity.Uncommon]: { stats: { [Stat.FarmingFortune]: 2, }, cost: 2000, }, [Rarity.Rare]: { stats: { [Stat.FarmingFortune]: 4, }, cost: 3000, }, [Rarity.Epic]: { stats: { [Stat.FarmingFortune]: 6, }, cost: 6000, }, [Rarity.Legendary]: { stats: { [Stat.FarmingFortune]: 8, }, cost: 10000, }, [Rarity.Mythic]: { stats: { [Stat.FarmingFortune]: 10, }, cost: 15000, }, }, }, mossy: { name: 'Mossy', wiki: 'https://wiki.hypixel.net/Overgrown_Grass', appliesTo: [ReforgeTarget.Armor], stone: { name: 'Overgrown Grass', id: 'OVERGROWN_GRASS', copper: 150, }, tiers: { [Rarity.Common]: { stats: { [Stat.FarmingFortune]: 5, [Stat.Speed]: 3, }, cost: 20000, }, [Rarity.Uncommon]: { stats: { [Stat.FarmingFortune]: 10, [Stat.Speed]: 3, }, cost: 40000, }, [Rarity.Rare]: { stats: { [Stat.FarmingFortune]: 15, [Stat.Speed]: 5, }, cost: 80000, }, [Rarity.Epic]: { stats: { [Stat.FarmingFortune]: 20, [Stat.Speed]: 5, }, cost: 150000, }, [Rarity.Legendary]: { stats: { [Stat.FarmingFortune]: 25, [Stat.Speed]: 7, }, cost: 300000, }, [Rarity.Mythic]: { stats: { [Stat.FarmingFortune]: 30, [Stat.Speed]: 7, }, cost: 600000, }, }, }, blooming: { name: 'Blooming', wiki: 'https://wiki.hypixel.net/Flowering_Bouquet', appliesTo: [ReforgeTarget.Armor], stone: { name: 'Flowering Bouquet', id: 'FLOWERING_BOUQUET', }, tiers: { [Rarity.Common]: { stats: { [Stat.FarmingFortune]: 1, [Stat.Speed]: 4, }, cost: 5000, }, [Rarity.Uncommon]: { stats: { [Stat.FarmingFortune]: 2, [Stat.Speed]: 4, }, cost: 10000, }, [Rarity.Rare]: { stats: { [Stat.FarmingFortune]: 3, [Stat.Speed]: 5, }, cost: 20000, }, [Rarity.Epic]: { stats: { [Stat.FarmingFortune]: 4, [Stat.Speed]: 5, }, cost: 50000, }, [Rarity.Legendary]: { stats: { [Stat.FarmingFortune]: 5, [Stat.Speed]: 6, }, cost: 100000, }, [Rarity.Mythic]: { stats: { [Stat.FarmingFortune]: 6, [Stat.Speed]: 6, }, cost: 200000, }, }, }, rooted: { name: 'Rooted', wiki: 'https://wiki.hypixel.net/Burrowing_Spores', appliesTo: [ReforgeTarget.Equipment], stone: { name: 'Burrowing Spores', id: 'BURROWING_SPORES', }, tiers: { [Rarity.Common]: { stats: { [Stat.FarmingFortune]: 6, [Stat.Health]: 2, }, cost: 20000, }, [Rarity.Uncommon]: { stats: { [Stat.FarmingFortune]: 9, [Stat.Health]: 5, }, cost: 40000, }, [Rarity.Rare]: { stats: { [Stat.FarmingFortune]: 12, [Stat.Health]: 8, }, cost: 80000, }, [Rarity.Epic]: { stats: { [Stat.FarmingFortune]: 15, [Stat.Health]: 11, }, cost: 150000, }, [Rarity.Legendary]: { stats: { [Stat.FarmingFortune]: 18, [Stat.Health]: 14, }, cost: 300000, }, [Rarity.Mythic]: { stats: { [Stat.FarmingFortune]: 21, [Stat.Health]: 17, }, cost: 600000, }, }, }, squeaky: { name: 'Squeaky', wiki: 'https://wiki.hypixel.net/Squeaky_Toy', appliesTo: [ReforgeTarget.Equipment], stone: { name: 'Squeaky Toy', id: 'SQUEAKY_TOY', }, tiers: { [Rarity.Common]: { stats: { [Stat.FarmingFortune]: 2, [Stat.BonusPestChance]: 0.5, }, cost: 7500, }, [Rarity.Uncommon]: { stats: { [Stat.FarmingFortune]: 4, [Stat.BonusPestChance]: 0.5, }, cost: 15000, }, [Rarity.Rare]: { stats: { [Stat.FarmingFortune]: 6, [Stat.BonusPestChance]: 1, }, cost: 30000, }, [Rarity.Epic]: { stats: { [Stat.FarmingFortune]: 8, [Stat.BonusPestChance]: 1.5, }, cost: 75000, }, [Rarity.Legendary]: { stats: { [Stat.FarmingFortune]: 10, [Stat.BonusPestChance]: 2, }, cost: 150000, }, [Rarity.Mythic]: { stats: { [Stat.FarmingFortune]: 12, [Stat.BonusPestChance]: 2.5, }, cost: 150000, }, [Rarity.Divine]: { stats: { [Stat.FarmingFortune]: 12, [Stat.BonusPestChance]: 2.5, }, cost: 150000, }, }, }, }; export const STAT_ICONS = { [Stat.Strength]: '❁', [Stat.Health]: '❤', [Stat.Defense]: '❈', [Stat.Speed]: '✦', [Stat.Intelligence]: '✎', [Stat.CritChance]: '☣', [Stat.CritDamage]: '☣', [Stat.AttackSpeed]: '⚔', [Stat.AbilityDamage]: '๑', [Stat.MagicFind]: '✯', [Stat.PetLuck]: '♣', [Stat.TrueDefense]: '❂', [Stat.SeaCreatureChance]: 'α', [Stat.Ferocity]: '⫽', [Stat.MiningSpeed]: '⸕', [Stat.MiningFortune]: '☘', [Stat.FarmingFortune]: '☘', [Stat.ForagingFortune]: '☘', [Stat.MiningWisdom]: '☯', [Stat.FarmingWisdom]: '☯', [Stat.ForagingWisdom]: '☯', [Stat.Pristine]: '✧', [Stat.BonusPestChance]: 'ൠ', [Stat.CactusFortune]: '☘', [Stat.CarrotFortune]: '☘', [Stat.CocoaBeanFortune]: '☘', [Stat.MelonFortune]: '☘', [Stat.MushroomFortune]: '☘', [Stat.NetherWartFortune]: '☘', [Stat.PotatoFortune]: '☘', [Stat.PumpkinFortune]: '☘', [Stat.SugarCaneFortune]: '☘', [Stat.WheatFortune]: '☘', [Stat.PestKillFortune]: '☘', [Stat.PestCooldownReduction]: 'ൠ', }; export const RARITY_COLORS = { [Rarity.Common]: '§f', [Rarity.Uncommon]: '§a', [Rarity.Rare]: '§9', [Rarity.Epic]: '§5', [Rarity.Legendary]: '§6', [Rarity.Mythic]: '§d', [Rarity.Divine]: '§b', [Rarity.Special]: '§c', [Rarity.VerySpecial]: '§c', [Rarity.Ultimate]: '§4', [Rarity.Admin]: '§4', }; //# sourceMappingURL=reforges.js.map