@xivdyetools/core 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/consolidated-ids.d.ts +24 -0
- package/dist/config/consolidated-ids.d.ts.map +1 -0
- package/dist/config/consolidated-ids.js +37 -0
- package/dist/config/consolidated-ids.js.map +1 -0
- package/dist/data/colors_xiv.json +505 -233
- package/dist/data/locales/de.json +1 -1
- package/dist/data/locales/en.json +1 -1
- package/dist/data/locales/fr.json +1 -1
- package/dist/data/locales/ja.json +1 -1
- package/dist/data/locales/ko.json +1 -1
- package/dist/data/locales/zh.json +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/services/dye/DyeDatabase.d.ts.map +1 -1
- package/dist/services/dye/DyeDatabase.js +7 -0
- package/dist/services/dye/DyeDatabase.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Consolidated dye item IDs for Patch 7.5.
|
|
3
|
+
*
|
|
4
|
+
* PATCH DAY (2026-04-28): Replace null values with real item IDs from datamining.
|
|
5
|
+
* This is the ONLY file that needs updating on patch day.
|
|
6
|
+
*/
|
|
7
|
+
export declare const CONSOLIDATED_IDS: Record<'A' | 'B' | 'C', number | null>;
|
|
8
|
+
/**
|
|
9
|
+
* Whether dye consolidation is active (all IDs are known).
|
|
10
|
+
* Returns true only when all three consolidated IDs have been set.
|
|
11
|
+
*/
|
|
12
|
+
export declare function isConsolidationActive(): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Get the market board item ID for a dye.
|
|
15
|
+
*
|
|
16
|
+
* - If consolidation is active and the dye has a consolidationType, returns the consolidated ID.
|
|
17
|
+
* - Otherwise returns the dye's original itemID.
|
|
18
|
+
* - Facewear dyes (negative IDs) always return the original ID.
|
|
19
|
+
*/
|
|
20
|
+
export declare function getMarketItemID(dye: {
|
|
21
|
+
itemID: number;
|
|
22
|
+
consolidationType: 'A' | 'B' | 'C' | null;
|
|
23
|
+
}): number;
|
|
24
|
+
//# sourceMappingURL=consolidated-ids.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consolidated-ids.d.ts","sourceRoot":"","sources":["../../src/config/consolidated-ids.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,GAAG,GAAG,GAAG,GAAG,GAAG,EAAE,MAAM,GAAG,IAAI,CAInE,CAAC;AAEF;;;GAGG;AACH,wBAAgB,qBAAqB,IAAI,OAAO,CAM/C;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC;CAC3C,GAAG,MAAM,CAKT"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Consolidated dye item IDs for Patch 7.5.
|
|
3
|
+
*
|
|
4
|
+
* PATCH DAY (2026-04-28): Replace null values with real item IDs from datamining.
|
|
5
|
+
* This is the ONLY file that needs updating on patch day.
|
|
6
|
+
*/
|
|
7
|
+
export const CONSOLIDATED_IDS = {
|
|
8
|
+
A: null, // ARR dyes (85 dyes, itemIDs 5729-5813)
|
|
9
|
+
B: null, // Ishgardian Restoration dyes (9 dyes, itemIDs 30116-30124)
|
|
10
|
+
C: null, // Cosmic Exploration dyes (11 dyes, itemIDs 48163-48172, 48227)
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Whether dye consolidation is active (all IDs are known).
|
|
14
|
+
* Returns true only when all three consolidated IDs have been set.
|
|
15
|
+
*/
|
|
16
|
+
export function isConsolidationActive() {
|
|
17
|
+
return (CONSOLIDATED_IDS.A !== null &&
|
|
18
|
+
CONSOLIDATED_IDS.B !== null &&
|
|
19
|
+
CONSOLIDATED_IDS.C !== null);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Get the market board item ID for a dye.
|
|
23
|
+
*
|
|
24
|
+
* - If consolidation is active and the dye has a consolidationType, returns the consolidated ID.
|
|
25
|
+
* - Otherwise returns the dye's original itemID.
|
|
26
|
+
* - Facewear dyes (negative IDs) always return the original ID.
|
|
27
|
+
*/
|
|
28
|
+
export function getMarketItemID(dye) {
|
|
29
|
+
if (dye.itemID < 0)
|
|
30
|
+
return dye.itemID; // Facewear
|
|
31
|
+
if (!dye.consolidationType)
|
|
32
|
+
return dye.itemID; // Special/uncategorized
|
|
33
|
+
if (!isConsolidationActive())
|
|
34
|
+
return dye.itemID; // Pre-patch fallback
|
|
35
|
+
return CONSOLIDATED_IDS[dye.consolidationType];
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=consolidated-ids.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consolidated-ids.js","sourceRoot":"","sources":["../../src/config/consolidated-ids.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAA2C;IACtE,CAAC,EAAE,IAAI,EAAE,wCAAwC;IACjD,CAAC,EAAE,IAAI,EAAE,4DAA4D;IACrE,CAAC,EAAE,IAAI,EAAE,gEAAgE;CAC1E,CAAC;AAEF;;;GAGG;AACH,MAAM,UAAU,qBAAqB;IACnC,OAAO,CACL,gBAAgB,CAAC,CAAC,KAAK,IAAI;QAC3B,gBAAgB,CAAC,CAAC,KAAK,IAAI;QAC3B,gBAAgB,CAAC,CAAC,KAAK,IAAI,CAC5B,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAAC,GAG/B;IACC,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,WAAW;IAClD,IAAI,CAAC,GAAG,CAAC,iBAAiB;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,wBAAwB;IACvE,IAAI,CAAC,qBAAqB,EAAE;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,qBAAqB;IACtE,OAAO,gBAAgB,CAAC,GAAG,CAAC,iBAAiB,CAAE,CAAC;AAClD,CAAC"}
|