aboutsummaryrefslogtreecommitdiff
path: root/src/cleaners/skyblock
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-06-11 23:46:45 -0500
committermat <github@matdoes.dev>2022-06-11 23:46:45 -0500
commitdd2e8772db12887c4ab563740a4d441410aa66bb (patch)
treeec16f5af7d66be4a4fe950fbfb962e7adf12dc12 /src/cleaners/skyblock
parent1b6b520d21e86c2bdeda487b9be8febc924026d7 (diff)
downloadskyblock-api-dd2e8772db12887c4ab563740a4d441410aa66bb.tar.gz
skyblock-api-dd2e8772db12887c4ab563740a4d441410aa66bb.tar.bz2
skyblock-api-dd2e8772db12887c4ab563740a4d441410aa66bb.zip
Social2
Diffstat (limited to 'src/cleaners/skyblock')
-rw-r--r--src/cleaners/skyblock/skills.ts9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/cleaners/skyblock/skills.ts b/src/cleaners/skyblock/skills.ts
index 2f7f453..4428412 100644
--- a/src/cleaners/skyblock/skills.ts
+++ b/src/cleaners/skyblock/skills.ts
@@ -190,7 +190,14 @@ export async function cleanSkills(data: typedHypixelApi.SkyBlockProfileMember, p
for (const item in data) {
if (item.startsWith('experience_skill_')) {
- const skillName = item.slice('experience_skill_'.length)
+ let skillName = item.slice('experience_skill_'.length)
+
+ // hypixel replaced social with social2
+ if (skillName === 'social2')
+ skillName = 'social'
+ else if (skillName === 'social')
+ continue
+
skillNamesFound.push(skillName)
// the amount of total xp you have in this skill