diff --git a/global.d.ts b/global.d.ts index 2ada8ed2d..c4d86b647 100644 --- a/global.d.ts +++ b/global.d.ts @@ -131,6 +131,7 @@ type Player = { interface ParsedPlayer extends Player { kills_log: any[]; + deaths_log: any[]; obs_log: any[]; purchase_log: any[]; pings: any; diff --git a/svc/api/responses/MatchResponse.ts b/svc/api/responses/MatchResponse.ts index 865139e56..bbac1b0f8 100644 --- a/svc/api/responses/MatchResponse.ts +++ b/svc/api/responses/MatchResponse.ts @@ -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",