farming-weight
Version:
Tools for calculating farming weight and fortune in Hypixel Skyblock
90 lines • 3.19 kB
JavaScript
import { LIST_OF_CROPS } from '../../constants/crops.js';
import { Rarity, ReforgeTarget } from '../../constants/reforge-types.js';
import { Stat } from '../../constants/stats.js';
import { BaseReforge } from './base.js';
const BLESSED_DROP_CHANCE = 0.0022;
const BLESSED_DROP_AMOUNT = 160;
export class BlessedReforge extends BaseReforge {
constructor() {
super('blessed', {
name: 'Blessed',
wiki: 'https://w.elitesb.gg/Blessed_Fruit',
appliesTo: [ReforgeTarget.FarmingTool],
stone: {
name: 'Blessed Fruit',
id: 'BLESSED_FRUIT',
npc: 1_000_000,
},
tiers: {
[]: {
stats: {
[]: 5,
[]: 1,
[]: 5,
},
cost: 10_000,
},
[]: {
stats: {
[]: 7,
[]: 2,
[]: 7,
},
cost: 10_000,
},
[]: {
stats: {
[]: 10,
[]: 3,
[]: 9,
},
cost: 10_000,
},
[]: {
stats: {
[]: 13,
[]: 4,
[]: 13,
},
cost: 10_000,
},
[]: {
stats: {
[]: 16,
[]: 5,
[]: 16,
},
cost: 10_000,
},
[]: {
stats: {
[]: 20,
[]: 6,
[]: 20,
},
cost: 10_000,
},
},
});
}
getEffects(rarity, sourceName) {
const source = sourceName ?? `Reforge: ${this.name}`;
return [
...super.getEffects(rarity, source),
...LIST_OF_CROPS.map((crop) => ({
source: 'Blessed Reforge',
op: 'add-drop',
scope: { crops: [crop] },
drop: {
itemId: crop,
output: 'collection',
baseAmount: BLESSED_DROP_CHANCE * BLESSED_DROP_AMOUNT,
dropKind: 'crop',
tags: ['crop-drop'],
},
meta: { description: '0.22% chance per block to drop 160 of the crop being farmed' },
})),
];
}
}
//# sourceMappingURL=blessed.js.map