Skip to content

Commit

Permalink
Merge pull request #2808 from Antosik/feat/neutral-token
Browse files Browse the repository at this point in the history
feat: add neutral_token drops data
  • Loading branch information
howardchung committed Sep 2, 2024
2 parents 2a19e7e + 3ed995e commit 0c413e0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ interface ParsedPlayer extends Player {
obs: any;
sen: any;
lane_role: number | null;
neutral_tokens_log: any[];

party_size?: number;

Expand Down
18 changes: 18 additions & 0 deletions routes/responses/MatchResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,24 @@ export default {
'Object containing information on certain benchmarks like GPM, XPM, KDA, tower damage, etc',
type: 'object',
},
neutral_tokens_log: {
description:
'Object containing information on neutral tokens drops',
type: 'array',
items: {
type: 'object',
properties: {
time: {
description: 'Time in seconds at which the token was dropped',
type: 'integer',
},
key: {
description: 'Type of token dropped',
type: 'string',
}
},
},
},
},
},
},
Expand Down
3 changes: 2 additions & 1 deletion sql/create_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ CREATE TABLE IF NOT EXISTS player_matches (
roshans_killed int,
observers_placed int,
party_size int,
net_worth int
net_worth int,
neutral_tokens_log json[]
);
CREATE INDEX IF NOT EXISTS player_matches_account_id_idx on player_matches(account_id) WHERE account_id IS NOT NULL;
CREATE INDEX IF NOT EXISTS player_matches_hero_id_idx on player_matches(hero_id);
Expand Down

0 comments on commit 0c413e0

Please sign in to comment.