UNPKG

farming-weight

Version:

Tools for calculating farming weight and fortune in Hypixel Skyblock

41 lines 1.4 kB
import { FarmingPetStatType, FarmingPets } from '../../constants/pets.js'; import { Rarity } from '../../constants/reforges.js'; import { Stat } from '../../constants/stats.js'; import { FarmingPetDefinition } from '../base-pet.js'; export class MooshroomCowPet extends FarmingPetDefinition { get id() { return FarmingPets.MooshroomCow; } get name() { return 'Mooshroom Cow'; } get wiki() { return 'https://w.elitesb.gg/Mooshroom_Cow_Pet'; } stats = { [Stat.FarmingFortune]: { name: 'Base Farming Fortune', calculated: (pet) => 10 + pet.level, type: FarmingPetStatType.Base, }, }; abilities = [ { name: 'Farming Strength', exists: (_, pet) => pet.rarity === Rarity.Legendary, computed: (player, pet) => { const strengthPer = 40 - pet.level * 0.2; const strength = player.options.strength ?? 0; const amount = Math.floor((strength / strengthPer) * 0.7); return { [Stat.FarmingFortune]: { name: 'Farming Strength Fortune', value: amount, type: FarmingPetStatType.Ability, }, }; }, }, ]; } //# sourceMappingURL=mooshroom-cow.js.map