diff --git a/src/config.js b/src/config.js index df42acc..b49ef17 100644 --- a/src/config.js +++ b/src/config.js @@ -90,6 +90,7 @@ const config = { "2022000": "https://cdn.darkintaqt.com/lol/static/challenges/2022seasonal.svg", "seasonal-retired": "https://cdn.darkintaqt.com/lol/static/challenges/retired.svg", "2023000": "https://cdn.darkintaqt.com/lol/static/challenges/2023seasonal.svg", + "2024100": "https://cdn.darkintaqt.com/lol/static/challenges/2024-1seasonal.svg", "summonersrift": "https://lolcdn.darkintaqt.com/cdn/sr.svg", "aram": "https://lolcdn.darkintaqt.com/cdn/ha.svg", "bot": "https://lolcdn.darkintaqt.com/cdn/bot.png", diff --git a/src/css/user.module.css b/src/css/user.module.css index 80d264e..e67ccc9 100644 --- a/src/css/user.module.css +++ b/src/css/user.module.css @@ -277,7 +277,7 @@ img.mclogo { position: relative; } -.profile.c:not(.cid0):not(.cid1):not(.cid2):not(.cid3):not(.cid4):not(.cid5):not(.cid2022000):not(.cid2023000)::before { +.profile.c:not(.cid0):not(.cid1):not(.cid2):not(.cid3):not(.cid4):not(.cid5):not(.cid2022000):not(.cid2023000):not(.cid2024100)::before { height: 80px; width: 80px; margin: 30px; diff --git a/src/func/generateChallengeBlock.js b/src/func/generateChallengeBlock.js index 566982e..7e51ba7 100644 --- a/src/func/generateChallengeBlock.js +++ b/src/func/generateChallengeBlock.js @@ -24,7 +24,7 @@ export default function generateObject(content, genLine = true, challengeId = -1 } let imageurl = "https://lolcdn.darkintaqt.com/cdn/np-token" + content.id - if (content.id < 10 || content.id === 2022000 || content.id === 2023000) { + if (content.id < 10 || content.id === 2022000 || content.id === 2023000 || content.id === 2024100) { if (content.id !== 0) { imageurl = "https://cdn.darkintaqt.com/lol/static/challenges/" + content.translation.name.toLowerCase().replace(" ", "") + ".svg" } diff --git a/src/func/showChallengePath.js b/src/func/showChallengePath.js index 0583dae..b540949 100644 --- a/src/func/showChallengePath.js +++ b/src/func/showChallengePath.js @@ -18,7 +18,7 @@ export default function showChallengePath(challenges, challenge) { // set category to parent if they are the same or parent is a key-capstone - if (category.id === 0 && parent.id !== 0 && (parent.id < 10 || parent.id === 2022000 || parent.id === 2023000)) { + if (category.id === 0 && parent.id !== 0 && (parent.id < 10 || parent.id === 2022000 || parent.id === 2023000 || parent.id === 2024100)) { category = parent } diff --git a/src/module/Challenge.js b/src/module/Challenge.js index 441b90e..52795ff 100644 --- a/src/module/Challenge.js +++ b/src/module/Challenge.js @@ -403,7 +403,7 @@ class Challenge extends Component { let icon = "https://lolcdn.darkintaqt.com/cdn/np-token/" + challenge["icon_2"] - if (challenge.challenge.id < 10 || challenge.challenge.id === 2022000 || challenge.challenge.id === 2023000) { + if (challenge.challenge.id < 10 || challenge.challenge.id === 2022000 || challenge.challenge.id === 2023000 || challenge.challenge.id === 2024100) { if (challenge.challenge.id !== 0) { icon = "https://cdn.darkintaqt.com/lol/static/challenges/" + challenge.challenge.translation.name.toLowerCase().replace(" ", "") + ".svg" } diff --git a/src/module/Challenges.js b/src/module/Challenges.js index b4d018c..23c28ed 100644 --- a/src/module/Challenges.js +++ b/src/module/Challenges.js @@ -274,6 +274,9 @@ class Challenges extends Component { if (parentId !== 2022000) { continue; } + if (parentId !== 2023000) { + continue; + } } else { continue; } @@ -438,9 +441,9 @@ class Challenges extends Component { legacy Legacy - -