@firestone-hs/reference-data 2.0.73 → 2.0.75
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/card-ids.d.ts +89 -1
- package/dist/card-ids.js.map +1 -1
- package/dist/enums/game-tags.d.ts +3 -1
- package/dist/enums/game-tags.js +2 -0
- package/dist/enums/game-tags.js.map +1 -1
- package/dist/enums/scenario-groups.js.map +1 -1
- package/dist/models/reference-cards/reference-card.d.ts +1 -0
- package/dist/models/reference-cards/reference-card.js.map +1 -1
- package/dist/models/reference-cards/reference-data.d.ts +4 -1
- package/dist/models/reference-cards/reference-data.js +6 -34
- package/dist/models/reference-cards/reference-data.js.map +1 -1
- package/dist/models/reference-cards/reference-sets.d.ts +2 -1
- package/dist/models/reference-cards/reference-sets.js +29 -12
- package/dist/models/reference-cards/reference-sets.js.map +1 -1
- package/dist/models/reference-cards/related-cards-data.js +20 -0
- package/dist/models/reference-cards/related-cards-data.js.map +1 -1
- package/dist/services/all-cards.service.js +6 -0
- package/dist/services/all-cards.service.js.map +1 -1
- package/dist/services/bgs-utils.js +2 -5
- package/dist/services/bgs-utils.js.map +1 -1
- package/dist/services/hs-utils.d.ts +3 -1
- package/dist/services/hs-utils.js +11 -1
- package/dist/services/hs-utils.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reference-sets.js","sourceRoot":"","sources":["../../../src/models/reference-cards/reference-sets.ts"],"names":[],"mappings":";;;AAAA,iDAA8C;AA6DjC,QAAA,IAAI,GAA4B;IAC5C;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;KAClC;IACD;QACC,EAAE,EAAE,oBAAo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EV,CAAC;AAEW,QAAA,WAAW,GAAqB,CAAC,SAAS,CAAC,CAAC;AAElD,MAAM,UAAU,GAAG,CAAC,GAAU,EAAE,MAAkB,EAAW,EAAE;IACrE,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;AAVW,QAAA,UAAU,cAUrB","sourcesContent":["import { GameFormat } from '../../public-api';\r\n\r\nexport type SetId =\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}\r\n\r\nexport const sets: readonly ReferenceSet[] = [\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},\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},\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},\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},\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},\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},\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},\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},\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},\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},\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},\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'audiopocalypse',\r\n\t'titans',\r\n\t'ulduar',\r\n\t'wild_west',\r\n\t'deepholm',\r\n\t'gift',\r\n\t'whizbangs_workshop',\r\n\t'boom_inventions',\r\n\t'perils_in_paradise',\r\n];\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'core',\r\n\t'perils_in_paradise',\r\n\t'boom_inventions',\r\n\t'whizbangs_workshop',\r\n\t'titans',\r\n\t'return_of_the_lich_king',\r\n\t'the_sunken_city',\r\n\t'throne_of_tides',\r\n];\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,iDAA8C;AA+DjC,QAAA,IAAI,GAA4B;IAC5C;QACC,EAAE,EAAE,yBAAyB;QAC7B,I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qB,CAAC,SAAS,CAAC,CAAC;AAElD,MAAM,UAAU,GAAG,CAAC,GAAU,EAAE,MAAkB,EAAW,EAAE;IACrE,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;AAVW,QAAA,UAAU,cAUrB","sourcesContent":["import { GameFormat } from '../../public-api';\r\n\r\nexport type SetId =\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: '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]\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'core',\r\n\t'scholomance',\r\n\t'alterac_valley',\r\n\t'sunken_city',\r\n\t'whizbangs_workshop',\r\n\t'perils_in_paradise',\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"]}
|
|
@@ -3264,6 +3264,15 @@ exports.RELATED_CARDS_DATA = {
|
|
|
3264
3264
|
"CFM_668t",
|
|
3265
3265
|
"CFM_668t2",
|
|
3266
3266
|
],
|
|
3267
|
+
["WORK_024"]: ["WORK_024t"],
|
|
3268
|
+
["WORK_018"]: ["WORK_018t"],
|
|
3269
|
+
["WORK_019"]: ["GAME_005"],
|
|
3270
|
+
["WORK_003"]: ["CS2_101t"],
|
|
3271
|
+
["WORK_027"]: [
|
|
3272
|
+
"WORK_027t2",
|
|
3273
|
+
"WORK_027t3",
|
|
3274
|
+
"WORK_027t1",
|
|
3275
|
+
],
|
|
3267
3276
|
};
|
|
3268
3277
|
const getDynamicRelatedCardIds = (cardId, allCards, options) => {
|
|
3269
3278
|
switch (cardId) {
|
|
@@ -3272,6 +3281,17 @@ const getDynamicRelatedCardIds = (cardId, allCards, options) => {
|
|
|
3272
3281
|
case "VAC_506":
|
|
3273
3282
|
case "VAC_438":
|
|
3274
3283
|
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]; });
|
|
3284
|
+
case "WORK_010":
|
|
3285
|
+
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; });
|
|
3286
|
+
case "WORK_014":
|
|
3287
|
+
return filterCards(allCards, options.format, (c) => {
|
|
3288
|
+
var _a;
|
|
3289
|
+
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] &&
|
|
3290
|
+
(c === null || c === void 0 ? void 0 : c.cost) >= 5 &&
|
|
3291
|
+
public_api_1.hasCorrectTribe(c, public_api_1.Race.DEMON);
|
|
3292
|
+
});
|
|
3293
|
+
case "WORK_012":
|
|
3294
|
+
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); });
|
|
3275
3295
|
case "VAC_336":
|
|
3276
3296
|
return (allCards
|
|
3277
3297
|
.getCards()
|