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 --- src/cleaners/skyblock/skills.ts | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/cleaners') diff --git a/src/cleaners/skyblock/skills.ts b/src/cleaners/skyblock/skills.ts index 08c40fa..40c1e3c 100644 --- a/src/cleaners/skyblock/skills.ts +++ b/src/cleaners/skyblock/skills.ts @@ -135,20 +135,6 @@ export function levelForSkillXp(xp: number, maxLevel: number) { return skillLevel === -1 ? 0 : xpTable.length - skillLevel } -// for skills that aren't in maxSkills, default to this -const skillsDefaultMaxLevel: number = 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) - */ -export async function levelForSkillXp(xp: number, maxLevel: number) { - const xpTable = maxLevel <= 25 ? await fetchSkillXpEasier() : await fetchSkillXp() - const skillLevel = [...xpTable].reverse().findIndex(levelXp => xp >= levelXp) - return skillLevel === -1 ? 0 : xpTable.length - skillLevel -} - export async function cleanSkills(data: any): Promise { const skills: Skill[] = [] for (const item in data) { -- cgit