Skip to content

Commit

Permalink
feat: update yasb and xws data
Browse files Browse the repository at this point in the history
  • Loading branch information
sebald committed Jul 3, 2024
1 parent 9a1b0e9 commit 6125b07
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 10 deletions.
17 changes: 14 additions & 3 deletions lib/data/display-values.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
"blacksunenforcer": "Black Sun Enforcer",
"blacksunsoldier": "Black Sun Soldier",
"bladesquadronveteran": "Blade Squadron Veteran",
"blanks": "blanks",
"bluesquadronescort": "Blue Squadron Escort",
"bluesquadronpilot": "Blue Squadron Pilot",
"bluesquadronprotector": "Blue Squadron Protector",
Expand Down Expand Up @@ -256,7 +257,7 @@
"darthvader-swz105": "Darth Vader (SSP)",
"darthvader-tieddefender": "Darth Vader (TIE Defender)",
"dashrendar": "Dash Rendar",
"dashrendar-swz103": "Dash Rendar (YLF)",
"dashrendar-swz103-rebelalliance": "Dash Rendar (YLF)",
"dashrendar-swz103-sl-rebelalliance": "Dash Rendar (YLF-SL)",
"dashrendar-swz103-sl-scumandvillainy": "Dash Rendar (Scum)",
"dbs32c": "DBS-32C",
Expand Down Expand Up @@ -303,6 +304,7 @@
"elloasty": "Ello Asty",
"ember": "\"Ember\"",
"emonazzameen": "Emon Azzameen",
"empty": "empty",
"epsilonsquadroncadet": "Epsilon Squadron Cadet",
"esegetuketu": "Esege Tuketu",
"evaanverlaine": "Evaan Verlaine",
Expand Down Expand Up @@ -458,7 +460,7 @@
"lattsrazzi": "Latts Razzi",
"lawlesspirates": "Lawless Pirates",
"leebo": "\"Leebo\"",
"leebo-swz103": "\"Leebo\" (YLF)",
"leebo-swz103-rebelalliance": "\"Leebo\" (YLF)",
"leebo-swz103-sl-rebelalliance": "\"Leebo\" (YLF-SL)",
"leebo-swz103-sl-scumandvillainy": "\"Leebo\" (Scum)",
"leemakai": "Leema Kai",
Expand Down Expand Up @@ -744,6 +746,7 @@
"wesjanson": "Wes Janson",
"whirlwind": "\"Whirlwind\"",
"whisper": "\"Whisper\"",
"whoops": "whoops",
"wildspacefringer": "Wild Space Fringer",
"wilhufftarkin": "Wilhuff Tarkin",
"wilsateshlo": "Wilsa Teshlo",
Expand Down Expand Up @@ -1287,6 +1290,14 @@
"stabilizingastromech-battleoverendor": "Stabilizing Astromech (BoE)",
"modifiedr4punit-battleoverendor": "Modified R4-P unit (BoE)",
"ionmaneuveringjet-battleoverendor": "Ion Maneuvering Jet (BoE)",
"collected-battleoverendor": "Collected (BoE)"
"collected-battleoverendor": "Collected (BoE)",
"newrecruit": "New Recruit",
"lockedturretspecialist": "Locked-Turret Specialist",
"heavyreinforcedvanguard": "Heavy Reinforced Vanguard",
"evasiveinterceptor": "Evasive Interceptor",
"countermeasuresspecialist": "Countermeasures Specialist",
"combatveteran": "Combat Veteran",
"forceadeptpilot": "Force Adept Pilot",
"adaptablepilot": "Adaptable Pilot"
}
}
42 changes: 42 additions & 0 deletions lib/data/standard-loadout-pilots.json
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,18 @@
]
}
},
"mausmonare-battleoverendor": {
"points": 5,
"upgrades": {
"talent": [
"noescape-battleoverendor",
"outmaneuver"
],
"modification": [
"fuelinjectionoverride-battleoverendor"
]
}
},
"captainyorr-battleoverendor": {
"points": 6,
"upgrades": {
Expand Down Expand Up @@ -750,6 +762,36 @@
]
}
},
"scimitar1-battleoverendor": {
"points": 4,
"upgrades": {
"talent": [
"marksmanship",
"noescape-battleoverendor"
],
"torpedo": [
"protontorpedoes"
],
"device": [
"ionbombs"
]
}
},
"scimitar3-battleoverendor": {
"points": 4,
"upgrades": {
"talent": [
"noescape-battleoverendor",
"partinggift-battleoverendor"
],
"torpedo": [
"protontorpedoes"
],
"device": [
"protonbombs"
]
}
},
"leebo-swz103-sl-scumandvillainy": {
"points": 6,
"upgrades": {
Expand Down
48 changes: 44 additions & 4 deletions lib/data/yasb.json
Original file line number Diff line number Diff line change
Expand Up @@ -3326,14 +3326,14 @@
"id": 475,
"name": "Colicoid Destroyer",
"ship": "Trident-class Assault Ship",
"points": 12,
"points": 11,
"skill": 8
},
{
"id": 476,
"name": "Lawless Pirates",
"ship": "Trident-class Assault Ship",
"points": 12,
"points": 11,
"skill": 8
},
{
Expand Down Expand Up @@ -4599,7 +4599,7 @@
"ship": "YT-2400 Light Freighter",
"points": 7,
"skill": 5,
"xwsaddon": "swz103"
"xwsaddon": "swz103-rebelalliance"
},
{
"id": 649,
Expand All @@ -4623,7 +4623,7 @@
"ship": "YT-2400 Light Freighter",
"points": 6,
"skill": 3,
"xwsaddon": "swz103"
"xwsaddon": "swz103-rebelalliance"
},
{
"id": 652,
Expand Down Expand Up @@ -7427,6 +7427,46 @@
"id": 524,
"name": "Collected (BoE)",
"slot": "Talent"
},
{
"id": 525,
"name": "New Recruit",
"slot": "Command"
},
{
"id": 526,
"name": "Locked-Turret Specialist",
"slot": "Command"
},
{
"id": 527,
"name": "Heavy Reinforced Vanguard",
"slot": "Command"
},
{
"id": 528,
"name": "Evasive Interceptor",
"slot": "Command"
},
{
"id": 529,
"name": "Countermeasures Specialist",
"slot": "Command"
},
{
"id": 530,
"name": "Combat Veteran",
"slot": "Command"
},
{
"id": 531,
"name": "Force Adept Pilot",
"slot": "Command"
},
{
"id": 532,
"name": "Adaptable Pilot",
"slot": "Command"
}
]
}
4 changes: 2 additions & 2 deletions lib/db/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export const pool = createPool({
user: process.env.DATABASE_USERNAME,
password: process.env.DATABASE_PASSWORD,
database: 'main',
maxIdle: 1,
connectionLimit: 1,
// maxIdle: 1,
// connectionLimit: 1,
});

// Database
Expand Down
2 changes: 1 addition & 1 deletion scripts/update-yasb-data.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const canonicalize = val =>

const toPilotId = pilot => {
// console.log(pilot);
const [name, suffix] = pilot.name.split(/[()]/);
const [name, suffix] = pilot.name ? pilot.name.split(/[()]/) : ['', null];

return pilot.xws != null
? pilot.xws
Expand Down

0 comments on commit 6125b07

Please sign in to comment.