From 364c0f71242d480eb17396a28a7de6b7442b9884 Mon Sep 17 00:00:00 2001 From: ThePoptartCrpr Date: Sun, 28 Oct 2018 10:35:37 -0700 Subject: [PATCH 1/3] Added some early player stats documentation --- routes/spec.js | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/routes/spec.js b/routes/spec.js index 4cbc1ae6..0413a299 100644 --- a/routes/spec.js +++ b/routes/spec.js @@ -198,7 +198,77 @@ const spec = { }, }, stats: { + description: 'Player stats across all minigames', type: 'object', + properties: { + Arcade: { + description: 'Player stats in the Arcade Games', + type: 'object', + properties: { + coins: { + description: 'Coins in the Arcade Games', + type: 'integer', + }, + }, + }, + Arena: { + description: 'Player stats in Arena Brawl', + type: 'object', + properties: { + coins: { + description: 'Current coins', + type: 'integer', + }, + coins_spent: { + description: 'Total coins spent in Arena Brawl', + type: 'integer', + }, + hat: { + description: 'Selected hat', + type: 'string', + }, + penalty: { + type: 'integer', + }, + magical_chest: { + type: 'integer', + }, + keys: { + description: 'Current number of Magical Chest keys', + type: 'integer', + }, + selected_sword: { + type: 'object', + }, + active_rune: { + type: 'object', + }, + skills: { + type: 'object', + }, + combat_levels: { + type: 'object', + }, + rune_levels: { + type: 'object', + }, + gamemodes: { + description: 'Stats in specific Arena gamemodes', + type: 'object', + }, + }, + }, + Battleground: { + description: 'Player stats in Warlords', + type: 'object', + properties: { + coins: { + description: 'Current coins in Warlords', + type: 'integer', + }, + }, + }, + }, }, }, }, From dec53a7f9fe38b185d919a0976b8eb89c69cd89a Mon Sep 17 00:00:00 2001 From: ThePoptartCrpr Date: Tue, 30 Oct 2018 15:07:28 -0700 Subject: [PATCH 2/3] Added some gamemode documentation for Arena stats --- routes/spec.js | 62 ++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 60 insertions(+), 2 deletions(-) diff --git a/routes/spec.js b/routes/spec.js index 0413a299..1d764df6 100644 --- a/routes/spec.js +++ b/routes/spec.js @@ -238,10 +238,10 @@ const spec = { type: 'integer', }, selected_sword: { - type: 'object', + type: 'string', }, active_rune: { - type: 'object', + type: 'string', }, skills: { type: 'object', @@ -255,6 +255,64 @@ const spec = { gamemodes: { description: 'Stats in specific Arena gamemodes', type: 'object', + properties: { + one_v_one: { + description: 'Specific stats in 1v1 Arena', + type: 'object', + properties: { + damage: { + description: 'Total damage dealt in 1v1 Arena', + type: 'integer', + }, + kills: { + description: 'Total kills in 1v1 Arena', + type: 'integer', + }, + deaths: { + description: 'Total deaths in 1v1 Arena', + type: 'integer', + }, + losses: { + description: 'Total losses in 1v1 Arena', + type: 'integer', + }, + wins: { + description: 'Total wins in 1v1 Arena', + type: 'integer', + }, + win_streaks: { + description: 'Highest win streak in 1v1 Arena', + type: 'integer', + }, + games: { + description: 'Total games played in 1v1 Arena', + type: 'integer', + }, + healed: { + description: 'Total health healed in 1v1 Arena', + type: 'integer', + }, + kd: { + description: 'Kill/death ratio in 1v1 Arena', + type: 'number', + }, + win_loss: { + description: 'Win/loss ratio in 1v1 Arena', + type: 'number', + }, + win_percentage: { + description: 'Win percentage out of games played in 1v1 Arena', + type: 'number', + }, + }, + }, + two_v_two: { + + }, + four_v_four: { + + }, + }, }, }, }, From 7c281af561a135cb63e6cb90cdd90a67b9f957f9 Mon Sep 17 00:00:00 2001 From: ThePoptartCrpr Date: Tue, 30 Oct 2018 15:13:07 -0700 Subject: [PATCH 3/3] Added 2v2 and 4v4 --- routes/spec.js | 98 ++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 96 insertions(+), 2 deletions(-) diff --git a/routes/spec.js b/routes/spec.js index 1d764df6..290245fe 100644 --- a/routes/spec.js +++ b/routes/spec.js @@ -307,10 +307,104 @@ const spec = { }, }, two_v_two: { - + description: 'Specific stats in 2v2 Arena', + type: 'object', + properties: { + damage: { + description: 'Total damage dealt in 2v2 Arena', + type: 'integer', + }, + kills: { + description: 'Total kills in 2v2 Arena', + type: 'integer', + }, + deaths: { + description: 'Total deaths in 2v2 Arena', + type: 'integer', + }, + losses: { + description: 'Total losses in 2v2 Arena', + type: 'integer', + }, + wins: { + description: 'Total wins in 2v2 Arena', + type: 'integer', + }, + win_streaks: { + description: 'Highest win streak in 2v2 Arena', + type: 'integer', + }, + games: { + description: 'Total games played in 2v2 Arena', + type: 'integer', + }, + healed: { + description: 'Total health healed in 2v2 Arena', + type: 'integer', + }, + kd: { + description: 'Kill/death ratio in 2v2 Arena', + type: 'number', + }, + win_loss: { + description: 'Win/loss ratio in 2v2 Arena', + type: 'number', + }, + win_percentage: { + description: 'Win percentage out of games played in 2v2 Arena', + type: 'number', + }, + }, }, four_v_four: { - + description: 'Specific stats in 4v4 Arena', + type: 'object', + properties: { + damage: { + description: 'Total damage dealt in 4v4 Arena', + type: 'integer', + }, + kills: { + description: 'Total kills in 4v4 Arena', + type: 'integer', + }, + deaths: { + description: 'Total deaths in 4v4 Arena', + type: 'integer', + }, + losses: { + description: 'Total losses in 4v4 Arena', + type: 'integer', + }, + wins: { + description: 'Total wins in 4v4 Arena', + type: 'integer', + }, + win_streaks: { + description: 'Highest win streak in 4v4 Arena', + type: 'integer', + }, + games: { + description: 'Total games played in 4v4 Arena', + type: 'integer', + }, + healed: { + description: 'Total health healed in 4v4 Arena', + type: 'integer', + }, + kd: { + description: 'Kill/death ratio in 4v4 Arena', + type: 'number', + }, + win_loss: { + description: 'Win/loss ratio in 4v4 Arena', + type: 'number', + }, + win_percentage: { + description: 'Win percentage out of games played in 4v4 Arena', + type: 'number', + }, + }, }, }, },