Skip to content

Commit

Permalink
forgot the check
Browse files Browse the repository at this point in the history
  • Loading branch information
HybridFNBR committed Jun 18, 2024
1 parent 978a45c commit 270bcf2
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions api/controllers/ProfileController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"){
Expand Down

0 comments on commit 270bcf2

Please sign in to comment.