UNPKG

farming-weight

Version:

Tools for calculating farming weight and fortune in Hypixel Skyblock

196 lines 5.2 kB
import { Rarity } from '../../constants/reforges.js'; import { Skill } from '../../constants/skills.js'; import { SpecialCrop } from '../../constants/specialcrops.js'; import { Stat } from '../../constants/stats.js'; import { UpgradeReason } from '../../constants/upgrades.js'; import { BaseItem } from '../base-item.js'; import { GearSlot } from '../definitions.js'; import { armorTierGroup } from './groups.js'; const SQUASH_TO_FERMENTO_GROUP = armorTierGroup('SQUASH', 'FERMENTO'); export class SquashHelmet extends BaseItem { get skyblockId() { return 'SQUASH_HELMET'; } get name() { return 'Squash Helmet'; } get wiki() { return 'https://w.elitesb.gg/Squash_Armor'; } get maxRarity() { return Rarity.Rare; } family = 'SQUASH'; slot = GearSlot.Helmet; special = [SpecialCrop.Fermento]; upgrade = { id: 'FERMENTO_HELMET', reason: UpgradeReason.NextTier, group: SQUASH_TO_FERMENTO_GROUP, cost: { items: { CONDENSED_FERMENTO: 2, ENCHANTED_SUGAR_CANE: 32, ENCHANTED_HUGE_MUSHROOM_2: 32, ENCHANTED_HUGE_MUSHROOM_1: 32, }, }, }; baseStats = { [Stat.FarmingFortune]: 25, [Stat.BonusPestChance]: 15, }; skillReq = { [Skill.Farming]: 35, }; gemSlots = [ { slot_type: 'PERIDOT', costs: [ { type: 'ITEM', item_id: 'FINE_PERIDOT_GEM', amount: 20 }, { type: 'COINS', coins: 50000 }, ], }, ]; } export class SquashChestplate extends BaseItem { get skyblockId() { return 'SQUASH_CHESTPLATE'; } get name() { return 'Squash Chestplate'; } get wiki() { return 'https://w.elitesb.gg/Squash_Armor'; } get maxRarity() { return Rarity.Rare; } family = 'SQUASH'; slot = GearSlot.Chestplate; special = [SpecialCrop.Fermento]; upgrade = { id: 'FERMENTO_CHESTPLATE', reason: UpgradeReason.NextTier, group: SQUASH_TO_FERMENTO_GROUP, cost: { items: { CONDENSED_FERMENTO: 2, ENCHANTED_SUGAR_CANE: 32, ENCHANTED_HUGE_MUSHROOM_2: 32, ENCHANTED_HUGE_MUSHROOM_1: 32, MUTANT_NETHER_STALK: 30, ENCHANTED_CACTUS: 25, }, }, }; baseStats = { [Stat.FarmingFortune]: 30, [Stat.BonusPestChance]: 15, }; skillReq = { [Skill.Farming]: 35, }; gemSlots = [ { slot_type: 'PERIDOT', costs: [ { type: 'ITEM', item_id: 'FINE_PERIDOT_GEM', amount: 20 }, { type: 'COINS', coins: 50000 }, ], }, ]; } export class SquashLeggings extends BaseItem { get skyblockId() { return 'SQUASH_LEGGINGS'; } get name() { return 'Squash Leggings'; } get wiki() { return 'https://w.elitesb.gg/Squash_Armor'; } get maxRarity() { return Rarity.Rare; } family = 'SQUASH'; slot = GearSlot.Leggings; special = [SpecialCrop.Fermento]; upgrade = { id: 'FERMENTO_LEGGINGS', reason: UpgradeReason.NextTier, group: SQUASH_TO_FERMENTO_GROUP, cost: { items: { CONDENSED_FERMENTO: 2, ENCHANTED_SUGAR_CANE: 32, ENCHANTED_HUGE_MUSHROOM_2: 32, ENCHANTED_HUGE_MUSHROOM_1: 32, MUTANT_NETHER_STALK: 40, }, }, }; baseStats = { [Stat.FarmingFortune]: 30, [Stat.BonusPestChance]: 15, }; skillReq = { [Skill.Farming]: 35, }; gemSlots = [ { slot_type: 'PERIDOT', costs: [ { type: 'ITEM', item_id: 'FINE_PERIDOT_GEM', amount: 20 }, { type: 'COINS', coins: 50000 }, ], }, ]; } export class SquashBoots extends BaseItem { get skyblockId() { return 'SQUASH_BOOTS'; } get name() { return 'Squash Boots'; } get wiki() { return 'https://w.elitesb.gg/Squash_Armor'; } get maxRarity() { return Rarity.Rare; } family = 'SQUASH'; slot = GearSlot.Boots; special = [SpecialCrop.Fermento]; upgrade = { id: 'FERMENTO_BOOTS', reason: UpgradeReason.NextTier, group: SQUASH_TO_FERMENTO_GROUP, cost: { items: { CONDENSED_FERMENTO: 2, ENCHANTED_HUGE_MUSHROOM_2: 32, ENCHANTED_HUGE_MUSHROOM_1: 32, }, }, }; baseStats = { [Stat.FarmingFortune]: 25, [Stat.BonusPestChance]: 15, }; skillReq = { [Skill.Farming]: 35, }; gemSlots = [ { slot_type: 'PERIDOT', costs: [ { type: 'ITEM', item_id: 'FINE_PERIDOT_GEM', amount: 20 }, { type: 'COINS', coins: 50000 }, ], }, ]; } //# sourceMappingURL=squash.js.map