Skip to content

Instantly share code, notes, and snippets.

@lopopylopy
Created July 20, 2021 23:09
Show Gist options
  • Save lopopylopy/af0120da99deeef309ccac5b85aaf910 to your computer and use it in GitHub Desktop.
Save lopopylopy/af0120da99deeef309ccac5b85aaf910 to your computer and use it in GitHub Desktop.
const whatever = {
coins: player.stats.BuildBattle.coins,
score: player.stats.BuildBattle.score,
cosmetics: {
backdrop: player.stats.BuildBattle.selected_backdrop,
hat: player.stats.BuildBattle.new_selected_hat,
suit: player.stats.BuildBattle.new_suit,
trail: player.stats.BuildBattle.active_movement_trail,
victoryDance: player.stats.BuildBattle.new_victory_dance,
},
guessTheBuild: {
correct: player.stats.BuildBattle.correct_guesses,
wins: player.stats.BuildBattle.wins_guess_the_build,
},
overall: {
gamesPlayed: player.stats.BuildBattle.games_played,
votes: player.stats.BuildBattle.total_votes,
wins: player.stats.BuildBattle.wins,
},
pro: {
wins: player.stats.BuildBattle.wins_solo_pro,
},
solo: {
wins: player.stats.BuildBattle.wins_solo_normal,
},
teams: {
wins: player.stats.BuildBattle.wins_teams_normal,
},
title: {
hex: null, // function that returns hex code of title
type: null, // function that returns type of title
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment