Skip to content

Commit

Permalink
Merge pull request #9 from exogen/accuracy-leaderboard-grenade-launcher
Browse files Browse the repository at this point in the history
Add grenade launcher stats to accuracy leaderboard
  • Loading branch information
amineo authored Sep 25, 2021
2 parents c42b05e + 01c2b8b commit 79a8d4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/api/src/common/dto/top-players-query.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ const hitStats = [
'laserMATG',
'cgHitsTG',
'shockHitsTG',
'grenadeHitsTG',
'grenadeDmgHitsTG',
'grenadeMATG',
] as const;

type Stat = typeof hitStats[number];
Expand Down
3 changes: 3 additions & 0 deletions app/api/src/players/players.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ export class PlayersService {
laserMATG: 'laserShotsFiredTG',
cgHitsTG: 'cgShotsFiredTG',
shockHitsTG: 'shockShotsFiredTG',
grenadeDmgHitsTG: 'grenadeShotsFiredTG',
grenadeHitsTG: 'grenadeShotsFiredTG',
grenadeMATG: 'grenadeShotsFiredTG',
}[hitsStat];

// Possibly make this a query param at some point?
Expand Down

0 comments on commit 79a8d4e

Please sign in to comment.