Skip to content

Commit

Permalink
fix fenn rau
Browse files Browse the repository at this point in the history
  • Loading branch information
sebald committed Nov 8, 2023
1 parent ffcbc56 commit 7e478bd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/data/display-values.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
"hmpdroidgunship": "HMP Droid Gunship"
},
"pilot": {
"fennrau-rebel-fang": "Fenn Rau (Fang Fighter)",
"bladesquadronveteran": "Blade Squadron Veteran",
"bluesquadronpilot": "Blue Squadron Pilot",
"braylenstramm": "Braylen Stramm",
Expand Down
10 changes: 9 additions & 1 deletion scripts/update-xwing-data.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ const manifest = read('data/manifest.json');
// Faction Data
// ---------------

// Not sure why we have to do this ...
const ADDITIONAL_PILOTS = {
'fennrau-rebel-fang': 'Fenn Rau (Fang Fighter)',
};

const PILOT_SUFFIX = {
// Faction Hint
'hansolo-scumandvillainy': 'Scum',
Expand Down Expand Up @@ -192,7 +197,7 @@ const upgrades = manifest.upgrades.reduce((o, file) => {
const display = {
faction: {},
ship: {},
pilot: {},
pilot: { ...ADDITIONAL_PILOTS },
upgrades: {},
};

Expand Down Expand Up @@ -231,6 +236,9 @@ read(manifest.factions[0]).forEach(({ xws: factionId, name, icon }) => {

Object.values(ship.pilots).forEach(pilot => {
display.pilot[pilot.id] = pilot.name;
if (/fenn/.test(pilot.id)) {
console.log(pilot.id, pilot.name);
}

if (pilot.standardLoadout) {
normalization[pilot.id] = {
Expand Down

1 comment on commit 7e478bd

@vercel
Copy link

@vercel vercel bot commented on 7e478bd Nov 8, 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.