UNPKG

farming-weight

Version:

Tools for calculating farming weight and fortune in Hypixel Skyblock

351 lines 8.25 kB
import { Crop } from './crops.js'; export var Pest; (function (Pest) { Pest["Beetle"] = "beetle"; Pest["Cricket"] = "cricket"; Pest["Worm"] = "worm"; Pest["Fly"] = "fly"; Pest["Locust"] = "locust"; Pest["Mite"] = "mite"; Pest["Mosquito"] = "mosquito"; Pest["Moth"] = "moth"; Pest["Rat"] = "rat"; Pest["Slug"] = "slug"; Pest["Mouse"] = "mouse"; Pest["Dragonfly"] = "dragonfly"; Pest["Firefly"] = "firefly"; Pest["Mantis"] = "mantis"; Pest["LunarMoth"] = "lunar_moth"; })(Pest || (Pest = {})); export const FORTUNE_PER_PEST_BRACKET = 0.4; export const DEFAULT_GARDEN_BESTIARY_PEST_BRACKET = { 1: 1, 2: 2, 3: 3, 4: 5, 5: 7, 6: 9, 7: 14, 8: 17, 9: 21, 10: 25, 11: 50, 12: 80, 13: 125, 14: 175, 15: 250, }; export const FIELD_MOUSE_BESTIARY_PEST_BRACKET = { 1: 1, 2: 2, 3: 3, 4: 5, 5: 7, 6: 9, 7: 11, 8: 14, 9: 17, 10: 20, 11: 30, 12: 40, 13: 55, 14: 75, 15: 100, }; export const TIMESTALK_CLONE_BESTIARY_BRACKET = { 1: 1, 2: 2, 3: 3, 4: 5, 5: 7, 6: 9, 7: 11, 8: 14, 9: 17, 10: 20, }; export const BESTIARY_PEST_BRACKETS = { [Pest.Beetle]: DEFAULT_GARDEN_BESTIARY_PEST_BRACKET, [Pest.Cricket]: DEFAULT_GARDEN_BESTIARY_PEST_BRACKET, [Pest.Worm]: DEFAULT_GARDEN_BESTIARY_PEST_BRACKET, [Pest.Fly]: DEFAULT_GARDEN_BESTIARY_PEST_BRACKET, [Pest.Locust]: DEFAULT_GARDEN_BESTIARY_PEST_BRACKET, [Pest.Mite]: DEFAULT_GARDEN_BESTIARY_PEST_BRACKET, [Pest.Mosquito]: DEFAULT_GARDEN_BESTIARY_PEST_BRACKET, [Pest.Moth]: DEFAULT_GARDEN_BESTIARY_PEST_BRACKET, [Pest.Rat]: DEFAULT_GARDEN_BESTIARY_PEST_BRACKET, [Pest.Slug]: DEFAULT_GARDEN_BESTIARY_PEST_BRACKET, [Pest.Mouse]: FIELD_MOUSE_BESTIARY_PEST_BRACKET, [Pest.Dragonfly]: DEFAULT_GARDEN_BESTIARY_PEST_BRACKET, [Pest.Firefly]: DEFAULT_GARDEN_BESTIARY_PEST_BRACKET, [Pest.Mantis]: DEFAULT_GARDEN_BESTIARY_PEST_BRACKET, [Pest.LunarMoth]: FIELD_MOUSE_BESTIARY_PEST_BRACKET, }; export const PEST_EXCHANGE_RATES = { 0: 0, 1: 10, 2: 20, 3: 30, 4: 40, 5: 50, 6: 60, 7: 70, 8: 80, 9: 90, 10: 100, 11: 105, 12: 110, 13: 115, 14: 120, 15: 125, 16: 130, 17: 135, 18: 140, 19: 145, 20: 150, 21: 153, 22: 156, 23: 159, 24: 162, 25: 165, 26: 168, 27: 171, 28: 174, 29: 177, 30: 180, 31: 182, 32: 184, 33: 186, 34: 188, 35: 190, 36: 192, 37: 194, 38: 196, 39: 198, 40: 200, }; export const PEST_IDS = [ Pest.Beetle, Pest.Cricket, Pest.Worm, Pest.Fly, Pest.Locust, Pest.Mite, Pest.Mosquito, Pest.Moth, Pest.Rat, Pest.Slug, Pest.Mouse, Pest.Dragonfly, Pest.Firefly, Pest.Mantis, Pest.LunarMoth, ]; export const PEST_BESTIARY_IDS = { [`pest_${Pest.Beetle}_1`]: Pest.Beetle, [`pest_${Pest.Cricket}_1`]: Pest.Cricket, [`pest_${Pest.Worm}_1`]: Pest.Worm, [`pest_${Pest.Fly}_1`]: Pest.Fly, [`pest_${Pest.Locust}_1`]: Pest.Locust, [`pest_${Pest.Mite}_1`]: Pest.Mite, [`pest_${Pest.Mosquito}_1`]: Pest.Mosquito, [`pest_${Pest.Moth}_1`]: Pest.Moth, [`pest_${Pest.Rat}_1`]: Pest.Rat, [`pest_${Pest.Slug}_1`]: Pest.Slug, [`pest_${Pest.Mouse}_1`]: Pest.Mouse, [`pest_${Pest.Dragonfly}_1`]: Pest.Dragonfly, [`pest_${Pest.Firefly}_1`]: Pest.Firefly, pest_praying_mantis_1: Pest.Mantis, // oops [`pest_${Pest.LunarMoth}_1`]: Pest.LunarMoth, zombuddy_1: null, timestalk_clone_100: null, }; export const GARDEN_BESTIARY_NAMES = { [`pest_${Pest.Beetle}_1`]: 'Beetle', [`pest_${Pest.Cricket}_1`]: 'Cricket', [`pest_${Pest.Worm}_1`]: 'Earthworm', [`pest_${Pest.Fly}_1`]: 'Fly', [`pest_${Pest.Locust}_1`]: 'Locust', [`pest_${Pest.Mite}_1`]: 'Mite', [`pest_${Pest.Mosquito}_1`]: 'Mosquito', [`pest_${Pest.Moth}_1`]: 'Moth', [`pest_${Pest.Rat}_1`]: 'Rat', [`pest_${Pest.Slug}_1`]: 'Slug', [`pest_${Pest.Mouse}_1`]: 'Field Mouse', [`pest_${Pest.Dragonfly}_1`]: 'Dragonfly', [`pest_${Pest.Firefly}_1`]: 'Firefly', pest_praying_mantis_1: 'Mantis', [`pest_${Pest.LunarMoth}_1`]: 'Lunar Moth', zombuddy_1: 'Zombuddy', timestalk_clone_100: 'Timestalk Clone', }; export const GARDEN_BESTIARY_BRACKETS = { zombuddy_1: DEFAULT_GARDEN_BESTIARY_PEST_BRACKET, timestalk_clone_100: TIMESTALK_CLONE_BESTIARY_BRACKET, }; export const PEST_TO_CROP = { mite: Crop.Cactus, cricket: Crop.Carrot, moth: Crop.CocoaBeans, worm: Crop.Melon, slug: Crop.Mushroom, beetle: Crop.NetherWart, locust: Crop.Potato, rat: Crop.Pumpkin, mosquito: Crop.SugarCane, fly: Crop.Wheat, dragonfly: Crop.Sunflower, firefly: Crop.Moonflower, mantis: Crop.WildRose, }; export const CROP_TO_PEST = { [Crop.Cactus]: Pest.Mite, [Crop.Carrot]: Pest.Cricket, [Crop.CocoaBeans]: Pest.Moth, [Crop.Melon]: Pest.Worm, [Crop.Mushroom]: Pest.Slug, [Crop.NetherWart]: Pest.Beetle, [Crop.Potato]: Pest.Locust, [Crop.Pumpkin]: Pest.Rat, [Crop.SugarCane]: Pest.Mosquito, [Crop.Wheat]: Pest.Fly, [Crop.Seeds]: Pest.Fly, [Crop.Sunflower]: Pest.Dragonfly, [Crop.Moonflower]: Pest.Firefly, [Crop.WildRose]: Pest.Mantis, }; export const PEST_COLLECTION_BRACKETS = [0, 50, 100, 250, 500, 750, 1000]; // Taken from https://api.eliteskyblock.com/weights/all export const PEST_COLLECTION_ADJUSTMENTS = { mite: { '0': 0, '50': 392.81451, '100': 669.92375, '250': 947.033, '500': 1224.14223, '750': 1390.40778, '1000': 1556.67335, '5000': 1778.36074, }, cricket: { '0': 0, '50': 489.75238, '100': 902.70476, '250': 1315.65714, '500': 1728.60951, '750': 1976.38094, '1000': 2224.15239, '5000': 2554.51429, }, moth: { '0': 0, '50': 298.18964, '100': 495.41087, '250': 692.63211, '500': 889.85334, '750': 1008.18609, '1000': 1126.51884, '5000': 1284.29583, }, worm: { '0': 0, '50': 213.57277, '100': 364.23674, '250': 514.9007, '500': 665.56466, '750': 755.96304, '1000': 846.36143, '5000': 966.89259, }, slug: { '0': 0, '50': 167.24639, '100': 285.22962, '250': 403.21285, '500': 521.19607, '750': 591.986, '1000': 662.77594, '5000': 757.16252, }, beetle: { '0': 0, '50': 853.9207, '100': 1428.26244, '250': 2002.60421, '500': 2576.94593, '750': 2921.55098, '1000': 3266.15608, '5000': 3725.62946, }, locust: { '0': 0, '50': 593.16202, '100': 1049.22929, '250': 1505.29657, '500': 1961.36382, '750': 2235.00418, '1000': 2508.64457, '5000': 2873.49838, }, rat: { '0': 0, '50': 14.10777, '100': 24.06004, '250': 34.0123, '500': 43.96457, '750': 49.93593, '1000': 55.90729, '5000': 63.8691, }, mosquito: { '0': 0, '50': 20.58415, '100': 35.10514, '250': 49.62613, '500': 64.14713, '750': 72.85973, '1000': 81.57232, '5000': 93.18912, }, fly: { '0': 0, '50': 0, '100': 0, '250': 0, '500': 0, '750': 0, '1000': 0, '5000': 0, }, dragonfly: { '0': 0, '50': 0, '100': 0, '250': 0, '500': 0, '750': 0, '1000': 0, '5000': 0, }, firefly: { '0': 0, '50': 0, '100': 0, '250': 0, '500': 0, '750': 0, '1000': 0, '5000': 0, }, mantis: { '0': 0, '50': 0, '100': 0, '250': 0, '500': 0, '750': 0, '1000': 0, '5000': 0, }, }; //# sourceMappingURL=pests.js.map