Skip to content

Commit

Permalink
fix(tntgames): convert wizards air time from ticks to ms
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobk999 committed Jan 6, 2025
1 parent 8f0dfdd commit 718d841
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/schemas/src/player/gamemodes/tntgames/mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,9 @@ export class Wizards {
this.kdr = ratio(this.kills, this.deaths);
this.assists = data.assists_capture;
this.points = data.points_capture;
this.airTime = data.air_time_capture;
// air_time_capture is stored in ticks
// 1 tick = 50ms
this.airTime = (data.air_time_capture ?? 0) * 50;
this.powerOrbs = ap?.tntgames_power_hungry;

const score = this.wins ?? 0;
Expand Down

0 comments on commit 718d841

Please sign in to comment.