aboutsummaryrefslogtreecommitdiff
path: root/build/cleaners/skyblock/skills.js
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-06-02 16:41:13 -0500
committermat <github@matdoes.dev>2021-06-02 16:41:13 -0500
commit51f07dc19cec7d125e74a97e78f104a9320960c0 (patch)
tree699f0d24a8dd971fbada90851ec59c256f13dc97 /build/cleaners/skyblock/skills.js
parentdc2ef9bf01111efaf522e6fdee437d52d9f8c717 (diff)
downloadskyblock-api-51f07dc19cec7d125e74a97e78f104a9320960c0.tar.gz
skyblock-api-51f07dc19cec7d125e74a97e78f104a9320960c0.tar.bz2
skyblock-api-51f07dc19cec7d125e74a97e78f104a9320960c0.zip
fix some duplicate things that were there for some reason
Diffstat (limited to 'build/cleaners/skyblock/skills.js')
-rw-r--r--build/cleaners/skyblock/skills.js14
1 files changed, 0 insertions, 14 deletions
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 = [];