Skip to content

Commit

Permalink
fix: pubg telemtry api rename of LogPlayerKillV2
Browse files Browse the repository at this point in the history
  • Loading branch information
dominickolbe committed Sep 3, 2021
1 parent 3616303 commit a552220
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/pubg-frontend/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export const parseMatchTelemetryByPlayer = (
// with different event types
if ("_T" in event) {
switch (event._T) {
case "LogPlayerKill":
case "LogPlayerKillV2":
// Player killed by bluezone
// damageTypeCategory ="Damage_BlueZone"
if (event.killer === null) return;
Expand Down
2 changes: 1 addition & 1 deletion packages/pubg-model/runtypes/Telemtry/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const RtTelemtryEvent_Any = rt.Record({
});

export const RtTelemtryEvent_PlayerKill = rt.Record({
_T: rt.Literal("LogPlayerKill"),
_T: rt.Literal("LogPlayerKillV2"),
_D: rt.String,
damageTypeCategory: rt.String,
damageCauserName: rt.String,
Expand Down

0 comments on commit a552220

Please sign in to comment.