Skip to content

Commit

Permalink
fix: more broken IDs \o/
Browse files Browse the repository at this point in the history
  • Loading branch information
sebald committed Aug 2, 2023
1 parent b2dd00b commit e84ead8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/stats/module/pilot-skill-distribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ export const pilotSkillDistribution: () => StatModule<PilotSkillDistributionData
const skill = getPilotSkill(pilot.id);
// Ignore "Nashtah Pup"
if (skill === '*') return;
// DEBUG: This happens a lot so we leave this here...
// if (isNaN(skill) || skill < 0 || skill > 6) {
// console.log(pilot.id, skill);
// }
if (isNaN(skill) || skill < 0 || skill > 6) {
// DEBUG: This happens a lot so we leave this here...
// console.log(pilot.id, skill);
return;
}
store[skill] += 1;
},
get: () => ({ pilotSkillDistribution: store }),
Expand Down
1 change: 1 addition & 0 deletions lib/xws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const PILOT_ID_MAP = {
macewindudelta7b: 'macewindu-delta7baethersprite',
ahsokatanoawing: 'ahsokatano-rz1awing',
l337escapecraft: 'l337-escapecraft',
nomlumbrogue: 'nomlumb-rogueclassstarfighter',
// These ones are really dumb ...
'hansolo-rebelalliance': 'hansolo-modifiedyt1300lightfreighter',
'durge-separatistalliance': 'durge-separatistalliance',
Expand Down

1 comment on commit e84ead8

@vercel
Copy link

@vercel vercel bot commented on e84ead8 Aug 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.