UNPKG

farming-weight

Version:

Tools for calculating farming weight and fortune in Hypixel Skyblock

51 lines 1.97 kB
export var Stat; (function (Stat) { Stat["Strength"] = "Strength"; Stat["Health"] = "Health"; Stat["Defense"] = "Defense"; Stat["Speed"] = "Speed"; Stat["Intelligence"] = "Intelligence"; Stat["CritChance"] = "Crit Chance"; Stat["CritDamage"] = "Crit Damage"; Stat["AttackSpeed"] = "Attack Speed"; Stat["AbilityDamage"] = "Ability Damage"; Stat["MagicFind"] = "Magic Find"; Stat["PetLuck"] = "Pet Luck"; Stat["TrueDefense"] = "True Defense"; Stat["SeaCreatureChance"] = "Sea Creature Chance"; Stat["Ferocity"] = "Ferocity"; Stat["MiningSpeed"] = "Mining Speed"; Stat["MiningFortune"] = "mining_fortune"; Stat["FarmingFortune"] = "farming_fortune"; Stat["CactusFortune"] = "cactus_fortune"; Stat["CarrotFortune"] = "carrot_fortune"; Stat["CocoaBeanFortune"] = "cocoa_beans_fortune"; Stat["MelonFortune"] = "melon_fortune"; Stat["MushroomFortune"] = "mushroom_fortune"; Stat["NetherWartFortune"] = "nether_wart_fortune"; Stat["PotatoFortune"] = "potato_fortune"; Stat["PumpkinFortune"] = "pumpkin_fortune"; Stat["SugarCaneFortune"] = "sugar_cane_fortune"; Stat["WheatFortune"] = "wheat_fortune"; Stat["PestKillFortune"] = "pest_kill_fortune"; Stat["ForagingFortune"] = "foraging_fortune"; Stat["MiningWisdom"] = "Mining Wisdom"; Stat["FarmingWisdom"] = "Farming Wisdom"; Stat["ForagingWisdom"] = "Foraging Wisdom"; Stat["Pristine"] = "Pristine"; Stat["BonusPestChance"] = "Bonus Pest Chance"; Stat["PestCooldownReduction"] = "Pest Cooldown Reduction"; })(Stat || (Stat = {})); export function getStatValue(stat, option) { if (!stat || (stat.exists && option && !stat.exists(option))) return 0; let value = 0; if ('value' in stat) { value += stat.value; } if ('calculated' in stat && option) { value += stat.calculated(option); } return value; } //# sourceMappingURL=stats.js.map