From 270bcf2951c4412af45c7541979efed9dbd9c0e6 Mon Sep 17 00:00:00 2001 From: Joshua <68912574+HybridFNBR@users.noreply.github.com> Date: Tue, 18 Jun 2024 21:53:44 +0100 Subject: [PATCH] forgot the check --- api/controllers/ProfileController.js | 41 ++++++++++++++-------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/api/controllers/ProfileController.js b/api/controllers/ProfileController.js index 3e2efbe..01d6ffb 100644 --- a/api/controllers/ProfileController.js +++ b/api/controllers/ProfileController.js @@ -348,27 +348,28 @@ module.exports = { case "QueryProfile": { - var pastSeasons = []; - for (var i = 1; i <= 100; i++) { - pastSeasons.push({ - "seasonNumber": i, - "numWins": 10000, - "seasonXp": 1000000, - "seasonLevel": 500, - "level": 200, - "bookXp": 1000000, - "bookLevel": 500, - "purchasedVIP": true - }); + if(profileId == "athena"){ + var pastSeasons = []; + for (var i = 1; i <= 100; i++) { + pastSeasons.push({ + "seasonNumber": i, + "numWins": 10000, + "seasonXp": 1000000, + "seasonLevel": 500, + "level": 200, + "bookXp": 1000000, + "bookLevel": 500, + "purchasedVIP": true + }); + } + Profile.modifyStat(athenprofile, "book_level", 200) + Profile.modifyStat(athenprofile, "level", 200) + Profile.modifyStat(athenprofile, "accountLevel", 200) + Profile.modifyStat(athenprofile, "season_num", versionGlobal) + Profile.modifyStat(athenprofile, "past_seasons", pastSeasons) + Profile.saveProfile(accountId, "athena", athenprofile); + Profile.bumpRvn(athenprofile); } - Profile.modifyStat(athenprofile, "book_level", 200) - Profile.modifyStat(athenprofile, "level", 200) - Profile.modifyStat(athenprofile, "accountLevel", 200) - Profile.modifyStat(athenprofile, "season_num", versionGlobal) - Profile.modifyStat(athenprofile, "past_seasons", pastSeasons) - Profile.saveProfile(accountId, "athena", athenprofile); - Profile.bumpRvn(athenprofile); - if(config.simpleProfile == true){simpleProfile(accountId, athenprofile)} if(version >= 28.00){ if(profileId == "athena"){