Skip to content

Commit

Permalink
fix: pilot cost
Browse files Browse the repository at this point in the history
  • Loading branch information
sebald committed Oct 2, 2023
1 parent 82f6602 commit 230c9f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/stats/module/pilot-cost-distribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ export const pilotCostDistribution: () => StatModule<PilotCostDistributionData>
return {
pilot: pilot => {
const points = pilot.points as 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
if (isNaN(points) || points < 0 || points > 9) {
// DEBUG: This happens a lot so we leave this here...
// console.log(pilot.id, points);
return;
}
store[points] += 1;
},
get: () => ({ pilotCostDistribution: store }),
Expand Down

0 comments on commit 230c9f9

Please sign in to comment.