Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ type Player = {

interface ParsedPlayer extends Player {
kills_log: any[];
deaths_log: any[];
obs_log: any[];
purchase_log: any[];
pings: any;
Expand Down
28 changes: 28 additions & 0 deletions svc/api/responses/MatchResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,34 @@ export default {
},
},
},
deaths_log: {
description:
"Array containing information on the player's deaths: when they died, to whom, the gold lost and the time spent dead. Only present for matches parsed after the field was added",
type: "array",
items: {
type: "object",
properties: {
time: {
description: "Time in seconds the player died",
type: "integer",
},
key: {
description: "Name of the killing unit",
type: "string",
},
gold_lost: {
description:
"Gold lost to this death (0 on patches without death gold loss)",
type: "integer",
},
time_dead: {
description:
"Seconds spent dead after this death. Absent if the match ended before the respawn",
type: "integer",
},
},
},
},
lane_pos: {
description: "Object containing information on lane position",
type: "object",
Expand Down
Loading