farming-weight
Version:
Tools for calculating farming weight and fortune in Hypixel Skyblock
21 lines • 808 B
JavaScript
import { FARMING_ACCESSORIES_INFO } from '../items/accessories.js';
import { FARMING_ARMOR_INFO } from '../items/armor.js';
import { FARMING_EQUIPMENT_INFO } from '../items/equipment.js';
import { FARMING_TOOLS } from '../items/tools.js';
function itemInfoEntries(items) {
return Object.values(items)
.filter((item) => item !== undefined)
.map((item) => [item.skyblockId, item]);
}
export const ITEM_INFO_REGISTRY = new Map([
...itemInfoEntries(FARMING_ACCESSORIES_INFO),
...itemInfoEntries(FARMING_ARMOR_INFO),
...itemInfoEntries(FARMING_EQUIPMENT_INFO),
...itemInfoEntries(FARMING_TOOLS),
]);
export function getItemInfo(skyblockId) {
if (!skyblockId)
return undefined;
return ITEM_INFO_REGISTRY.get(skyblockId);
}
//# sourceMappingURL=itemcatalog.js.map