@firestone-hs/reference-data 2.0.90 → 2.0.91
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/models/reference-cards/reference-sets.d.ts +2 -2
- package/dist/models/reference-cards/reference-sets.js +5 -1
- package/dist/models/reference-cards/reference-sets.js.map +1 -1
- package/dist/models/reference-cards/related-cards-data.d.ts +0 -5
- package/dist/models/reference-cards/related-cards-data.js +6 -127
- package/dist/models/reference-cards/related-cards-data.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GameFormat } from '../../public-api';
|
|
1
|
+
import { GameFormat, GameType } from '../../public-api';
|
|
2
2
|
export declare type SetId = 'great_dark_beyond' | 'traveling_travel_agency' | 'perils_in_paradise' | 'boom_inventions' | 'whizbangs_workshop' | 'gift' | 'deepholm' | 'wild_west' | 'ulduar' | 'caverns_of_time' | 'titans' | 'audiopocalypse' | 'battle_of_the_bands' | 'return_to_naxxramas' | 'path_of_arthas' | 'return_of_the_lich_king' | 'maw_and_disorder' | 'revendreth' | 'throne_of_tides' | 'the_sunken_city' | 'onyxias_lair' | 'alterac_valley' | 'deadmines' | 'stormwind' | 'wailing_caverns' | 'the_barrens' | 'darkmoon_races' | 'darkmoon_faire' | 'scholomance' | 'black_temple' | 'demon_hunter_initiate' | 'yod' | 'dragons' | 'uldum' | 'dalaran' | 'troll' | 'boomsday' | 'gilneas' | 'lootapalooza' | 'icecrown' | 'ungoro' | 'gangs' | 'kara' | 'og' | 'loe' | 'tgt' | 'brm' | 'gvg' | 'naxx' | 'core' | 'legacy' | 'vanilla';
|
|
3
3
|
export interface ReferenceSet {
|
|
4
4
|
readonly id: SetId;
|
|
@@ -14,4 +14,4 @@ export declare const twistSets: readonly SetId[];
|
|
|
14
14
|
export declare const arenaSets: readonly SetId[];
|
|
15
15
|
export declare const duelsSets: readonly SetId[];
|
|
16
16
|
export declare const vanillaSets: readonly SetId[];
|
|
17
|
-
export declare const isValidSet: (set: SetId, format: GameFormat) => boolean;
|
|
17
|
+
export declare const isValidSet: (set: SetId, format: GameFormat, gameType: GameType) => boolean;
|
|
@@ -345,7 +345,11 @@ exports.duelsSets = [
|
|
|
345
345
|
'deepholm',
|
|
346
346
|
];
|
|
347
347
|
exports.vanillaSets = ['vanilla'];
|
|
348
|
-
const isValidSet = (set, format) => {
|
|
348
|
+
const isValidSet = (set, format, gameType) => {
|
|
349
|
+
switch (gameType) {
|
|
350
|
+
case public_api_1.GameType.GT_ARENA:
|
|
351
|
+
return exports.arenaSets.includes(set);
|
|
352
|
+
}
|
|
349
353
|
switch (format) {
|
|
350
354
|
case public_api_1.GameFormat.FT_STANDARD:
|
|
351
355
|
return exports.standardSets.includes(set);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reference-sets.js","sourceRoot":"","sources":["../../../src/models/reference-cards/reference-sets.ts"],"names":[],"mappings":";;;AAAA,iDAA8C;AAgEjC,QAAA,IAAI,GAA4B;IAC5C;QACC,EAAE,EAAE,mBAAmB;QACvB,IAAI,EAAE,uBAAuB;QAC7B,UAAU,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;KAClC;IACD;QACC,EAAE,EAAE,yBAAyB;QAC7B,IAAI,EAAE,6BAA6B;QACnC,UAAU,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;QAClC,UAAU,EAAE,oBAAoB;KAChC;IACD;QACC,EAAE,EAAE,oBAAoB;QACxB,IAAI,EAAE,oBAAoB;QAC1B,UAAU,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;KAClC;IACD;QACC,EAAE,EAAE,iBAAiB;QACrB,IAAI,EAAE,kCAAkC;QACxC,UAAU,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;QAClC,UAAU,EAAE,oBAAoB;KAChC;IACD;QACC,EAAE,EAAE,oBAAoB;QACxB,IAAI,EAAE,qBAAqB;QAC3B,UAAU,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC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UrB","sourcesContent":["import { GameFormat } from '../../public-api';\r\n\r\nexport type SetId =\r\n\t| 'great_dark_beyond'\r\n\t| 'traveling_travel_agency'\r\n\t| 'perils_in_paradise'\r\n\t| 'boom_inventions'\r\n\t| 'whizbangs_workshop'\r\n\t| 'gift'\r\n\t| 'deepholm'\r\n\t| 'wild_west'\r\n\t| 'ulduar'\r\n\t| 'caverns_of_time'\r\n\t| 'titans'\r\n\t| 'audiopocalypse'\r\n\t| 'battle_of_the_bands'\r\n\t| 'return_to_naxxramas'\r\n\t| 'path_of_arthas'\r\n\t| 'return_of_the_lich_king'\r\n\t| 'maw_and_disorder'\r\n\t| 'revendreth'\r\n\t| 'throne_of_tides'\r\n\t| 'the_sunken_city'\r\n\t| 'onyxias_lair'\r\n\t| 'alterac_valley'\r\n\t| 'deadmines'\r\n\t| 'stormwind'\r\n\t| 'wailing_caverns'\r\n\t| 'the_barrens'\r\n\t| 'darkmoon_races'\r\n\t| 'darkmoon_faire'\r\n\t| 'scholomance'\r\n\t| 'black_temple'\r\n\t| 'demon_hunter_initiate'\r\n\t| 'yod'\r\n\t| 'dragons'\r\n\t| 'uldum'\r\n\t| 'dalaran'\r\n\t| 'troll'\r\n\t| 'boomsday'\r\n\t| 'gilneas'\r\n\t| 'lootapalooza'\r\n\t| 'icecrown'\r\n\t| 'ungoro'\r\n\t| 'gangs'\r\n\t| 'kara'\r\n\t| 'og'\r\n\t| 'loe'\r\n\t| 'tgt'\r\n\t| 'brm'\r\n\t| 'gvg'\r\n\t| 'naxx'\r\n\t| 'core'\r\n\t| 'legacy'\r\n\t| 'vanilla';\r\n\r\nexport interface ReferenceSet {\r\n\treadonly id: SetId;\r\n\treadonly name: string;\r\n\treadonly launchDate: Date;\r\n\treadonly techSet?: boolean;\r\n\treadonly miniSetFor?: SetId;\r\n}\r\n\r\nexport const sets: readonly ReferenceSet[] = [\r\n\t{\r\n\t\tid: 'great_dark_beyond',\r\n\t\tname: `The Great Dark Beyond`,\r\n\t\tlaunchDate: new Date('2024-11-05'),\r\n\t},\r\n\t{\r\n\t\tid: 'traveling_travel_agency',\r\n\t\tname: `The Traveling Travel Agency`,\r\n\t\tlaunchDate: new Date('2024-09-10'),\r\n\t\tminiSetFor: 'perils_in_paradise',\r\n\t},\r\n\t{\r\n\t\tid: 'perils_in_paradise',\r\n\t\tname: `Perils in Paradise`,\r\n\t\tlaunchDate: new Date('2024-06-17'),\r\n\t},\r\n\t{\r\n\t\tid: 'boom_inventions',\r\n\t\tname: `Dr. Boom’s Incredible Inventions`,\r\n\t\tlaunchDate: new Date('2024-05-14'),\r\n\t\tminiSetFor: 'whizbangs_workshop',\r\n\t},\r\n\t{\r\n\t\tid: 'whizbangs_workshop',\r\n\t\tname: `Whizbang's Workshop`,\r\n\t\tlaunchDate: new Date('2024-02-13'),\r\n\t},\r\n\t{\r\n\t\tid: 'gift',\r\n\t\tname: `Gifts`,\r\n\t\tlaunchDate: new Date('2024-02-13'),\r\n\t\ttechSet: true,\r\n\t},\r\n\t{\r\n\t\tid: 'deepholm',\r\n\t\tname: `Delve into Deepholm`,\r\n\t\tlaunchDate: new Date('2024-01-18'),\r\n\t\tminiSetFor: 'wild_west',\r\n\t},\r\n\t{\r\n\t\tid: 'wild_west',\r\n\t\tname: `Showdown in the Badlands`,\r\n\t\tlaunchDate: new Date('2023-11-14'),\r\n\t},\r\n\t{\r\n\t\tid: 'ulduar',\r\n\t\tname: `Fall of Ulduar`,\r\n\t\tlaunchDate: new Date('2023-09-19'),\r\n\t\tminiSetFor: 'titans',\r\n\t},\r\n\t{\r\n\t\tid: 'caverns_of_time',\r\n\t\tname: `Caverns of Time`,\r\n\t\tlaunchDate: new Date('2023-08-31'),\r\n\t},\r\n\t{\r\n\t\tid: 'titans',\r\n\t\tname: `TITANS`,\r\n\t\tlaunchDate: new Date('2023-06-27'),\r\n\t},\r\n\t{\r\n\t\tid: 'audiopocalypse',\r\n\t\tname: `Audiopocalypse`,\r\n\t\tlaunchDate: new Date('2023-05-31'),\r\n\t\tminiSetFor: 'battle_of_the_bands',\r\n\t},\r\n\t{\r\n\t\tid: 'battle_of_the_bands',\r\n\t\tname: `Battle of the Bands`,\r\n\t\tlaunchDate: new Date('2023-03-15'),\r\n\t},\r\n\t{\r\n\t\tid: 'return_to_naxxramas',\r\n\t\tname: `Return to Naxxramas`,\r\n\t\tlaunchDate: new Date('2023-02-14'),\r\n\t\tminiSetFor: 'return_of_the_lich_king',\r\n\t},\r\n\t{\r\n\t\tid: 'path_of_arthas',\r\n\t\tname: `Path of Arthas`,\r\n\t\tlaunchDate: new Date('2022-11-01'),\r\n\t},\r\n\t{\r\n\t\tid: 'return_of_the_lich_king',\r\n\t\tname: `March of the Lich King`,\r\n\t\tlaunchDate: new Date('2022-11-01'),\r\n\t},\r\n\t{\r\n\t\tid: 'maw_and_disorder',\r\n\t\tname: `Maw and Disorder`,\r\n\t\tlaunchDate: new Date('2022-09-27'),\r\n\t\tminiSetFor: 'revendreth',\r\n\t},\r\n\t{\r\n\t\tid: 'revendreth',\r\n\t\tname: `Murder at Castle Nathria`,\r\n\t\tlaunchDate: new Date('2022-08-02'),\r\n\t},\r\n\t{\r\n\t\tid: 'throne_of_tides',\r\n\t\tname: `Throne of the Tides`,\r\n\t\tlaunchDate: new Date('2022-06-01'),\r\n\t\tminiSetFor: 'the_sunken_city',\r\n\t},\r\n\t{\r\n\t\tid: 'the_sunken_city',\r\n\t\tname: `The Sunken City`,\r\n\t\tlaunchDate: new Date('2022-03-17'),\r\n\t},\r\n\t{\r\n\t\tid: 'onyxias_lair',\r\n\t\tname: `Onyxia's Lair`,\r\n\t\tlaunchDate: new Date('2022-02-15'),\r\n\t\tminiSetFor: 'alterac_valley',\r\n\t},\r\n\t{\r\n\t\tid: 'alterac_valley',\r\n\t\tname: 'Fractured in Alterac Valley',\r\n\t\tlaunchDate: new Date('2021-12-07'),\r\n\t},\r\n\t{\r\n\t\tid: 'deadmines',\r\n\t\tname: 'Deadmines',\r\n\t\tlaunchDate: new Date('2021-11-02'),\r\n\t\tminiSetFor: 'stormwind',\r\n\t},\r\n\t{\r\n\t\tid: 'stormwind',\r\n\t\tname: 'United in Stormwind',\r\n\t\tlaunchDate: new Date('2021-07-01'),\r\n\t},\r\n\t{\r\n\t\tid: 'wailing_caverns',\r\n\t\tname: 'Wailing Caverns',\r\n\t\tlaunchDate: new Date('2021-06-03'),\r\n\t\tminiSetFor: 'the_barrens',\r\n\t},\r\n\t{\r\n\t\tid: 'the_barrens',\r\n\t\tname: 'Forged in the Barrens',\r\n\t\tlaunchDate: new Date('2021-03-15'),\r\n\t},\r\n\t{\r\n\t\tid: 'darkmoon_races',\r\n\t\tname: 'Darkmoon Races',\r\n\t\tlaunchDate: new Date('2021-01-21'),\r\n\t\tminiSetFor: 'darkmoon_faire',\r\n\t},\r\n\t{\r\n\t\tid: 'darkmoon_faire',\r\n\t\tname: 'Darkmoon Faire',\r\n\t\tlaunchDate: new Date('2020-11-17'),\r\n\t},\r\n\t{\r\n\t\tid: 'scholomance',\r\n\t\tname: 'Scholomance Academy',\r\n\t\tlaunchDate: new Date('2020-08-06'),\r\n\t},\r\n\t{\r\n\t\tid: 'black_temple',\r\n\t\tname: 'Ashes of Outland',\r\n\t\tlaunchDate: new Date('2020-04-07'),\r\n\t},\r\n\t{\r\n\t\tid: 'demon_hunter_initiate',\r\n\t\tname: 'Demon Hunter Initiate',\r\n\t\tlaunchDate: new Date('2020-04-02'),\r\n\t},\r\n\t{\r\n\t\tid: 'yod',\r\n\t\tname: \"Galakrond's Awakening\",\r\n\t\tlaunchDate: new Date('2020-01-21'),\r\n\t},\r\n\t{\r\n\t\tid: 'dragons',\r\n\t\tname: 'Descent of Dragons',\r\n\t\tlaunchDate: new Date('2019-12-10'),\r\n\t},\r\n\t{\r\n\t\tid: 'uldum',\r\n\t\tname: 'Saviors of Uldum',\r\n\t\tlaunchDate: new Date('2019-08-06'),\r\n\t},\r\n\t{\r\n\t\tid: 'dalaran',\r\n\t\tname: 'Rise of Shadows',\r\n\t\tlaunchDate: new Date('2019-04-09'),\r\n\t},\r\n\t{\r\n\t\tid: 'troll',\r\n\t\tname: \"Rastakhan's Rumble\",\r\n\t\tlaunchDate: new Date('2018-12-04'),\r\n\t},\r\n\t{\r\n\t\tid: 'boomsday',\r\n\t\tname: 'The Boomsday Project',\r\n\t\tlaunchDate: new Date('2018-08-07'),\r\n\t},\r\n\t{\r\n\t\tid: 'gilneas',\r\n\t\tname: 'The Witchwood',\r\n\t\tlaunchDate: new Date('2018-04-12'),\r\n\t},\r\n\t{\r\n\t\tid: 'lootapalooza',\r\n\t\tname: 'Kobolds and Catacombs',\r\n\t\tlaunchDate: new Date('2017-12-07'),\r\n\t},\r\n\t{\r\n\t\tid: 'icecrown',\r\n\t\tname: 'Knights of the Frozen Throne',\r\n\t\tlaunchDate: new Date('2017-08-10'),\r\n\t},\r\n\t{\r\n\t\tid: 'ungoro',\r\n\t\tname: \"Journey to Un'Goro\",\r\n\t\tlaunchDate: new Date('2017-04-06'),\r\n\t},\r\n\t// {\r\n\t// \tid: 'hof',\r\n\t// \tname: 'Hall of Fame',\r\n\t// \tlaunchDate: new Date('2017-04-04'),\r\n\t// },\r\n\t{\r\n\t\tid: 'gangs',\r\n\t\tname: 'Mean Streets of Gadgetzan',\r\n\t\tlaunchDate: new Date('2016-12-1'),\r\n\t},\r\n\t{\r\n\t\tid: 'kara',\r\n\t\tname: 'One Night in Karazhan',\r\n\t\tlaunchDate: new Date('2016-08-11'),\r\n\t},\r\n\t{\r\n\t\tid: 'og',\r\n\t\tname: 'Whispers of the Old Gods',\r\n\t\tlaunchDate: new Date('2016-04-26'),\r\n\t},\r\n\t{\r\n\t\tid: 'loe',\r\n\t\tname: 'League of Explorers',\r\n\t\tlaunchDate: new Date('2015-11-12'),\r\n\t},\r\n\t{\r\n\t\tid: 'tgt',\r\n\t\tname: 'The Grand Tournament',\r\n\t\tlaunchDate: new Date('2015-08-24'),\r\n\t},\r\n\t{\r\n\t\tid: 'brm',\r\n\t\tname: 'Blackrock Mountain',\r\n\t\tlaunchDate: new Date('2015-04-02'),\r\n\t},\r\n\t{\r\n\t\tid: 'gvg',\r\n\t\tname: 'Goblins vs Gnomes',\r\n\t\tlaunchDate: new Date('2014-12-08'),\r\n\t},\r\n\t{\r\n\t\tid: 'naxx',\r\n\t\tname: 'Naxxramas',\r\n\t\tlaunchDate: new Date('2014-07-22'),\r\n\t},\r\n\t{\r\n\t\tid: 'core',\r\n\t\tname: 'Core',\r\n\t\tlaunchDate: new Date('2021-03-25'),\r\n\t},\r\n\t// {\r\n\t// \tid: 'expert1',\r\n\t// \tname: 'Expert',\r\n\t// \tlaunchDate: new Date('2014-03-11'),\r\n\t// },\r\n\t// {\r\n\t// \tid: 'basic',\r\n\t// \tname: 'Basic',\r\n\t// \tlaunchDate: new Date('2014-03-11'),\r\n\t// },\r\n\t{\r\n\t\tid: 'legacy',\r\n\t\tname: 'Legacy',\r\n\t\tlaunchDate: new Date('2021-03-30'),\r\n\t},\r\n] as const;\r\n\r\nexport const wildSets: readonly SetId[] = sets.map((s) => s.id);\r\nexport const standardSets: readonly SetId[] = [\r\n\t'core',\r\n\t'battle_of_the_bands',\r\n\t'titans',\r\n\t'wild_west',\r\n\t'gift',\r\n\t'whizbangs_workshop',\r\n\t'perils_in_paradise',\r\n\t'great_dark_beyond',\r\n]\r\n\t.flatMap((setId) => [setId, sets.find((s) => s.miniSetFor === setId)?.id])\r\n\t.filter((setId) => setId)\r\n\t.map((setId) => setId as SetId);\r\nexport const twistSets: readonly SetId[] = wildSets;\r\n// [\r\n// \t'core',\r\n// \t'naxx',\r\n// \t'gvg',\r\n// \t'brm',\r\n// \t'tgt',\r\n// \t'loe',\r\n// \t'og',\r\n// \t'kara',\r\n// \t'gangs',\r\n// \t'ungoro',\r\n// \t'icecrown',\r\n// \t'lootapalooza',\r\n// \t'gilneas',\r\n// \t'boomsday',\r\n// \t'troll',\r\n// \t'dalaran',\r\n// \t'uldum',\r\n// \t'dragons',\r\n// \t'yod',\r\n// \t'caverns_of_time',\r\n// ];\r\n// https://hearthstone.fandom.com/wiki/Arena#Arena_Rotation\r\nexport const arenaSets: readonly SetId[] = [\r\n\t'great_dark_beyond',\r\n\t'perils_in_paradise',\r\n\t'wild_west',\r\n\t'battle_of_the_bands',\r\n\t'caverns_of_time',\r\n\t'scholomance',\r\n]\r\n\t.flatMap((setId) => [setId, sets.find((s) => s.miniSetFor === setId)?.id])\r\n\t.filter((setId) => setId)\r\n\t.map((setId) => setId as SetId);\r\nexport const duelsSets: readonly SetId[] = [\r\n\t'core',\r\n\t'legacy',\r\n\t'naxx',\r\n\t'gvg',\r\n\t'loe',\r\n\t'og',\r\n\t'kara',\r\n\t'ungoro',\r\n\t'icecrown',\r\n\t'lootapalooza',\r\n\t'gilneas',\r\n\t'uldum',\r\n\t'scholomance',\r\n\t'demon_hunter_initiate',\r\n\t'darkmoon_faire',\r\n\t'darkmoon_races',\r\n\t'the_barrens',\r\n\t'wailing_caverns',\r\n\t'stormwind',\r\n\t'black_temple',\r\n\t'deadmines',\r\n\t'alterac_valley',\r\n\t'onyxias_lair',\r\n\t'the_sunken_city',\r\n\t'throne_of_tides',\r\n\t'revendreth',\r\n\t'maw_and_disorder',\r\n\t'return_of_the_lich_king',\r\n\t'return_to_naxxramas',\r\n\t'path_of_arthas',\r\n\t'battle_of_the_bands',\r\n\t'audiopocalypse',\r\n\t'troll',\r\n\t'titans',\r\n\t'caverns_of_time',\r\n\t'ulduar',\r\n\t'dalaran',\r\n\t'gangs',\r\n\t'tgt',\r\n\t'brm',\r\n\t'dragons',\r\n\t'yod',\r\n\t'wild_west',\r\n\t'deepholm',\r\n\t// 'whizbangs_workshop',\r\n];\r\n\r\nexport const vanillaSets: readonly SetId[] = ['vanilla'];\r\n\r\nexport const isValidSet = (set: SetId, format: GameFormat): boolean => {\r\n\tswitch (format) {\r\n\t\tcase GameFormat.FT_STANDARD:\r\n\t\t\treturn standardSets.includes(set);\r\n\t\tcase GameFormat.FT_TWIST:\r\n\t\t\treturn twistSets.includes(set);\r\n\t\tcase GameFormat.FT_WILD:\r\n\t\tdefault:\r\n\t\t\treturn wildSets.includes(set);\r\n\t}\r\n};\r\n"]}
|
|
1
|
+
{"version":3,"file":"reference-sets.js","sourceRoot":"","sources":["../../../src/models/reference-cards/reference-sets.ts"],"names":[],"mappings":";;;AAAA,iDAAwD;AAgE3C,QAAA,IAAI,GAA4B;IAC5C;QACC,EAAE,EAAE,mBAAmB;QACvB,IAAI,EAAE,uBAAuB;QAC7B,UAAU,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;KAClC;IACD;QACC,EAAE,EAAE,yBAAyB;QAC7B,IAAI,EAAE,6BAA6B;QACnC,UAAU,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;QAClC,UAAU,EAAE,oBAAoB;KAChC;IACD;QACC,EAAE,EAAE,oBAAoB;QACxB,IAAI,EAAE,oBAAoB;QAC1B,UAAU,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;KAClC;IACD;QACC,EAAE,EAAE,iBAAiB;QACrB,IAAI,EAAE,kCAAkC;QACxC,UAAU,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;QAClC,UAAU,EAAE,oBAAoB;KAChC;IACD;QACC,EAAE,EAAE,oBAAoB;QACxB,IAAI,EAAE,qBAAqB;QAC3B,UAAU,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;KAClC;IACD;QACC,EAAE,EAAE,MAAM;QACV,IAAI,EAAE,OAAO;QACb,UAAU,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;QAClC,OAAO,EAAE,IAAI;KACb;IACD;QACC,EAAE,EAAE,UAAU;QACd,IAAI,EAAE,qBAAqB;QAC3B,UAAU,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;QAClC,UAAU,EAAE,WAAW;KACvB;IACD;QACC,EAAE,EAAE,WAAW;QACf,IAAI,EAAE,0BAA0B;QAChC,UAAU,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;KAClC;IACD;QACC,EAA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IACvB,gBAAgB;IAChB,gBAAgB;IAChB,aAAa;IACb,iBAAiB;IACjB,WAAW;IACX,cAAc;IACd,WAAW;IACX,gBAAgB;IAChB,cAAc;IACd,iBAAiB;IACjB,iBAAiB;IACjB,YAAY;IACZ,kBAAkB;IAClB,yBAAyB;IACzB,qBAAqB;IACrB,gBAAgB;IAChB,qBAAqB;IACrB,gBAAgB;IAChB,OAAO;IACP,QAAQ;IACR,iBAAiB;IACjB,QAAQ;IACR,SAAS;IACT,OAAO;IACP,KAAK;IACL,KAAK;IACL,SAAS;IACT,KAAK;IACL,WAAW;IACX,UAAU;CAEV,CAAC;AAEW,QAAA,WAAW,GAAqB,CAAC,SAAS,CAAC,CAAC;AAElD,MAAM,UAAU,GAAG,CAAC,GAAU,EAAE,MAAkB,EAAE,QAAkB,EAAW,EAAE;IACzF,QAAQ,QAAQ,EAAE;QACjB,KAAK,qBAAQ,CAAC,QAAQ;YACrB,OAAO,iBAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;KAChC;IACD,QAAQ,MAAM,EAAE;QACf,KAAK,uBAAU,CAAC,WAAW;YAC1B,OAAO,oBAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QACnC,KAAK,uBAAU,CAAC,QAAQ;YACvB,OAAO,iBAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QAChC,KAAK,uBAAU,CAAC,OAAO,CAAC;QACxB;YACC,OAAO,gBAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;KAC/B;AACF,CAAC,CAAC;AAdW,QAAA,UAAU,cAcrB","sourcesContent":["import { GameFormat, GameType } from '../../public-api';\r\n\r\nexport type SetId =\r\n\t| 'great_dark_beyond'\r\n\t| 'traveling_travel_agency'\r\n\t| 'perils_in_paradise'\r\n\t| 'boom_inventions'\r\n\t| 'whizbangs_workshop'\r\n\t| 'gift'\r\n\t| 'deepholm'\r\n\t| 'wild_west'\r\n\t| 'ulduar'\r\n\t| 'caverns_of_time'\r\n\t| 'titans'\r\n\t| 'audiopocalypse'\r\n\t| 'battle_of_the_bands'\r\n\t| 'return_to_naxxramas'\r\n\t| 'path_of_arthas'\r\n\t| 'return_of_the_lich_king'\r\n\t| 'maw_and_disorder'\r\n\t| 'revendreth'\r\n\t| 'throne_of_tides'\r\n\t| 'the_sunken_city'\r\n\t| 'onyxias_lair'\r\n\t| 'alterac_valley'\r\n\t| 'deadmines'\r\n\t| 'stormwind'\r\n\t| 'wailing_caverns'\r\n\t| 'the_barrens'\r\n\t| 'darkmoon_races'\r\n\t| 'darkmoon_faire'\r\n\t| 'scholomance'\r\n\t| 'black_temple'\r\n\t| 'demon_hunter_initiate'\r\n\t| 'yod'\r\n\t| 'dragons'\r\n\t| 'uldum'\r\n\t| 'dalaran'\r\n\t| 'troll'\r\n\t| 'boomsday'\r\n\t| 'gilneas'\r\n\t| 'lootapalooza'\r\n\t| 'icecrown'\r\n\t| 'ungoro'\r\n\t| 'gangs'\r\n\t| 'kara'\r\n\t| 'og'\r\n\t| 'loe'\r\n\t| 'tgt'\r\n\t| 'brm'\r\n\t| 'gvg'\r\n\t| 'naxx'\r\n\t| 'core'\r\n\t| 'legacy'\r\n\t| 'vanilla';\r\n\r\nexport interface ReferenceSet {\r\n\treadonly id: SetId;\r\n\treadonly name: string;\r\n\treadonly launchDate: Date;\r\n\treadonly techSet?: boolean;\r\n\treadonly miniSetFor?: SetId;\r\n}\r\n\r\nexport const sets: readonly ReferenceSet[] = [\r\n\t{\r\n\t\tid: 'great_dark_beyond',\r\n\t\tname: `The Great Dark Beyond`,\r\n\t\tlaunchDate: new Date('2024-11-05'),\r\n\t},\r\n\t{\r\n\t\tid: 'traveling_travel_agency',\r\n\t\tname: `The Traveling Travel Agency`,\r\n\t\tlaunchDate: new Date('2024-09-10'),\r\n\t\tminiSetFor: 'perils_in_paradise',\r\n\t},\r\n\t{\r\n\t\tid: 'perils_in_paradise',\r\n\t\tname: `Perils in Paradise`,\r\n\t\tlaunchDate: new Date('2024-06-17'),\r\n\t},\r\n\t{\r\n\t\tid: 'boom_inventions',\r\n\t\tname: `Dr. Boom’s Incredible Inventions`,\r\n\t\tlaunchDate: new Date('2024-05-14'),\r\n\t\tminiSetFor: 'whizbangs_workshop',\r\n\t},\r\n\t{\r\n\t\tid: 'whizbangs_workshop',\r\n\t\tname: `Whizbang's Workshop`,\r\n\t\tlaunchDate: new Date('2024-02-13'),\r\n\t},\r\n\t{\r\n\t\tid: 'gift',\r\n\t\tname: `Gifts`,\r\n\t\tlaunchDate: new Date('2024-02-13'),\r\n\t\ttechSet: true,\r\n\t},\r\n\t{\r\n\t\tid: 'deepholm',\r\n\t\tname: `Delve into Deepholm`,\r\n\t\tlaunchDate: new Date('2024-01-18'),\r\n\t\tminiSetFor: 'wild_west',\r\n\t},\r\n\t{\r\n\t\tid: 'wild_west',\r\n\t\tname: `Showdown in the Badlands`,\r\n\t\tlaunchDate: new Date('2023-11-14'),\r\n\t},\r\n\t{\r\n\t\tid: 'ulduar',\r\n\t\tname: `Fall of Ulduar`,\r\n\t\tlaunchDate: new Date('2023-09-19'),\r\n\t\tminiSetFor: 'titans',\r\n\t},\r\n\t{\r\n\t\tid: 'caverns_of_time',\r\n\t\tname: `Caverns of Time`,\r\n\t\tlaunchDate: new Date('2023-08-31'),\r\n\t},\r\n\t{\r\n\t\tid: 'titans',\r\n\t\tname: `TITANS`,\r\n\t\tlaunchDate: new Date('2023-06-27'),\r\n\t},\r\n\t{\r\n\t\tid: 'audiopocalypse',\r\n\t\tname: `Audiopocalypse`,\r\n\t\tlaunchDate: new Date('2023-05-31'),\r\n\t\tminiSetFor: 'battle_of_the_bands',\r\n\t},\r\n\t{\r\n\t\tid: 'battle_of_the_bands',\r\n\t\tname: `Battle of the Bands`,\r\n\t\tlaunchDate: new Date('2023-03-15'),\r\n\t},\r\n\t{\r\n\t\tid: 'return_to_naxxramas',\r\n\t\tname: `Return to Naxxramas`,\r\n\t\tlaunchDate: new Date('2023-02-14'),\r\n\t\tminiSetFor: 'return_of_the_lich_king',\r\n\t},\r\n\t{\r\n\t\tid: 'path_of_arthas',\r\n\t\tname: `Path of Arthas`,\r\n\t\tlaunchDate: new Date('2022-11-01'),\r\n\t},\r\n\t{\r\n\t\tid: 'return_of_the_lich_king',\r\n\t\tname: `March of the Lich King`,\r\n\t\tlaunchDate: new Date('2022-11-01'),\r\n\t},\r\n\t{\r\n\t\tid: 'maw_and_disorder',\r\n\t\tname: `Maw and Disorder`,\r\n\t\tlaunchDate: new Date('2022-09-27'),\r\n\t\tminiSetFor: 'revendreth',\r\n\t},\r\n\t{\r\n\t\tid: 'revendreth',\r\n\t\tname: `Murder at Castle Nathria`,\r\n\t\tlaunchDate: new Date('2022-08-02'),\r\n\t},\r\n\t{\r\n\t\tid: 'throne_of_tides',\r\n\t\tname: `Throne of the Tides`,\r\n\t\tlaunchDate: new Date('2022-06-01'),\r\n\t\tminiSetFor: 'the_sunken_city',\r\n\t},\r\n\t{\r\n\t\tid: 'the_sunken_city',\r\n\t\tname: `The Sunken City`,\r\n\t\tlaunchDate: new Date('2022-03-17'),\r\n\t},\r\n\t{\r\n\t\tid: 'onyxias_lair',\r\n\t\tname: `Onyxia's Lair`,\r\n\t\tlaunchDate: new Date('2022-02-15'),\r\n\t\tminiSetFor: 'alterac_valley',\r\n\t},\r\n\t{\r\n\t\tid: 'alterac_valley',\r\n\t\tname: 'Fractured in Alterac Valley',\r\n\t\tlaunchDate: new Date('2021-12-07'),\r\n\t},\r\n\t{\r\n\t\tid: 'deadmines',\r\n\t\tname: 'Deadmines',\r\n\t\tlaunchDate: new Date('2021-11-02'),\r\n\t\tminiSetFor: 'stormwind',\r\n\t},\r\n\t{\r\n\t\tid: 'stormwind',\r\n\t\tname: 'United in Stormwind',\r\n\t\tlaunchDate: new Date('2021-07-01'),\r\n\t},\r\n\t{\r\n\t\tid: 'wailing_caverns',\r\n\t\tname: 'Wailing Caverns',\r\n\t\tlaunchDate: new Date('2021-06-03'),\r\n\t\tminiSetFor: 'the_barrens',\r\n\t},\r\n\t{\r\n\t\tid: 'the_barrens',\r\n\t\tname: 'Forged in the Barrens',\r\n\t\tlaunchDate: new Date('2021-03-15'),\r\n\t},\r\n\t{\r\n\t\tid: 'darkmoon_races',\r\n\t\tname: 'Darkmoon Races',\r\n\t\tlaunchDate: new Date('2021-01-21'),\r\n\t\tminiSetFor: 'darkmoon_faire',\r\n\t},\r\n\t{\r\n\t\tid: 'darkmoon_faire',\r\n\t\tname: 'Darkmoon Faire',\r\n\t\tlaunchDate: new Date('2020-11-17'),\r\n\t},\r\n\t{\r\n\t\tid: 'scholomance',\r\n\t\tname: 'Scholomance Academy',\r\n\t\tlaunchDate: new Date('2020-08-06'),\r\n\t},\r\n\t{\r\n\t\tid: 'black_temple',\r\n\t\tname: 'Ashes of Outland',\r\n\t\tlaunchDate: new Date('2020-04-07'),\r\n\t},\r\n\t{\r\n\t\tid: 'demon_hunter_initiate',\r\n\t\tname: 'Demon Hunter Initiate',\r\n\t\tlaunchDate: new Date('2020-04-02'),\r\n\t},\r\n\t{\r\n\t\tid: 'yod',\r\n\t\tname: \"Galakrond's Awakening\",\r\n\t\tlaunchDate: new Date('2020-01-21'),\r\n\t},\r\n\t{\r\n\t\tid: 'dragons',\r\n\t\tname: 'Descent of Dragons',\r\n\t\tlaunchDate: new Date('2019-12-10'),\r\n\t},\r\n\t{\r\n\t\tid: 'uldum',\r\n\t\tname: 'Saviors of Uldum',\r\n\t\tlaunchDate: new Date('2019-08-06'),\r\n\t},\r\n\t{\r\n\t\tid: 'dalaran',\r\n\t\tname: 'Rise of Shadows',\r\n\t\tlaunchDate: new Date('2019-04-09'),\r\n\t},\r\n\t{\r\n\t\tid: 'troll',\r\n\t\tname: \"Rastakhan's Rumble\",\r\n\t\tlaunchDate: new Date('2018-12-04'),\r\n\t},\r\n\t{\r\n\t\tid: 'boomsday',\r\n\t\tname: 'The Boomsday Project',\r\n\t\tlaunchDate: new Date('2018-08-07'),\r\n\t},\r\n\t{\r\n\t\tid: 'gilneas',\r\n\t\tname: 'The Witchwood',\r\n\t\tlaunchDate: new Date('2018-04-12'),\r\n\t},\r\n\t{\r\n\t\tid: 'lootapalooza',\r\n\t\tname: 'Kobolds and Catacombs',\r\n\t\tlaunchDate: new Date('2017-12-07'),\r\n\t},\r\n\t{\r\n\t\tid: 'icecrown',\r\n\t\tname: 'Knights of the Frozen Throne',\r\n\t\tlaunchDate: new Date('2017-08-10'),\r\n\t},\r\n\t{\r\n\t\tid: 'ungoro',\r\n\t\tname: \"Journey to Un'Goro\",\r\n\t\tlaunchDate: new Date('2017-04-06'),\r\n\t},\r\n\t// {\r\n\t// \tid: 'hof',\r\n\t// \tname: 'Hall of Fame',\r\n\t// \tlaunchDate: new Date('2017-04-04'),\r\n\t// },\r\n\t{\r\n\t\tid: 'gangs',\r\n\t\tname: 'Mean Streets of Gadgetzan',\r\n\t\tlaunchDate: new Date('2016-12-1'),\r\n\t},\r\n\t{\r\n\t\tid: 'kara',\r\n\t\tname: 'One Night in Karazhan',\r\n\t\tlaunchDate: new Date('2016-08-11'),\r\n\t},\r\n\t{\r\n\t\tid: 'og',\r\n\t\tname: 'Whispers of the Old Gods',\r\n\t\tlaunchDate: new Date('2016-04-26'),\r\n\t},\r\n\t{\r\n\t\tid: 'loe',\r\n\t\tname: 'League of Explorers',\r\n\t\tlaunchDate: new Date('2015-11-12'),\r\n\t},\r\n\t{\r\n\t\tid: 'tgt',\r\n\t\tname: 'The Grand Tournament',\r\n\t\tlaunchDate: new Date('2015-08-24'),\r\n\t},\r\n\t{\r\n\t\tid: 'brm',\r\n\t\tname: 'Blackrock Mountain',\r\n\t\tlaunchDate: new Date('2015-04-02'),\r\n\t},\r\n\t{\r\n\t\tid: 'gvg',\r\n\t\tname: 'Goblins vs Gnomes',\r\n\t\tlaunchDate: new Date('2014-12-08'),\r\n\t},\r\n\t{\r\n\t\tid: 'naxx',\r\n\t\tname: 'Naxxramas',\r\n\t\tlaunchDate: new Date('2014-07-22'),\r\n\t},\r\n\t{\r\n\t\tid: 'core',\r\n\t\tname: 'Core',\r\n\t\tlaunchDate: new Date('2021-03-25'),\r\n\t},\r\n\t// {\r\n\t// \tid: 'expert1',\r\n\t// \tname: 'Expert',\r\n\t// \tlaunchDate: new Date('2014-03-11'),\r\n\t// },\r\n\t// {\r\n\t// \tid: 'basic',\r\n\t// \tname: 'Basic',\r\n\t// \tlaunchDate: new Date('2014-03-11'),\r\n\t// },\r\n\t{\r\n\t\tid: 'legacy',\r\n\t\tname: 'Legacy',\r\n\t\tlaunchDate: new Date('2021-03-30'),\r\n\t},\r\n] as const;\r\n\r\nexport const wildSets: readonly SetId[] = sets.map((s) => s.id);\r\nexport const standardSets: readonly SetId[] = [\r\n\t'core',\r\n\t'battle_of_the_bands',\r\n\t'titans',\r\n\t'wild_west',\r\n\t'gift',\r\n\t'whizbangs_workshop',\r\n\t'perils_in_paradise',\r\n\t'great_dark_beyond',\r\n]\r\n\t.flatMap((setId) => [setId, sets.find((s) => s.miniSetFor === setId)?.id])\r\n\t.filter((setId) => setId)\r\n\t.map((setId) => setId as SetId);\r\nexport const twistSets: readonly SetId[] = wildSets;\r\n// [\r\n// \t'core',\r\n// \t'naxx',\r\n// \t'gvg',\r\n// \t'brm',\r\n// \t'tgt',\r\n// \t'loe',\r\n// \t'og',\r\n// \t'kara',\r\n// \t'gangs',\r\n// \t'ungoro',\r\n// \t'icecrown',\r\n// \t'lootapalooza',\r\n// \t'gilneas',\r\n// \t'boomsday',\r\n// \t'troll',\r\n// \t'dalaran',\r\n// \t'uldum',\r\n// \t'dragons',\r\n// \t'yod',\r\n// \t'caverns_of_time',\r\n// ];\r\n// https://hearthstone.fandom.com/wiki/Arena#Arena_Rotation\r\nexport const arenaSets: readonly SetId[] = [\r\n\t'great_dark_beyond',\r\n\t'perils_in_paradise',\r\n\t'wild_west',\r\n\t'battle_of_the_bands',\r\n\t'caverns_of_time',\r\n\t'scholomance',\r\n]\r\n\t.flatMap((setId) => [setId, sets.find((s) => s.miniSetFor === setId)?.id])\r\n\t.filter((setId) => setId)\r\n\t.map((setId) => setId as SetId);\r\nexport const duelsSets: readonly SetId[] = [\r\n\t'core',\r\n\t'legacy',\r\n\t'naxx',\r\n\t'gvg',\r\n\t'loe',\r\n\t'og',\r\n\t'kara',\r\n\t'ungoro',\r\n\t'icecrown',\r\n\t'lootapalooza',\r\n\t'gilneas',\r\n\t'uldum',\r\n\t'scholomance',\r\n\t'demon_hunter_initiate',\r\n\t'darkmoon_faire',\r\n\t'darkmoon_races',\r\n\t'the_barrens',\r\n\t'wailing_caverns',\r\n\t'stormwind',\r\n\t'black_temple',\r\n\t'deadmines',\r\n\t'alterac_valley',\r\n\t'onyxias_lair',\r\n\t'the_sunken_city',\r\n\t'throne_of_tides',\r\n\t'revendreth',\r\n\t'maw_and_disorder',\r\n\t'return_of_the_lich_king',\r\n\t'return_to_naxxramas',\r\n\t'path_of_arthas',\r\n\t'battle_of_the_bands',\r\n\t'audiopocalypse',\r\n\t'troll',\r\n\t'titans',\r\n\t'caverns_of_time',\r\n\t'ulduar',\r\n\t'dalaran',\r\n\t'gangs',\r\n\t'tgt',\r\n\t'brm',\r\n\t'dragons',\r\n\t'yod',\r\n\t'wild_west',\r\n\t'deepholm',\r\n\t// 'whizbangs_workshop',\r\n];\r\n\r\nexport const vanillaSets: readonly SetId[] = ['vanilla'];\r\n\r\nexport const isValidSet = (set: SetId, format: GameFormat, gameType: GameType): boolean => {\r\n\tswitch (gameType) {\r\n\t\tcase GameType.GT_ARENA:\r\n\t\t\treturn arenaSets.includes(set);\r\n\t}\r\n\tswitch (format) {\r\n\t\tcase GameFormat.FT_STANDARD:\r\n\t\t\treturn standardSets.includes(set);\r\n\t\tcase GameFormat.FT_TWIST:\r\n\t\t\treturn twistSets.includes(set);\r\n\t\tcase GameFormat.FT_WILD:\r\n\t\tdefault:\r\n\t\t\treturn wildSets.includes(set);\r\n\t}\r\n};\r\n"]}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { CardIds } from '../../card-ids';
|
|
2
|
-
import { AllCardsService, GameFormat } from '../../public-api';
|
|
3
2
|
import { ReferenceCard } from './reference-card';
|
|
4
3
|
export declare const CREWMATES: CardIds[];
|
|
5
4
|
export declare type RelatedCardExtractor = (cards: readonly ReferenceCard[]) => readonly string[];
|
|
6
5
|
export declare const RELATED_CARDS_DATA: {
|
|
7
6
|
[cardId: string]: readonly (string | RelatedCardExtractor)[];
|
|
8
7
|
};
|
|
9
|
-
export declare const getDynamicRelatedCardIds: (cardId: string, allCards: AllCardsService, options: {
|
|
10
|
-
format: GameFormat;
|
|
11
|
-
currentClass?: string;
|
|
12
|
-
}) => readonly string[];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const public_api_1 = require("../../public-api");
|
|
3
|
+
exports.RELATED_CARDS_DATA = exports.CREWMATES = void 0;
|
|
5
4
|
const reference_data_1 = require("./reference-data");
|
|
6
5
|
const ADVENTURER_TOKENS = [
|
|
7
6
|
"WC_034t2",
|
|
@@ -3436,130 +3435,10 @@ exports.RELATED_CARDS_DATA = {
|
|
|
3436
3435
|
["GDB_447"]: ["GDB_136t"],
|
|
3437
3436
|
["GDB_124"]: ["GDB_124t2"],
|
|
3438
3437
|
["GDB_234"]: ["GDB_234t"],
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
case "VAC_506":
|
|
3445
|
-
case "VAC_438":
|
|
3446
|
-
return filterCards(allCards, options.format, (c) => { var _a; return ((_a = c === null || c === void 0 ? void 0 : c.type) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === public_api_1.CardType[public_api_1.CardType.LOCATION]; });
|
|
3447
|
-
case "WORK_010":
|
|
3448
|
-
return filterCards(allCards, options.format, (c) => { var _a; return ((_a = c === null || c === void 0 ? void 0 : c.type) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === public_api_1.CardType[public_api_1.CardType.MINION] && (c === null || c === void 0 ? void 0 : c.cost) === 8; });
|
|
3449
|
-
case "WORK_014":
|
|
3450
|
-
return filterCards(allCards, options.format, (c) => {
|
|
3451
|
-
var _a;
|
|
3452
|
-
return ((_a = c === null || c === void 0 ? void 0 : c.type) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === public_api_1.CardType[public_api_1.CardType.MINION] &&
|
|
3453
|
-
(c === null || c === void 0 ? void 0 : c.cost) >= 5 &&
|
|
3454
|
-
public_api_1.hasCorrectTribe(c, public_api_1.Race.DEMON);
|
|
3455
|
-
});
|
|
3456
|
-
case "GDB_479":
|
|
3457
|
-
return filterCards(allCards, options.format, (c) => { var _a; return ((_a = c === null || c === void 0 ? void 0 : c.type) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === public_api_1.CardType[public_api_1.CardType.MINION] && (c === null || c === void 0 ? void 0 : c.cost) === 8; });
|
|
3458
|
-
case "GDB_864":
|
|
3459
|
-
return filterCards(allCards, options.format, (c) => { var _a; return ((_a = c === null || c === void 0 ? void 0 : c.type) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === public_api_1.CardType[public_api_1.CardType.MINION] && (c === null || c === void 0 ? void 0 : c.cost) === 1; });
|
|
3460
|
-
case "GDB_478":
|
|
3461
|
-
return filterCards(allCards, options.format, (c) => {
|
|
3462
|
-
var _a;
|
|
3463
|
-
return ((_a = c === null || c === void 0 ? void 0 : c.type) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === public_api_1.CardType[public_api_1.CardType.MINION] &&
|
|
3464
|
-
(c === null || c === void 0 ? void 0 : c.cost) === 3 &&
|
|
3465
|
-
public_api_1.hasMechanic(c, public_api_1.GameTag.DEATHRATTLE);
|
|
3466
|
-
});
|
|
3467
|
-
case "GDB_442":
|
|
3468
|
-
return filterCards(allCards, options.format, (c) => { var _a; return ((_a = c === null || c === void 0 ? void 0 : c.type) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === public_api_1.CardType[public_api_1.CardType.MINION] && (c === null || c === void 0 ? void 0 : c.cost) === 3; });
|
|
3469
|
-
case "GDB_303":
|
|
3470
|
-
case "GDB_301":
|
|
3471
|
-
return filterCards(allCards, options.format, (c) => {
|
|
3472
|
-
var _a, _b;
|
|
3473
|
-
return ((_a = c === null || c === void 0 ? void 0 : c.type) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === public_api_1.CardType[public_api_1.CardType.SPELL] &&
|
|
3474
|
-
((_b = c === null || c === void 0 ? void 0 : c.spellSchool) === null || _b === void 0 ? void 0 : _b.includes(public_api_1.SpellSchool[public_api_1.SpellSchool.FIRE]));
|
|
3475
|
-
});
|
|
3476
|
-
case "GDB_844":
|
|
3477
|
-
return filterCards(allCards, options.format, (c) => {
|
|
3478
|
-
var _a;
|
|
3479
|
-
return ((_a = c === null || c === void 0 ? void 0 : c.type) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === public_api_1.CardType[public_api_1.CardType.MINION] &&
|
|
3480
|
-
public_api_1.hasCorrectTribe(c, public_api_1.Race.BEAST) &&
|
|
3481
|
-
(c === null || c === void 0 ? void 0 : c.cost) >= 5;
|
|
3482
|
-
});
|
|
3483
|
-
case "GDB_857":
|
|
3484
|
-
return filterCards(allCards, public_api_1.GameFormat.FT_WILD, (c) => {
|
|
3485
|
-
var _a;
|
|
3486
|
-
return !public_api_1.isValidSet(c.set.toLowerCase(), public_api_1.GameFormat.FT_STANDARD) &&
|
|
3487
|
-
((_a = c === null || c === void 0 ? void 0 : c.type) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === public_api_1.CardType[public_api_1.CardType.MINION] &&
|
|
3488
|
-
(c === null || c === void 0 ? void 0 : c.cost) === 10;
|
|
3489
|
-
});
|
|
3490
|
-
case "GDB_883":
|
|
3491
|
-
case "GDB_233":
|
|
3492
|
-
return filterCards(allCards, options.format, (c) => { var _a; return ((_a = c === null || c === void 0 ? void 0 : c.type) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === public_api_1.CardType[public_api_1.CardType.MINION] && (c === null || c === void 0 ? void 0 : c.cost) === 2; });
|
|
3493
|
-
case "GDB_856":
|
|
3494
|
-
return filterCards(allCards, options.format, (c) => {
|
|
3495
|
-
var _a, _b;
|
|
3496
|
-
return ((_a = c === null || c === void 0 ? void 0 : c.type) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === public_api_1.CardType[public_api_1.CardType.SPELL] &&
|
|
3497
|
-
((_b = c === null || c === void 0 ? void 0 : c.spellSchool) === null || _b === void 0 ? void 0 : _b.includes(public_api_1.SpellSchool[public_api_1.SpellSchool.ARCANE]));
|
|
3498
|
-
});
|
|
3499
|
-
case "GDB_119":
|
|
3500
|
-
return [
|
|
3501
|
-
...exports.CREWMATES,
|
|
3502
|
-
...filterCards(allCards, options.format, (c) => {
|
|
3503
|
-
var _a;
|
|
3504
|
-
return ((_a = c === null || c === void 0 ? void 0 : c.type) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === public_api_1.CardType[public_api_1.CardType.MINION] &&
|
|
3505
|
-
(c === null || c === void 0 ? void 0 : c.cost) <= 3 &&
|
|
3506
|
-
public_api_1.hasCorrectTribe(c, public_api_1.Race.DEMON);
|
|
3507
|
-
}),
|
|
3508
|
-
];
|
|
3509
|
-
case "WORK_012":
|
|
3510
|
-
return filterCards(allCards, options.format, (c) => { var _a; return ((_a = c === null || c === void 0 ? void 0 : c.type) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === public_api_1.CardType[public_api_1.CardType.MINION] && public_api_1.hasCorrectTribe(c, public_api_1.Race.NAGA); });
|
|
3511
|
-
case "GDB_723":
|
|
3512
|
-
case "GDB_462":
|
|
3513
|
-
return filterCards(allCards, options.format, (c) => { var _a; return ((_a = c === null || c === void 0 ? void 0 : c.type) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === public_api_1.CardType[public_api_1.CardType.MINION] && public_api_1.hasCorrectTribe(c, public_api_1.Race.DRAENEI); });
|
|
3514
|
-
case "GDB_132":
|
|
3515
|
-
case "GDB_123":
|
|
3516
|
-
return filterCards(allCards, options.format, (c) => { var _a; return ((_a = c === null || c === void 0 ? void 0 : c.type) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === public_api_1.CardType[public_api_1.CardType.MINION] && public_api_1.hasCorrectTribe(c, public_api_1.Race.DEMON); });
|
|
3517
|
-
case "GDB_862":
|
|
3518
|
-
return filterCards(allCards, options.format, (c) => {
|
|
3519
|
-
var _a, _b;
|
|
3520
|
-
return ((_a = c === null || c === void 0 ? void 0 : c.type) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === public_api_1.CardType[public_api_1.CardType.SPELL] &&
|
|
3521
|
-
((_b = c.spellSchool) === null || _b === void 0 ? void 0 : _b.includes(public_api_1.SpellSchool[public_api_1.SpellSchool.HOLY]));
|
|
3522
|
-
});
|
|
3523
|
-
case "GDB_876":
|
|
3524
|
-
case "GDB_102":
|
|
3525
|
-
return filterCards(allCards, options.format, (c) => {
|
|
3526
|
-
var _a, _b, _c, _d;
|
|
3527
|
-
return ((_a = c === null || c === void 0 ? void 0 : c.mechanics) === null || _a === void 0 ? void 0 : _a.includes(public_api_1.GameTag[public_api_1.GameTag.STARSHIP_PIECE])) &&
|
|
3528
|
-
(((_b = c === null || c === void 0 ? void 0 : c.classes) === null || _b === void 0 ? void 0 : _b.length) > 1 || ((_c = c === null || c === void 0 ? void 0 : c.classes) === null || _c === void 0 ? void 0 : _c[0]) !== ((_d = options.currentClass) === null || _d === void 0 ? void 0 : _d.toUpperCase()));
|
|
3529
|
-
});
|
|
3530
|
-
case "GDB_873":
|
|
3531
|
-
return filterCards(allCards, options.format, (c) => {
|
|
3532
|
-
var _a, _b;
|
|
3533
|
-
return ((_a = c === null || c === void 0 ? void 0 : c.type) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === public_api_1.CardType[public_api_1.CardType.MINION] &&
|
|
3534
|
-
((_b = c === null || c === void 0 ? void 0 : c.mechanics) === null || _b === void 0 ? void 0 : _b.includes(public_api_1.GameTag[public_api_1.GameTag.COMBO]));
|
|
3535
|
-
});
|
|
3536
|
-
case "VAC_336":
|
|
3537
|
-
return (allCards
|
|
3538
|
-
.getCards()
|
|
3539
|
-
.filter((c) => c.collectible)
|
|
3540
|
-
.filter((c) => { var _a; return ((_a = c === null || c === void 0 ? void 0 : c.type) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === public_api_1.CardType[public_api_1.CardType.HERO]; })
|
|
3541
|
-
.filter((c) => { var _a; return !((_a = c.id) === null || _a === void 0 ? void 0 : _a.startsWith('DRG_')); })
|
|
3542
|
-
.filter((c) => !!c.set
|
|
3543
|
-
? !public_api_1.isValidSet(c.set.toLowerCase(), public_api_1.GameFormat.FT_STANDARD) &&
|
|
3544
|
-
public_api_1.isValidSet(c.set.toLowerCase(), public_api_1.GameFormat.FT_WILD)
|
|
3545
|
-
: false)
|
|
3546
|
-
.sort((a, b) => {
|
|
3547
|
-
var _a, _b, _c;
|
|
3548
|
-
return a.cost - b.cost ||
|
|
3549
|
-
((_b = (_a = a.classes) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.localeCompare((_c = b.classes) === null || _c === void 0 ? void 0 : _c[0])) ||
|
|
3550
|
-
a.name.localeCompare(b.name);
|
|
3551
|
-
})
|
|
3552
|
-
.map((c) => c.id));
|
|
3553
|
-
}
|
|
3554
|
-
};
|
|
3555
|
-
exports.getDynamicRelatedCardIds = getDynamicRelatedCardIds;
|
|
3556
|
-
const filterCards = (allCards, format, ...filters) => {
|
|
3557
|
-
return allCards
|
|
3558
|
-
.getCards()
|
|
3559
|
-
.filter((c) => c.collectible)
|
|
3560
|
-
.filter((c) => (!!c.set ? public_api_1.isValidSet(c.set.toLowerCase(), format) : false))
|
|
3561
|
-
.filter((c) => filters.every((f) => f(c)))
|
|
3562
|
-
.sort((a, b) => { var _a, _b, _c; return a.cost - b.cost || ((_b = (_a = a.classes) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.localeCompare((_c = b.classes) === null || _c === void 0 ? void 0 : _c[0])) || a.name.localeCompare(b.name); })
|
|
3563
|
-
.map((c) => c.id);
|
|
3438
|
+
["SCH_600"]: [
|
|
3439
|
+
"SCH_600t3",
|
|
3440
|
+
"SCH_600t1",
|
|
3441
|
+
"SCH_600t2",
|
|
3442
|
+
],
|
|
3564
3443
|
};
|
|
3565
3444
|
//# sourceMappingURL=related-cards-data.js.map
|