UNPKG

farming-weight

Version:

Tools for calculating farming weight and fortune in Hypixel Skyblock

191 lines 4.88 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 CROPIE_TO_SQUASH_GROUP = armorTierGroup('CROPIE', 'SQUASH'); export class CropieHelmet extends BaseItem { get skyblockId() { return 'CROPIE_HELMET'; } get name() { return 'Cropie Helmet'; } get wiki() { return 'https://w.elitesb.gg/Cropie_Armor'; } get maxRarity() { return Rarity.Uncommon; } family = 'CROPIE'; slot = GearSlot.Helmet; special = [SpecialCrop.Squash]; upgrade = { id: 'SQUASH_HELMET', reason: UpgradeReason.NextTier, group: CROPIE_TO_SQUASH_GROUP, cost: { items: { SQUASH: 20, POLISHED_PUMPKIN: 8, ENCHANTED_MELON_BLOCK: 48, }, }, }; baseStats = { [Stat.FarmingFortune]: 20, [Stat.BonusPestChance]: 12.5, }; skillReq = { [Skill.Farming]: 30, }; gemSlots = [ { slot_type: 'PERIDOT', costs: [ { type: 'ITEM', item_id: 'FINE_PERIDOT_GEM', amount: 20 }, { type: 'COINS', coins: 50000 }, ], }, ]; } export class CropieChestplate extends BaseItem { get skyblockId() { return 'CROPIE_CHESTPLATE'; } get name() { return 'Cropie Chestplate'; } get wiki() { return 'https://w.elitesb.gg/Cropie_Armor'; } get maxRarity() { return Rarity.Uncommon; } family = 'CROPIE'; slot = GearSlot.Chestplate; special = [SpecialCrop.Squash]; upgrade = { id: 'SQUASH_CHESTPLATE', reason: UpgradeReason.NextTier, group: CROPIE_TO_SQUASH_GROUP, cost: { items: { SQUASH: 20, POLISHED_PUMPKIN: 8, ENCHANTED_MELON_BLOCK: 48, ENCHANTED_COOKIE: 30, }, }, }; baseStats = { [Stat.FarmingFortune]: 25, [Stat.BonusPestChance]: 12.5, }; skillReq = { [Skill.Farming]: 30, }; gemSlots = [ { slot_type: 'PERIDOT', costs: [ { type: 'ITEM', item_id: 'FINE_PERIDOT_GEM', amount: 20 }, { type: 'COINS', coins: 50000 }, ], }, ]; } export class CropieLeggings extends BaseItem { get skyblockId() { return 'CROPIE_LEGGINGS'; } get name() { return 'Cropie Leggings'; } get wiki() { return 'https://w.elitesb.gg/Cropie_Armor'; } get maxRarity() { return Rarity.Uncommon; } family = 'CROPIE'; slot = GearSlot.Leggings; special = [SpecialCrop.Squash]; upgrade = { id: 'SQUASH_LEGGINGS', reason: UpgradeReason.NextTier, group: CROPIE_TO_SQUASH_GROUP, cost: { items: { SQUASH: 20, POLISHED_PUMPKIN: 8, ENCHANTED_MELON_BLOCK: 48, ENCHANTED_COOKIE: 20, }, }, }; baseStats = { [Stat.FarmingFortune]: 25, [Stat.BonusPestChance]: 12.5, }; skillReq = { [Skill.Farming]: 30, }; gemSlots = [ { slot_type: 'PERIDOT', costs: [ { type: 'ITEM', item_id: 'FINE_PERIDOT_GEM', amount: 20 }, { type: 'COINS', coins: 50000 }, ], }, ]; } export class CropieBoots extends BaseItem { get skyblockId() { return 'CROPIE_BOOTS'; } get name() { return 'Cropie Boots'; } get wiki() { return 'https://w.elitesb.gg/Cropie_Armor'; } get maxRarity() { return Rarity.Uncommon; } family = 'CROPIE'; slot = GearSlot.Boots; special = [SpecialCrop.Squash]; upgrade = { id: 'SQUASH_BOOTS', reason: UpgradeReason.NextTier, group: CROPIE_TO_SQUASH_GROUP, cost: { items: { SQUASH: 20, POLISHED_PUMPKIN: 12, }, }, }; baseStats = { [Stat.FarmingFortune]: 20, [Stat.BonusPestChance]: 12.5, }; skillReq = { [Skill.Farming]: 30, }; gemSlots = [ { slot_type: 'PERIDOT', costs: [ { type: 'ITEM', item_id: 'FINE_PERIDOT_GEM', amount: 20 }, { type: 'COINS', coins: 50000 }, ], }, ]; } //# sourceMappingURL=cropie.js.map