diff --git a/public/images/poster_back.png b/public/images/poster_back.png new file mode 100644 index 0000000..bd01cc8 Binary files /dev/null and b/public/images/poster_back.png differ diff --git a/public/images/poster_front.png b/public/images/poster_front.png new file mode 100644 index 0000000..245d6ae Binary files /dev/null and b/public/images/poster_front.png differ diff --git a/responses/Athena/Tournament/history.json b/responses/Athena/Tournament/history.json new file mode 100644 index 0000000..4fde6a1 --- /dev/null +++ b/responses/Athena/Tournament/history.json @@ -0,0 +1,444 @@ +[ + { + "scoreKey": { + "gameId": "Fortnite", + "eventId": "lawinstournamentidlol", + "eventWindowId": "lawinswindowidlol", + "_scoreId": null + }, + "teamId": "", + "teamAccountIds": [], + "liveSessionId": null, + "pointsEarned": 69, + "score": 69.0, + "rank": 1, + "percentile": 0.03125, + "pointBreakdown": { + "TEAM_ELIMS_STAT_INDEX:1": { + "timesAchieved": 8, + "pointsEarned": 5 + }, + "PLACEMENT_STAT_INDEX:2": { + "timesAchieved": 7, + "pointsEarned": 64 + } + }, + "sessionHistory": [ + { + "sessionId": "lawinsessionid1lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid2lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid3lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid4lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid5lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid6lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid7lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid8lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid9lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid10lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid11lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid12lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid13lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid14lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid15lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid16lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid17lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid18lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid19lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid20lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid21lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid22lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid23lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + } + ], + "unscoredSessions": [] + } +] \ No newline at end of file diff --git a/responses/Athena/Tournament/leaderboard.json b/responses/Athena/Tournament/leaderboard.json new file mode 100644 index 0000000..34d17a4 --- /dev/null +++ b/responses/Athena/Tournament/leaderboard.json @@ -0,0 +1,451 @@ +{ + "gameId": "Fortnite", + "eventId": "lawinstournamentidlol", + "eventWindowId": "lawinswindowidlol", + "page": 0, + "totalPages": 1, + "updatedTime": "2018-10-16T20:00:00Z", + "entryTemplate": { + "gameId": "Fortnite", + "eventId": "lawinstournamentidlol", + "eventWindowId": "lawinswindowidlol", + "teamAccountIds": [], + "pointsEarned": 1, + "score": 1.0, + "rank": 1, + "percentile": 0.1, + "tokens": [ + "GroupIdentity_GeoIdentity_fortnite" + ], + "teamId": "", + "liveSessionId": null, + "pointBreakdown": { + "PLACEMENT_STAT_INDEX:13": { + "timesAchieved": 1, + "pointsEarned": 2 + }, + "TEAM_ELIMS_STAT_INDEX:37": { + "timesAchieved": 2, + "pointsEarned": 8 + } + }, + "sessionHistory": [ + { + "sessionId": "lawinsessionid1lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid2lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid3lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid4lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid5lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid6lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid7lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid8lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid9lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid10lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid11lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid12lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid13lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid14lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid15lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid16lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid17lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid18lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid19lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid20lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid21lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid22lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + }, + { + "sessionId": "lawinsessionid23lol", + "endTime": "2018-10-16T20:00:00Z", + "trackedStats": { + "PLACEMENT_STAT_INDEX": 24, + "GainedHealthTimes": 22, + "TIME_ALIVE_STAT": 20, + "MATCH_PLAYED_STAT": 18, + "PLACEMENT_TIEBREAKER_STAT": 16, + "DamageDealt": 14, + "DamageReceived": 12, + "VICTORY_ROYALE_STAT": 10, + "Headshots": 8, + "Travel_Distance_Ground": 6, + "TEAM_ELIMS_STAT_INDEX": 4, + "GainedShieldTimes": 2 + } + } + ] + }, + "entries": [], + "liveSessions": {} +} \ No newline at end of file diff --git a/responses/Athena/Tournament/tournament.json b/responses/Athena/Tournament/tournament.json new file mode 100644 index 0000000..a6f5ae6 --- /dev/null +++ b/responses/Athena/Tournament/tournament.json @@ -0,0 +1,300 @@ +{ + "player": { + "tokens": [ + "ARENA_Division2", + "ARENA_S11_Division1", + "Arena_S24_Division1", + "LGArena_S21_v2_Division1" + ], + "gameId": "Fortnite", + "accountId": "b7a7f61a84b044cba603cbc2db89311e", + "teams": {}, + "pendingPayouts": [], + "pendingPenalties": {}, + "persistentScores": { + "Hype": 39, + "Hype_S11": 0, + "Hype_S24_P": 30, + "LGHype_S21_Pv2": 3 + }, + "groupIdentity": {} + }, + "scoringRuleSets": { + "lawinscoringruleslol": [ + { + "trackedStat": "PLACEMENT_STAT_INDEX", + "matchRule": "lte", + "rewardTiers": [ + { + "keyValue": 1, + "pointsEarned": 2, + "multiplicative": false + } + ] + }, + { + "trackedStat": "TEAM_ELIMS_STAT_INDEX", + "matchRule": "gte", + "rewardTiers": [ + { + "keyValue": 1, + "pointsEarned": 3, + "multiplicative": false + }, + { + "keyValue": 2, + "pointsEarned": 1, + "multiplicative": false + }, + { + "keyValue": 3, + "pointsEarned": 7, + "multiplicative": false + } + ] + } + ] + }, + "events": [ + { + "gameId": "Fortnite", + "eventId": "lawinstournamentidlol", + "beginTime": "2018-10-16T17:00:00Z", + "endTime": "2018-10-16T20:00:00Z", + "displayDataId": "lawinserver_cup", + "eventGroup": "lawinseventgrouplol", + "announcementTime": "2024-04-20T08:00:00Z", + "regions": [ + "ASIA", + "BR", + "EU", + "ME", + "NAE", + "NAW", + "OCE" + ], + "regionMappings": {}, + "platforms": [ + "XboxOneGDK", + "PS4", + "XCloud", + "Helios", + "Luna", + "XCloudMobile", + "XB1", + "XboxOne", + "XSX", + "Android", + "LunaMobile", + "PS5", + "HeliosMobile", + "GFN", + "Switch", + "GFNMobile", + "Windows" + ], + "platformMappings": {}, + "appId": null, + "environment": null, + "metadata": { + "TeamLockType": "Window", + "minimumAccountLevel": 15, + "DisqualifyType": "Window", + "RegionLockType": "Window", + "AccountLockType": "Window" + }, + "eventWindows": [ + { + "eventWindowId": "lawinswindowidlol", + "eventTemplateId": "EventTemplate_lawinswindowidlol", + "countdownBeginTime": "2018-10-16T15:00:00Z", + "beginTime": "2018-10-16T17:00:00Z", + "endTime": "2018-10-16T20:00:00Z", + "round": 0, + "payoutDelay": 32, + "isTBD": false, + "leaderboardId": "lawinsleaderboardidlol", + "visibility": "public", + "teammateEligibility": "all", + "blackoutPeriods": [], + "scoreLocations": [ + { + "leaderboardId": "lawinsleaderboardidlol", + "leaderboardDefId": "lawinsleaderboardidlol", + "scoreId": null, + "scoreMode": "window", + "isMainWindowLeaderboard": true, + "windowEndCondition": null + } + ], + "canLiveSpectate": false, + "requireAllTokens": [], + "requireAnyTokens": [], + "requireNoneTokensCaller": [], + "requireAllTokensCaller": [], + "requireAnyTokensCaller": [], + "additionalRequirements": [], + "regionMappings": null, + "metadata": { + "ServerReplays": false, + "RoundType": "Qualifiers", + "liveSpectateAccessToken": "WeeklyTournamentSpectator" + } + } + ], + "link": { + "type": "br:tournament", + "code": "tournament_lawinstournamentidlol", + "version": 1 + } + } + ], + "templates": [ + { + "playlistId": "Playlist_DefaultSolo", + "matchCap": 23, + "tiebreakerFormula": { + "basePointsBits": 11, + "components": [ + { + "trackedStat": "VICTORY_ROYALE_STAT", + "bits": 4, + "aggregation": "sum", + "multiplier": null + }, + { + "trackedStat": "TEAM_ELIMS_STAT_INDEX", + "bits": 13, + "aggregation": "avg", + "multiplier": 100 + }, + { + "trackedStat": "PLACEMENT_TIEBREAKER_STAT", + "bits": 14, + "aggregation": "avg", + "multiplier": 100 + }, + { + "trackedStat": "TIME_ALIVE_STAT", + "bits": 11, + "aggregation": "avg", + "multiplier": null + } + ] + }, + "gameId": "Fortnite", + "eventTemplateId": "EventTemplate_lawinswindowidlol", + "scoringRules": [ + { + "trackedStat": "PLACEMENT_STAT_INDEX", + "mathRule": "lte", + "rewardTiers": [ + { + "keyValue": 1, + "pointsEarned": 2, + "multiplicative": false + } + ] + }, + { + "trackedStat": "TEAM_ELIMS_STAT_INDEX", + "mathRule": "gte", + "rewardTiers": [ + { + "keyValue": 1, + "pointsEarned": 3, + "multiplicative": false + }, + { + "keyValue": 2, + "pointsEarned": 1, + "multiplicative": false + }, + { + "keyValue": 3, + "pointsEarned": 7, + "multiplicative": false + } + ] + } + ], + "payoutTable": [ + { + "scoringType": "rank", + "ranks": [ + { + "threshold": 1337, + "payouts": [ + { + "rewardType": "game", + "rewardMode": "standard", + "value": "Token:campaignaccess", + "quantity": 1 + } + ] + } + ], + "scoreId": null + } + ], + "liveSessionAttributes": [], + "clampsToZero": false, + "onlyScoreTopN": null + } + ], + "scores": [], + "leaderboardDefs": [ + { + "gameId": "Fortnite", + "leaderboardDefId": "lawinsleaderboardidlol", + "leaderboardStorageId": "Fortnite_GLOBAL", + "leaderboardInstanceGroupingKeyFormat": "${eventId}", + "leaderboardInstanceIdFormat": "${windowId}", + "maxSessionHistorySize": 10, + "useIndividualScores": false, + "tiebreakerFormula": { + "basePointsBits": 11, + "components": [ + { + "trackedStat": "VICTORY_ROYALE_STAT", + "bits": 4, + "aggregation": "sum", + "multiplier": null + }, + { + "trackedStat": "TEAM_ELIMS_STAT_INDEX", + "bits": 13, + "aggregation": "avg", + "multiplier": 100 + }, + { + "trackedStat": "PLACEMENT_TIEBREAKER_STAT", + "bits": 14, + "aggregation": "avg", + "multiplier": 100 + }, + { + "trackedStat": "TIME_ALIVE_STAT", + "bits": 11, + "aggregation": "avg", + "multiplier": null + } + ] + }, + "scoringRuleSetId": "lawinscoringruleslol", + "clampsToZero": true, + "onlyScoreTopN": null, + "payoutsConfig": null, + "bestNTeams": null, + "hidePlayerScores": false, + "percentileAccuracy": 1, + "requiredPlayerListings": [], + "invalidScoreThreshold": null + } + ], + "resolvedWindowLocations": { + "Fortnite:lawinstournamentidlol:lawinswindowidlol": [ + "Fortnite:lawinstournamentidlol:lawinswindowidlol" + ] + } +} diff --git a/responses/Athena/Tournament/tournamentandhistory.json b/responses/Athena/Tournament/tournamentandhistory.json new file mode 100644 index 0000000..a1c2b8a --- /dev/null +++ b/responses/Athena/Tournament/tournamentandhistory.json @@ -0,0 +1,141 @@ +{ + "author": "This response was recreated by PRO100KatYT for versions using the tournamentandhistory route (v6.10-v7.20)", + "eventTournaments": [ + { + "tournamentId": "lawinstournamentidlol", + "regions": [ + "ASIA", + "BR", + "EU", + "ME", + "NAE", + "NAW", + "OCE" + ], + "platformGroups": [ + "XboxOneGDK", + "PS4", + "XCloud", + "Helios", + "Luna", + "XCloudMobile", + "XB1", + "XboxOne", + "XSX", + "Android", + "LunaMobile", + "PS5", + "HeliosMobile", + "GFN", + "Switch", + "GFNMobile", + "Windows" + ], + "displayDataId": "lawinserver_cup", + "announcementTime": "2018-10-16T08:00:00Z", + "beginTime": "2018-10-16T17:00:00Z", + "endTime": "2018-10-16T20:00:00Z", + "eventWindows": [ + { + "eventWindowId": "lawinswindowidlol", + "countdownBeginTime": "2018-10-16T15:00:00Z", + "beginTime": "2018-10-16T17:00:00Z", + "endTime": "2018-10-16T20:00:00Z", + "isTBD": false, + "eventData": { + "playlistId": "Playlist_DefaultSolo", + "scoringRules": [ + { + "trackedStat": "PLACEMENT_STAT_INDEX", + "mathRule": "lte", + "rewardTiers": [ + { + "keyValue": 1, + "pointsEarned": 2 + } + ] + }, + { + "trackedStat": "TEAM_ELIMS_STAT_INDEX", + "mathRule": "gte", + "rewardTiers": [ + { + "keyValue": 1, + "pointsEarned": 3 + }, + { + "keyValue": 2, + "pointsEarned": 1 + }, + { + "keyValue": 3, + "pointsEarned": 7 + } + ] + } + ], + "rewardTable": [ + { + "pointsEarned": 69, + "mcpTokenRewards": [ + "Token:campaignaccess" + ] + } + ] + } + } + ] + } + ], + "eventWindowHistories": [ + { + "tournamentId": "lawinstournamentidlol", + "eventWindowId": "lawinswindowidlol", + "matchIds": [ + "lawinsmatchid1lol", + "lawinsmatchid2lol", + "lawinsmatchid3lol", + "lawinsmatchid4lol", + "lawinsmatchid5lol", + "lawinsmatchid6lol", + "lawinsmatchid7lol", + "lawinsmatchid8lol", + "lawinsmatchid9lol", + "lawinsmatchid10lol", + "lawinsmatchid11lol", + "lawinsmatchid12lol", + "lawinsmatchid13lol", + "lawinsmatchid14lol", + "lawinsmatchid15lol", + "lawinsmatchid16lol", + "lawinsmatchid17lol", + "lawinsmatchid18lol", + "lawinsmatchid19lol", + "lawinsmatchid20lol", + "lawinsmatchid21lol", + "lawinsmatchid22lol", + "lawinsmatchid23lol" + ], + "teammateIds": [ + "lawin", + "ti93", + "pro100katyt", + "playeereq", + "matteoki" + ], + "payload": { + "pointsEarned": 69, + "pointBreakdown": { + "TEAM_ELIMS_STAT_INDEX:1": { + "timesAchieved": 8, + "pointsEarned": 5 + }, + "PLACEMENT_STAT_INDEX:2": { + "timesAchieved": 7, + "pointsEarned": 64 + } + } + } + } + ] +} diff --git a/responses/Campaign/heroNames.json b/responses/Campaign/heroNames.json new file mode 100644 index 0000000..87c6a80 --- /dev/null +++ b/responses/Campaign/heroNames.json @@ -0,0 +1,34 @@ +[ + "Hawk", + "Banshee", + "Wildcat", + "Jonsey", + "Spitfire", + "Ramirez", + "Headhunter", + "Renegade", + "Harper", + "Knox", + "Hype", + "Bull", + "Hazard", + "Penny", + "Izza", + "Kyle", + "Luna", + "Crash", + "Edge", + "Scorpion", + "Scorch", + "Ken", + "Mari", + "Sarah", + "Grizzly", + "Eagle_Eye", + "Southie", + "A.C.", + "Buzz", + "Quinn", + "Jess", + "Deadeye" +] diff --git a/responses/contentpages.json b/responses/contentpages.json index dc648f1..583b017 100644 --- a/responses/contentpages.json +++ b/responses/contentpages.json @@ -1352,28 +1352,29 @@ "tournaments": [ { "title_color": "FFFFFF", - "loading_screen_image": "https://fortnite-public-service-prod11.ol.epicgames.com/images/lawin.jpg", - "background_text_color": "1B1B1B", - "background_right_color": "DD091A", - "poster_back_image": "https://fortnite-public-service-prod11.ol.epicgames.com/images/lawin.jpg", + "loading_screen_image": "https://fortnite-public-service-prod11.ol.epicgames.com/images/motd.png", + "background_text_color": "040E4C", + "background_right_color": "012162", + "poster_back_image": "https://fortnite-public-service-prod11.ol.epicgames.com/images/poster_back.png", "_type": "Tournament Display Info", - "pin_earned_text": "lawin is the winner!", - "tournament_display_id": "s11_switchcup", - "highlight_color": "FFFFFF", - "schedule_info": "November 2nd & 3rd: 2pm - 5pm JST", + "pin_score_requirement": 420, + "pin_earned_text": "Lawin is the winner!", + "tournament_display_id": "lawinserver_cup", + "highlight_color": "F7FF00", + "schedule_info": "Oct 16th 2018", "primary_color": "FFFFFF", - "flavor_description": "cool", - "poster_front_image": "https://fortnite-public-service-prod11.ol.epicgames.com/images/lawin.jpg", - "short_format_title": "Event Sessions", - "title_line_2": "boomer", - "title_line_1": "Solo", - "shadow_color": "1B1B1B", - "details_description": "ok", - "background_left_color": "F81B2D", - "long_format_title": "nice", - "poster_fade_color": "DD091A", - "secondary_color": "1B1B1B", - "playlist_tile_image": "https://fortnite-public-service-prod11.ol.epicgames.com/images/lawin.jpg", + "flavor_description": "Have a phenomenal gaming experience!", + "poster_front_image": "https://fortnite-public-service-prod11.ol.epicgames.com/images/poster_front.png", + "short_format_title": "", + "title_line_2": "Solo", + "title_line_1": "LawinServer Cup", + "shadow_color": "000F4A", + "details_description": "LAWINSERVER CUP", + "background_left_color": "0076C3", + "long_format_title": "", + "poster_fade_color": "0076C3", + "secondary_color": "000F4A", + "playlist_tile_image": "https://fortnite-public-service-prod11.ol.epicgames.com/images/motd-s.png", "base_color": "FFFFFF" } ], diff --git a/structure/main.js b/structure/main.js index 00ecf1a..3cd4ca7 100644 --- a/structure/main.js +++ b/structure/main.js @@ -131,8 +131,10 @@ express.get("/socialban/api/public/v1/*", async (req, res) => { }); }) -express.get("/fortnite/api/game/v2/events/tournamentandhistory/*/EU/WindowsClient", async (req, res) => { - res.json({}); +express.get("/fortnite/api/game/v2/events/tournamentandhistory/*", async (req, res) => { + const tournamentandhistory = require("./../responses/Athena/Tournament/tournamentandhistory.json"); + + res.json(tournamentandhistory) }) express.get("/fortnite/api/statsv2/account/:accountId", async (req, res) => { @@ -185,9 +187,61 @@ express.get("/fortnite/api/game/v2/enabled_features", async (req, res) => { }) express.get("/api/v1/events/Fortnite/download/*", async (req, res) => { - res.json({}) + const tournament = require("./../responses/Athena/Tournament/tournament.json"); + + res.json(tournament) }) +express.get("/api/v1/events/Fortnite/:eventId/history/:accountId", async (req, res) => { + var history = require("./../responses/Athena/Tournament/history.json"); + history[0].scoreKey.eventId = req.params.eventId; + history[0].teamId = req.params.accountId; + history[0].teamAccountIds.push(req.params.accountId); + + res.json(history) +}) + +express.get("/api/v1/leaderboards/Fortnite/:eventId/:eventWindowId/:accountId", async (req, res) => { + var leaderboards = require("./../responses/Athena/Tournament/leaderboard.json"); + var heroNames = require("./../responses/Campaign/heroNames.json"); + heroNames = heroNames.sort(() => Math.random() - 0.5); + heroNames.unshift(req.params.accountId); + + leaderboards.eventId = req.params.eventId; + leaderboards.eventWindowId = req.params.eventWindowId; + + var entryTemplate = leaderboards.entryTemplate; + var sessionHistoryTemplate = leaderboards.sessionHistoryTemplate; + + for (var i = 0; i < heroNames.length; i++) { + var entry = { ...entryTemplate }; + entry.eventId = req.params.eventId; + entry.eventWindowId = req.params.eventWindowId; + + entry.teamAccountIds = [heroNames[i]]; + entry.teamId = heroNames[i]; + + entry.pointsEarned = entry.score = 69 - i; + var splittedPoints = Math.floor(Math.random() * entry.pointsEarned); + entry.pointBreakdown = { + "PLACEMENT_STAT_INDEX:13": { + "timesAchieved": 13, + "pointsEarned": splittedPoints + }, + "TEAM_ELIMS_STAT_INDEX:37": { + "timesAchieved": 13, + "pointsEarned": entry.pointsEarned - splittedPoints + } + }; + entry.rank = i + 1; + + leaderboards.entries.push(entry) + } + + res.json(leaderboards) +}) + + express.get("/fortnite/api/game/v2/twitch/*", async (req, res) => { res.status(200); res.end(); @@ -250,46 +304,13 @@ express.post("/fortnite/api/leaderboards/type/group/stat/:statName/window/:statW }); express.post("/fortnite/api/leaderboards/type/global/stat/:statName/window/:statWindow", async (req, res) => { - var HeroNames = [ - "Hawk", - "Banshee", - "Wildcat", - "Jonsey", - "Spitfire", - "Ramirez", - "Headhunter", - "Renegade", - "Harper", - "Knox", - "Hype", - "Bull", - "Hazard", - "Penny", - "Izza", - "Kyle", - "Luna", - "Crash", - "Edge", - "Scorpion", - "Scorch", - "Ken", - "Mari", - "Sarah", - "Grizzly", - "Eagle Eye", - "Southie", - "A.C.", - "Buzz", - "Quinn", - "Jess", - "Deadeye" - ] + var heroNames = require("./../responses/Campaign/heroNames.json"); var entries = []; - for (var i = 0; i < HeroNames.length; i++) { + for (var i = 0; i < heroNames.length; i++) { entries.push({ - "accountId": HeroNames[i], + "accountId": heroNames[i], "value": Math.floor(Math.random() * 68) + 1 }) }