From 0efe2fc7303caa2773494fe0dadee009ea9c7fbb Mon Sep 17 00:00:00 2001 From: Sainan Date: Thu, 19 Dec 2024 15:28:20 +0100 Subject: [PATCH] Profile Viewer: Improve accolade stuff --- profile.php | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/profile.php b/profile.php index 1ad7a15..2856ff9 100644 --- a/profile.php +++ b/profile.php @@ -321,6 +321,7 @@ this.select(); };*/ + const guideTiers = [0, "Junior Guide of the Lotus", "Senior Guide of the Lotus"]; const founderTiers = [0, "Disciple", "Hunter", "Master", "Grand Master"]; const clanTiers = [0, "Ghost", "Shadow", "Storm", "Mountain", "Moon"]; const syndicateTags = [ @@ -537,21 +538,28 @@ function renderProfile() { accolades.push("Staff"); } - if (profile.Results[0].Moderator) - { - accolades.push("Moderator"); - } - if (profile.Results[0].Partner) - { - accolades.push("Partner"); - } - if (profile.Results[0].Founder) - { - accolades.push("Founder (" + founderTiers[profile.Results[0].Founder] + ")"); - } - if (profile.Results[0].Accolades?.Heirloom) + else { - accolades.push("Heirloom"); + if (profile.Results[0].Moderator) + { + accolades.push("Moderator"); + } + if (profile.Results[0].Partner) + { + accolades.push("Partner"); + } + if (profile.Results[0].Guide) + { + accolades.push(guideTiers[profile.Results[0].Guide]); + } + if (profile.Results[0].Founder) + { + accolades.push("Founder (" + founderTiers[profile.Results[0].Founder] + ")"); + } + if (profile.Results[0].Accolades?.Heirloom) + { + accolades.push("Heirloom"); + } } if (accolades.length != 0) {