mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-09-11 18:15:39 -05:00
Use strict equality in TricolorBox, add async keyword to CoopUpdater/GearUpdater getData() for consistency, and add missing HMR accept for useCoopGearStore. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
48 lines
830 B
JavaScript
48 lines
830 B
JavaScript
import DataUpdater from './DataUpdater.mjs';
|
|
|
|
export default class GearUpdater extends DataUpdater
|
|
{
|
|
name = 'Gear';
|
|
filename = 'gear';
|
|
|
|
imagePaths = [
|
|
'$..image.url',
|
|
];
|
|
|
|
derivedIds = [
|
|
'$..gear',
|
|
'$..usualGearPower',
|
|
'$..primaryGearPower',
|
|
'$..additionalGearPowers.*',
|
|
];
|
|
|
|
localizations = [
|
|
{
|
|
key: 'brands',
|
|
nodes: '$..brand',
|
|
id: 'id',
|
|
values: 'name',
|
|
},
|
|
{
|
|
key: 'gear',
|
|
nodes: '$..gear',
|
|
id: '__splatoon3ink_id',
|
|
values: 'name',
|
|
},
|
|
{
|
|
key: 'powers',
|
|
nodes: [
|
|
'$..usualGearPower',
|
|
'$..primaryGearPower',
|
|
'$..additionalGearPowers.*',
|
|
],
|
|
id: '__splatoon3ink_id',
|
|
values: 'name',
|
|
},
|
|
];
|
|
|
|
async getData(locale) {
|
|
return this.splatnet(locale).getGesotownData();
|
|
}
|
|
}
|