From 51f07dc19cec7d125e74a97e78f104a9320960c0 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 2 Jun 2021 16:41:13 -0500 Subject: fix some duplicate things that were there for some reason --- build/cleaners/skyblock/skills.js | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'build/cleaners/skyblock/skills.js') diff --git a/build/cleaners/skyblock/skills.js b/build/cleaners/skyblock/skills.js index f47b152..2dcb53f 100644 --- a/build/cleaners/skyblock/skills.js +++ b/build/cleaners/skyblock/skills.js @@ -1,7 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.cleanSkills = exports.levelForSkillXp = void 0; -const constants_1 = require("../../constants"); // the highest level you can have in each skill // numbers taken from https://hypixel-skyblock.fandom.com/wiki/Skills const skillsMaxLevel = { @@ -120,19 +119,6 @@ function levelForSkillXp(xp, maxLevel) { return skillLevel === -1 ? 0 : xpTable.length - skillLevel; } exports.levelForSkillXp = levelForSkillXp; -// for skills that aren't in maxSkills, default to this -const skillsDefaultMaxLevel = 50; -/** - * Get the skill level for the amount of total xp - * @param xp The xp we're finding the level for - * @param easierLevel Whether it should use the alternate leveling xp table (used for cosmetic skills and dungeoneering) - */ -async function levelForSkillXp(xp, maxLevel) { - const xpTable = maxLevel <= 25 ? await constants_1.fetchSkillXpEasier() : await constants_1.fetchSkillXp(); - const skillLevel = [...xpTable].reverse().findIndex(levelXp => xp >= levelXp); - return skillLevel === -1 ? 0 : xpTable.length - skillLevel; -} -exports.levelForSkillXp = levelForSkillXp; async function cleanSkills(data) { var _a; const skills = []; -- cgit