UNPKG

farming-weight

Version:

Tools for calculating farming weight and fortune in Hypixel Skyblock

469 lines (468 loc) 11.5 kB
import { Crop } from './crops'; import { Rarity, ReforgeTarget } from './reforges'; import { Stat } from './stats'; import { UpgradeReason } from './upgrades'; export var FarmingToolType; (function (farmingToolType) { farmingToolType['Other'] = 'Other'; farmingToolType['Dicer'] = 'Dicer'; farmingToolType['MathematicalHoe'] = 'Mathematical Hoe'; })(FarmingToolType || (FarmingToolType = {})); const T1HOE_STATS = { [Rarity.Common]: { [Stat.FarmingFortune]: 10, [Stat.FarmingWisdom]: 1, }, [Rarity.Uncommon]: { [Stat.FarmingFortune]: 10, [Stat.FarmingWisdom]: 2, }, [Rarity.Rare]: { [Stat.FarmingFortune]: 10, [Stat.FarmingWisdom]: 3, }, [Rarity.Epic]: { [Stat.FarmingFortune]: 10, [Stat.FarmingWisdom]: 5, }, [Rarity.Legendary]: { [Stat.FarmingFortune]: 10, [Stat.FarmingWisdom]: 8, }, [Rarity.Mythic]: { [Stat.FarmingFortune]: 10, [Stat.FarmingWisdom]: 12, }, }; const T2HOE_STATS = { [Rarity.Common]: { [Stat.FarmingFortune]: 25, [Stat.FarmingWisdom]: 1, }, [Rarity.Uncommon]: { [Stat.FarmingFortune]: 25, [Stat.FarmingWisdom]: 2, }, [Rarity.Rare]: { [Stat.FarmingFortune]: 25, [Stat.FarmingWisdom]: 3, }, [Rarity.Epic]: { [Stat.FarmingFortune]: 25, [Stat.FarmingWisdom]: 5, }, [Rarity.Legendary]: { [Stat.FarmingFortune]: 25, [Stat.FarmingWisdom]: 8, }, [Rarity.Mythic]: { [Stat.FarmingFortune]: 25, [Stat.FarmingWisdom]: 12, }, }; const T3HOE_STATS = { [Rarity.Common]: { [Stat.FarmingFortune]: 50, [Stat.FarmingWisdom]: 1, }, [Rarity.Uncommon]: { [Stat.FarmingFortune]: 50, [Stat.FarmingWisdom]: 2, }, [Rarity.Rare]: { [Stat.FarmingFortune]: 50, [Stat.FarmingWisdom]: 3, }, [Rarity.Epic]: { [Stat.FarmingFortune]: 50, [Stat.FarmingWisdom]: 5, }, [Rarity.Legendary]: { [Stat.FarmingFortune]: 50, [Stat.FarmingWisdom]: 8, }, [Rarity.Mythic]: { [Stat.FarmingFortune]: 50, [Stat.FarmingWisdom]: 12, }, }; export const FARMING_TOOLS = { CACTUS_KNIFE: { skyblockId: 'CACTUS_KNIFE', crop: Crop.Cactus, maxRarity: Rarity.Epic, reforgeType: ReforgeTarget.Hoe, type: FarmingToolType.Other, gemSlots: { peridot: 2, }, name: 'Cactus Knife', wiki: 'https://wiki.hypixel.net/Cactus_Knife', }, COCO_CHOPPER: { skyblockId: 'COCO_CHOPPER', crop: Crop.CocoaBeans, maxRarity: Rarity.Legendary, reforgeType: ReforgeTarget.Axe, type: FarmingToolType.Other, gemSlots: { peridot: 2, }, name: 'Cocoa Chopper', wiki: 'https://wiki.hypixel.net/Cocoa_Chopper', baseStats: { [Stat.FarmingFortune]: 20, }, }, FUNGI_CUTTER: { skyblockId: 'FUNGI_CUTTER', crop: Crop.Mushroom, maxRarity: Rarity.Legendary, reforgeType: ReforgeTarget.Hoe, type: FarmingToolType.Other, gemSlots: { peridot: 2, }, name: 'Fungi Cutter', wiki: 'https://wiki.hypixel.net/Fungi_Cutter', baseStats: { [Stat.FarmingFortune]: 30, }, }, MELON_DICER: { skyblockId: 'MELON_DICER', crop: Crop.Melon, maxRarity: Rarity.Epic, reforgeType: ReforgeTarget.Axe, type: FarmingToolType.Dicer, upgrade: { id: 'MELON_DICER_2', reason: UpgradeReason.NextTier, }, gemSlots: { peridot: 1, }, name: 'Melon Dicer', wiki: 'https://wiki.hypixel.net/Melon_Dicer', }, MELON_DICER_2: { skyblockId: 'MELON_DICER_2', crop: Crop.Melon, maxRarity: Rarity.Legendary, reforgeType: ReforgeTarget.Axe, type: FarmingToolType.Dicer, upgrade: { id: 'MELON_DICER_3', reason: UpgradeReason.NextTier, }, gemSlots: { peridot: 2, }, name: 'Melon Dicer 2.0', wiki: 'https://wiki.hypixel.net/Melon_Dicer_2.0', }, MELON_DICER_3: { skyblockId: 'MELON_DICER_3', crop: Crop.Melon, maxRarity: Rarity.Mythic, reforgeType: ReforgeTarget.Axe, type: FarmingToolType.Dicer, gemSlots: { peridot: 3, }, name: 'Melon Dicer 3.0', wiki: 'https://wiki.hypixel.net/Melon_Dicer_3.0', }, PUMPKIN_DICER: { skyblockId: 'PUMPKIN_DICER', crop: Crop.Pumpkin, maxRarity: Rarity.Epic, reforgeType: ReforgeTarget.Axe, type: FarmingToolType.Dicer, upgrade: { id: 'PUMPKIN_DICER_2', reason: UpgradeReason.NextTier, }, gemSlots: { peridot: 1, }, name: 'Pumpkin Dicer', wiki: 'https://wiki.hypixel.net/Pumpkin_Dicer', }, PUMPKIN_DICER_2: { skyblockId: 'PUMPKIN_DICER_2', crop: Crop.Pumpkin, maxRarity: Rarity.Legendary, reforgeType: ReforgeTarget.Axe, type: FarmingToolType.Dicer, gemSlots: { peridot: 2, }, upgrade: { id: 'PUMPKIN_DICER_3', reason: UpgradeReason.NextTier, }, name: 'Pumpkin Dicer 2.0', wiki: 'https://wiki.hypixel.net/Pumpkin_Dicer_2.0', }, PUMPKIN_DICER_3: { skyblockId: 'PUMPKIN_DICER_3', crop: Crop.Pumpkin, maxRarity: Rarity.Mythic, reforgeType: ReforgeTarget.Axe, type: FarmingToolType.Dicer, gemSlots: { peridot: 3, }, name: 'Pumpkin Dicer 3.0', wiki: 'https://wiki.hypixel.net/Pumpkin_Dicer_3.0', }, THEORETICAL_HOE_CARROT_1: { skyblockId: 'THEORETICAL_HOE_CARROT_1', crop: Crop.Carrot, maxRarity: Rarity.Epic, reforgeType: ReforgeTarget.Hoe, type: FarmingToolType.MathematicalHoe, upgrade: { id: 'THEORETICAL_HOE_CARROT_2', reason: UpgradeReason.NextTier, }, gemSlots: { peridot: 1, }, name: 'Gauss Carrot Hoe', wiki: 'https://wiki.hypixel.net/Gauss_Carrot_Hoe', stats: T1HOE_STATS, }, THEORETICAL_HOE_CARROT_2: { skyblockId: 'THEORETICAL_HOE_CARROT_2', crop: Crop.Carrot, maxRarity: Rarity.Legendary, reforgeType: ReforgeTarget.Hoe, type: FarmingToolType.MathematicalHoe, upgrade: { id: 'THEORETICAL_HOE_CARROT_3', reason: UpgradeReason.NextTier, }, gemSlots: { peridot: 2, }, name: 'Gauss Carrot Hoe', wiki: 'https://wiki.hypixel.net/Gauss_Carrot_Hoe', stats: T2HOE_STATS, }, THEORETICAL_HOE_CARROT_3: { skyblockId: 'THEORETICAL_HOE_CARROT_3', crop: Crop.Carrot, maxRarity: Rarity.Mythic, reforgeType: ReforgeTarget.Hoe, type: FarmingToolType.MathematicalHoe, gemSlots: { peridot: 3, }, name: 'Gauss Carrot Hoe', wiki: 'https://wiki.hypixel.net/Gauss_Carrot_Hoe', stats: T3HOE_STATS, }, THEORETICAL_HOE_WARTS_1: { skyblockId: 'THEORETICAL_HOE_WARTS_1', crop: Crop.NetherWart, maxRarity: Rarity.Epic, reforgeType: ReforgeTarget.Hoe, type: FarmingToolType.MathematicalHoe, upgrade: { id: 'THEORETICAL_HOE_WARTS_2', reason: UpgradeReason.NextTier, }, gemSlots: { peridot: 1, }, name: 'Newton Nether Warts Hoe', wiki: 'https://wiki.hypixel.net/Newton_Nether_Warts_Hoe', stats: T1HOE_STATS, }, THEORETICAL_HOE_WARTS_2: { skyblockId: 'THEORETICAL_HOE_WARTS_2', crop: Crop.NetherWart, maxRarity: Rarity.Legendary, reforgeType: ReforgeTarget.Hoe, type: FarmingToolType.MathematicalHoe, upgrade: { id: 'THEORETICAL_HOE_WARTS_3', reason: UpgradeReason.NextTier, }, gemSlots: { peridot: 2, }, name: 'Newton Nether Warts Hoe', wiki: 'https://wiki.hypixel.net/Newton_Nether_Warts_Hoe', stats: T2HOE_STATS, }, THEORETICAL_HOE_WARTS_3: { skyblockId: 'THEORETICAL_HOE_WARTS_3', crop: Crop.NetherWart, maxRarity: Rarity.Mythic, reforgeType: ReforgeTarget.Hoe, type: FarmingToolType.MathematicalHoe, gemSlots: { peridot: 3, }, name: 'Newton Nether Warts Hoe', wiki: 'https://wiki.hypixel.net/Newton_Nether_Warts_Hoe', stats: T3HOE_STATS, }, THEORETICAL_HOE_POTATO_1: { skyblockId: 'THEORETICAL_HOE_POTATO_1', crop: Crop.Potato, maxRarity: Rarity.Epic, reforgeType: ReforgeTarget.Hoe, type: FarmingToolType.MathematicalHoe, upgrade: { id: 'THEORETICAL_HOE_POTATO_2', reason: UpgradeReason.NextTier, }, gemSlots: { peridot: 1, }, name: 'Pythagorean Potato Hoe', wiki: 'https://wiki.hypixel.net/Pythagorean_Potato_Hoe', stats: T1HOE_STATS, }, THEORETICAL_HOE_POTATO_2: { skyblockId: 'THEORETICAL_HOE_POTATO_2', crop: Crop.Potato, maxRarity: Rarity.Legendary, reforgeType: ReforgeTarget.Hoe, type: FarmingToolType.MathematicalHoe, upgrade: { id: 'THEORETICAL_HOE_POTATO_3', reason: UpgradeReason.NextTier, }, gemSlots: { peridot: 2, }, name: 'Pythagorean Potato Hoe', wiki: 'https://wiki.hypixel.net/Pythagorean_Potato_Hoe', stats: T2HOE_STATS, }, THEORETICAL_HOE_POTATO_3: { skyblockId: 'THEORETICAL_HOE_POTATO_3', crop: Crop.Potato, maxRarity: Rarity.Mythic, reforgeType: ReforgeTarget.Hoe, type: FarmingToolType.MathematicalHoe, gemSlots: { peridot: 3, }, name: 'Pythagorean Potato Hoe', wiki: 'https://wiki.hypixel.net/Pythagorean_Potato_Hoe', stats: T3HOE_STATS, }, THEORETICAL_HOE_CANE_1: { skyblockId: 'THEORETICAL_HOE_CANE_1', crop: Crop.SugarCane, maxRarity: Rarity.Epic, reforgeType: ReforgeTarget.Hoe, type: FarmingToolType.MathematicalHoe, upgrade: { id: 'THEORETICAL_HOE_CANE_2', reason: UpgradeReason.NextTier, }, gemSlots: { peridot: 1, }, name: 'Turing Sugar Cane Hoe', wiki: 'https://wiki.hypixel.net/Turing_Sugar_Cane_Hoe', stats: T1HOE_STATS, }, THEORETICAL_HOE_CANE_2: { skyblockId: 'THEORETICAL_HOE_CANE_2', crop: Crop.SugarCane, maxRarity: Rarity.Legendary, reforgeType: ReforgeTarget.Hoe, type: FarmingToolType.MathematicalHoe, upgrade: { id: 'THEORETICAL_HOE_CANE_3', reason: UpgradeReason.NextTier, }, gemSlots: { peridot: 2, }, name: 'Turing Sugar Cane Hoe', wiki: 'https://wiki.hypixel.net/Turing_Sugar_Cane_Hoe', stats: T2HOE_STATS, }, THEORETICAL_HOE_CANE_3: { skyblockId: 'THEORETICAL_HOE_CANE_3', crop: Crop.SugarCane, maxRarity: Rarity.Mythic, reforgeType: ReforgeTarget.Hoe, type: FarmingToolType.MathematicalHoe, gemSlots: { peridot: 3, }, name: 'Turing Sugar Cane Hoe', wiki: 'https://wiki.hypixel.net/Turing_Sugar_Cane_Hoe', stats: T3HOE_STATS, }, THEORETICAL_HOE_WHEAT_1: { skyblockId: 'THEORETICAL_HOE_WHEAT_1', crop: Crop.Wheat, maxRarity: Rarity.Epic, reforgeType: ReforgeTarget.Hoe, type: FarmingToolType.MathematicalHoe, upgrade: { id: 'THEORETICAL_HOE_WHEAT_2', reason: UpgradeReason.NextTier, }, gemSlots: { peridot: 1, }, name: "Euclid's Wheat Hoe", wiki: 'https://wiki.hypixel.net/Euclid%27s_Wheat_Hoe', stats: T1HOE_STATS, }, THEORETICAL_HOE_WHEAT_2: { skyblockId: 'THEORETICAL_HOE_WHEAT_2', crop: Crop.Wheat, maxRarity: Rarity.Legendary, reforgeType: ReforgeTarget.Hoe, type: FarmingToolType.MathematicalHoe, upgrade: { id: 'THEORETICAL_HOE_WHEAT_3', reason: UpgradeReason.NextTier, }, gemSlots: { peridot: 2, }, name: "Euclid's Wheat Hoe", wiki: 'https://wiki.hypixel.net/Euclid%27s_Wheat_Hoe', stats: T2HOE_STATS, }, THEORETICAL_HOE_WHEAT_3: { skyblockId: 'THEORETICAL_HOE_WHEAT_3', crop: Crop.Wheat, maxRarity: Rarity.Mythic, reforgeType: ReforgeTarget.Hoe, type: FarmingToolType.MathematicalHoe, gemSlots: { peridot: 3, }, name: "Euclid's Wheat Hoe", wiki: 'https://wiki.hypixel.net/Euclid%27s_Wheat_Hoe', stats: T3HOE_STATS, }, }; export const BEST_FARMING_TOOLS = { [Crop.Cactus]: FARMING_TOOLS.CACTUS_KNIFE, [Crop.CocoaBeans]: FARMING_TOOLS.COCO_CHOPPER, [Crop.Mushroom]: FARMING_TOOLS.FUNGI_CUTTER, [Crop.Melon]: FARMING_TOOLS.MELON_DICER_3, [Crop.Pumpkin]: FARMING_TOOLS.PUMPKIN_DICER_3, [Crop.Carrot]: FARMING_TOOLS.THEORETICAL_HOE_CARROT_3, [Crop.NetherWart]: FARMING_TOOLS.THEORETICAL_HOE_WARTS_3, [Crop.Potato]: FARMING_TOOLS.THEORETICAL_HOE_POTATO_3, [Crop.SugarCane]: FARMING_TOOLS.THEORETICAL_HOE_CANE_3, [Crop.Wheat]: FARMING_TOOLS.THEORETICAL_HOE_WHEAT_3, }; //# sourceMappingURL=tools.js.map