farming-weight
Version:
Tools for calculating farming weight and fortune in Hypixel Skyblock
53 lines • 1.67 kB
JavaScript
import { FarmingPetStatType, FarmingPets } from '../../constants/pets.js';
import { Rarity } from '../../constants/reforges.js';
import { Stat } from '../../constants/stats.js';
import { unlockedPestBestiaryTiers } from '../../util/pests.js';
import { FarmingPetDefinition } from '../base-pet.js';
export class HedgehogPet extends FarmingPetDefinition {
get id() {
return FarmingPets.Hedgehog;
}
get name() {
return 'Hedgehog';
}
get wiki() {
return 'https://w.elitesb.gg/Hedgehog_Pet';
}
perLevelStats = {
[Stat.Speed]: {
name: 'Speed',
value: 0.15,
type: FarmingPetStatType.Base,
},
};
perRarityLevelStats = {
[Rarity.Legendary]: {
[Stat.PestKillFortune]: {
name: 'Fearsome Farmer',
value: 1,
type: FarmingPetStatType.Ability,
},
[Stat.Overbloom]: {
name: 'Fearsome Farmer',
value: 0.35,
type: FarmingPetStatType.Ability,
},
},
};
abilities = [
{
name: "Hunter's Insight",
exists: (_, pet) => pet.rarity === Rarity.Legendary,
computed: (player) => {
return {
[Stat.FarmingFortune]: {
name: "Hunter's Insight",
value: unlockedPestBestiaryTiers(player.options.bestiaryKills ?? {}) * 0.7,
type: FarmingPetStatType.Ability,
},
};
},
},
];
}
//# sourceMappingURL=hedgehog.js.map