aboutsummaryrefslogtreecommitdiff
path: root/src/cleaners/skyblock
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 /src/cleaners/skyblock
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 'src/cleaners/skyblock')
-rw-r--r--src/cleaners/skyblock/skills.ts14
1 files changed, 0 insertions, 14 deletions
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<Skill[]> {
const skills: Skill[] = []
for (const item in data) {