Skip to content
This repository was archived by the owner on Mar 18, 2023. It is now read-only.

Commit

Permalink
fix: game stats. update sample image.
Browse files Browse the repository at this point in the history
  • Loading branch information
estepanov committed Jun 29, 2018
1 parent 385850d commit 791aecf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ app.get('/api/:gamerTag/image.jpg', (req, res) => {
image.print(font, 10, 160, `${stats.ArenaStats.TotalAssassinations} Assassinations`)
image.print(font, 10, 175, `${stats.ArenaStats.TotalGrenadeKills} Grenade Kills`)
image.print(font, 10, 215, `${stats.ArenaStats.TotalGamesCompleted} Completed`)
image.print(font, 10, 230, `${stats.ArenaStats.TotalGamesWon} Wins`)
image.print(font, 10, 245, `${stats.ArenaStats.TotalGamesLost} Losses`)
image.print(font, 10, 260, `${((stats.ArenaStats.TotalGamesWon / stats.TotalGamesCompleted) * 100).toFixed(2)}% Win Percentage`)
image.print(font, 10, 230, `${stats.ArenaStats.TotalGamesWon} Wins (${((stats.ArenaStats.TotalGamesWon / stats.ArenaStats.TotalGamesCompleted) * 100).toFixed(2)}%)`)
image.print(font, 10, 245, `${stats.ArenaStats.TotalGamesLost} Losses (${((stats.ArenaStats.TotalGamesLost / stats.ArenaStats.TotalGamesCompleted) * 100).toFixed(2)}%)`)
return image
})
})
Expand Down
Binary file modified sample.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 791aecf

Please sign in to comment.