@firestone-hs/reference-data 1.0.64 → 1.0.66
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.
|
@@ -40,6 +40,9 @@ export interface ReferenceCard {
|
|
|
40
40
|
readonly battlegroundsHeroParentDbfId?: number;
|
|
41
41
|
readonly battlegroundsPremiumDbfId?: number;
|
|
42
42
|
readonly battlegroundsNormalDbfId?: number;
|
|
43
|
+
readonly battlegroundsPutridicePool1?: boolean;
|
|
44
|
+
readonly battlegroundsPutridicePool2?: boolean;
|
|
45
|
+
readonly battlegroundsPutridiceSummonerExclusion?: boolean;
|
|
43
46
|
readonly spellSchool?: string;
|
|
44
47
|
readonly artist?: string;
|
|
45
48
|
readonly questRewardDbfId?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reference-card.js","sourceRoot":"","sources":["../../../src/models/reference-cards/reference-card.ts"],"names":[],"mappings":"","sourcesContent":["import { RarityTYpe } from './rarity.type';\r\nimport { ReferencePlayerClass } from './reference-player-class';\r\n\r\nexport interface ReferenceCard {\r\n\treadonly id: string;\r\n\treadonly dbfId: number;\r\n\treadonly name: string;\r\n\treadonly set: string;\r\n\treadonly playerClass: ReferencePlayerClass;\r\n\treadonly classes?: readonly string[];\r\n\treadonly cardClass: string;\r\n\treadonly cost?: number;\r\n\treadonly additionalCosts?: {\r\n\t\treadonly BLOODRUNE?: number;\r\n\t\treadonly FROSTRUNE?: number;\r\n\t\treadonly UNHOLYRUNE?: number;\r\n\t\treadonly DEATH?: number;\r\n\t};\r\n\treadonly attack?: number;\r\n\treadonly health?: number;\r\n\treadonly audio?: {\r\n\t\t[audioKey: string]: readonly string[];\r\n\t};\r\n\treadonly audio2?: ReferenceCardAudio;\r\n\treadonly text: string;\r\n\treadonly collectionText: string;\r\n\treadonly flavor: string;\r\n\treadonly type: string;\r\n\treadonly mechanics: string[];\r\n\treadonly referencedTags?: string[];\r\n\treadonly tags?: string[];\r\n\treadonly rarity?: RarityTYpe;\r\n\treadonly collectible?: boolean;\r\n\treadonly race?: string;\r\n\treadonly races?: readonly string[];\r\n\treadonly techLevel?: number;\r\n\treadonly durability?: number;\r\n\treadonly armor?: number;\r\n\treadonly battlegroundsHero?: boolean;\r\n\treadonly battlegroundsHeroSkin?: boolean;\r\n\treadonly battlegroundsHeroParentDbfId?: number;\r\n\treadonly battlegroundsPremiumDbfId?: number;\r\n\treadonly battlegroundsNormalDbfId?: number;\r\n\t// TODO: change this to use the enum later?\r\n\treadonly spellSchool?: string;\r\n\treadonly artist?: string;\r\n\treadonly questRewardDbfId?: number;\r\n\treadonly deckDuplicateDbfId?: number;\r\n\treadonly relatedCardDbfIds?: readonly number[];\r\n\r\n\treadonly availableAsDiamond?: boolean;\r\n\treadonly availableAsSignature?: boolean;\r\n\r\n\treadonly mercenary: boolean;\r\n\treadonly mercenaryRole: string;\r\n\treadonly mercenaryAbility: boolean;\r\n\treadonly mercenaryPassiveAbility: boolean;\r\n\treadonly mercenaryEquipment: boolean;\r\n\treadonly mercenaryTreasure: boolean;\r\n\treadonly mercenaryAbilityCooldown: number;\r\n\r\n\treadonly locales?: readonly CardLocale[];\r\n}\r\n\r\nexport interface CardLocale {\r\n\treadonly locale: string;\r\n\treadonly name: string;\r\n}\r\n\r\nexport interface ReferenceCardAudio {\r\n\t// The main sounds, like Play, Death, etc.\r\n\t[audioKey: string]: {\r\n\t\t// Each sound can be a juxtaposition of several effects\r\n\t\t[effectKey: string]: {\r\n\t\t\t// These sounds are always played\r\n\t\t\treadonly mainSounds: readonly string[];\r\n\t\t\t// One of each of these is played, with a probability depending on its weight\r\n\t\t\treadonly randomSounds: readonly {\r\n\t\t\t\treadonly weight: number;\r\n\t\t\t\treadonly sound: string;\r\n\t\t\t}[];\r\n\t\t};\r\n\t};\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"reference-card.js","sourceRoot":"","sources":["../../../src/models/reference-cards/reference-card.ts"],"names":[],"mappings":"","sourcesContent":["import { RarityTYpe } from './rarity.type';\r\nimport { ReferencePlayerClass } from './reference-player-class';\r\n\r\nexport interface ReferenceCard {\r\n\treadonly id: string;\r\n\treadonly dbfId: number;\r\n\treadonly name: string;\r\n\treadonly set: string;\r\n\treadonly playerClass: ReferencePlayerClass;\r\n\treadonly classes?: readonly string[];\r\n\treadonly cardClass: string;\r\n\treadonly cost?: number;\r\n\treadonly additionalCosts?: {\r\n\t\treadonly BLOODRUNE?: number;\r\n\t\treadonly FROSTRUNE?: number;\r\n\t\treadonly UNHOLYRUNE?: number;\r\n\t\treadonly DEATH?: number;\r\n\t};\r\n\treadonly attack?: number;\r\n\treadonly health?: number;\r\n\treadonly audio?: {\r\n\t\t[audioKey: string]: readonly string[];\r\n\t};\r\n\treadonly audio2?: ReferenceCardAudio;\r\n\treadonly text: string;\r\n\treadonly collectionText: string;\r\n\treadonly flavor: string;\r\n\treadonly type: string;\r\n\treadonly mechanics: string[];\r\n\treadonly referencedTags?: string[];\r\n\treadonly tags?: string[];\r\n\treadonly rarity?: RarityTYpe;\r\n\treadonly collectible?: boolean;\r\n\treadonly race?: string;\r\n\treadonly races?: readonly string[];\r\n\treadonly techLevel?: number;\r\n\treadonly durability?: number;\r\n\treadonly armor?: number;\r\n\r\n\treadonly battlegroundsHero?: boolean;\r\n\treadonly battlegroundsHeroSkin?: boolean;\r\n\treadonly battlegroundsHeroParentDbfId?: number;\r\n\treadonly battlegroundsPremiumDbfId?: number;\r\n\treadonly battlegroundsNormalDbfId?: number;\r\n\treadonly battlegroundsPutridicePool1?: boolean;\r\n\treadonly battlegroundsPutridicePool2?: boolean;\r\n\treadonly battlegroundsPutridiceSummonerExclusion?: boolean;\r\n\r\n\t// TODO: change this to use the enum later?\r\n\treadonly spellSchool?: string;\r\n\treadonly artist?: string;\r\n\treadonly questRewardDbfId?: number;\r\n\treadonly deckDuplicateDbfId?: number;\r\n\treadonly relatedCardDbfIds?: readonly number[];\r\n\r\n\treadonly availableAsDiamond?: boolean;\r\n\treadonly availableAsSignature?: boolean;\r\n\r\n\treadonly mercenary: boolean;\r\n\treadonly mercenaryRole: string;\r\n\treadonly mercenaryAbility: boolean;\r\n\treadonly mercenaryPassiveAbility: boolean;\r\n\treadonly mercenaryEquipment: boolean;\r\n\treadonly mercenaryTreasure: boolean;\r\n\treadonly mercenaryAbilityCooldown: number;\r\n\r\n\treadonly locales?: readonly CardLocale[];\r\n}\r\n\r\nexport interface CardLocale {\r\n\treadonly locale: string;\r\n\treadonly name: string;\r\n}\r\n\r\nexport interface ReferenceCardAudio {\r\n\t// The main sounds, like Play, Death, etc.\r\n\t[audioKey: string]: {\r\n\t\t// Each sound can be a juxtaposition of several effects\r\n\t\t[effectKey: string]: {\r\n\t\t\t// These sounds are always played\r\n\t\t\treadonly mainSounds: readonly string[];\r\n\t\t\t// One of each of these is played, with a probability depending on its weight\r\n\t\t\treadonly randomSounds: readonly {\r\n\t\t\t\treadonly weight: number;\r\n\t\t\t\treadonly sound: string;\r\n\t\t\t}[];\r\n\t\t};\r\n\t};\r\n}\r\n"]}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { GameType, Race, ReferenceCard } from '../public-api';
|
|
1
|
+
import { CardIds, GameType, Race, ReferenceCard } from '../public-api';
|
|
2
2
|
export declare const ALL_BG_RACES: Race[];
|
|
3
|
+
export declare const TOTAL_RACES_IN_GAME = 5;
|
|
4
|
+
export declare const NON_BUYABLE_MINION_IDS: CardIds[];
|
|
3
5
|
export declare const defaultStartingHp: (gameType: GameType, heroCardId: string, allCards: {
|
|
4
6
|
getCard: (cardId: string | number) => ReferenceCard;
|
|
5
7
|
}) => number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getHeroPower = exports.normalizeHeroCardId = exports.isBattlegrounds = exports.defaultStartingHp = exports.ALL_BG_RACES = void 0;
|
|
3
|
+
exports.getHeroPower = exports.normalizeHeroCardId = exports.isBattlegrounds = exports.defaultStartingHp = exports.NON_BUYABLE_MINION_IDS = exports.TOTAL_RACES_IN_GAME = exports.ALL_BG_RACES = void 0;
|
|
4
4
|
const public_api_1 = require("../public-api");
|
|
5
5
|
exports.ALL_BG_RACES = [
|
|
6
6
|
public_api_1.Race.BEAST,
|
|
@@ -14,6 +14,46 @@ exports.ALL_BG_RACES = [
|
|
|
14
14
|
public_api_1.Race.NAGA,
|
|
15
15
|
public_api_1.Race.UNDEAD,
|
|
16
16
|
];
|
|
17
|
+
exports.TOTAL_RACES_IN_GAME = 5;
|
|
18
|
+
exports.NON_BUYABLE_MINION_IDS = [
|
|
19
|
+
"TB_BaconShop_HP_033t_SKIN_A",
|
|
20
|
+
"TB_BaconShop_HP_033t_SKIN_A_G",
|
|
21
|
+
"TB_BaconShop_HP_033t_SKIN_D",
|
|
22
|
+
"TB_BaconShop_HP_033t_SKIN_D_G",
|
|
23
|
+
"BG_SCH_149",
|
|
24
|
+
"TB_BaconUps_308",
|
|
25
|
+
"TB_BaconShop_HP_105t",
|
|
26
|
+
"TB_BaconUps_307",
|
|
27
|
+
"TB_BaconShop_HP_105t_SKIN_A",
|
|
28
|
+
"TB_BaconShop_HP_105t_SKIN_A_G",
|
|
29
|
+
"EX1_554t",
|
|
30
|
+
"VAN_EX1_554t",
|
|
31
|
+
"AV_113t3t2",
|
|
32
|
+
"BG22_HERO_001p_t1et",
|
|
33
|
+
"BG22_001t2",
|
|
34
|
+
"BG22_001t2_G",
|
|
35
|
+
"BG22_404",
|
|
36
|
+
"BG22_404_G",
|
|
37
|
+
"BG22_HERO_305t",
|
|
38
|
+
"CORE_EX1_507",
|
|
39
|
+
"VAN_EX1_507",
|
|
40
|
+
"BG23_HERO_201pt",
|
|
41
|
+
"BG23_HERO_201pt2",
|
|
42
|
+
"BG23_HERO_201pt3",
|
|
43
|
+
"BG23_HERO_201pt4",
|
|
44
|
+
"BG23_HERO_201pt5",
|
|
45
|
+
"BG23_HERO_201pt6",
|
|
46
|
+
"BG_EX1_170",
|
|
47
|
+
"BG_EX1_170_G",
|
|
48
|
+
"EX1_170",
|
|
49
|
+
"BG_EX1_554t",
|
|
50
|
+
"BG_EX1_554t_G",
|
|
51
|
+
"BG22_HERO_001p_t1et",
|
|
52
|
+
"CORE_ICC_858",
|
|
53
|
+
"ICC_858",
|
|
54
|
+
"BG25_010t",
|
|
55
|
+
"BG25_010_Gt",
|
|
56
|
+
];
|
|
17
57
|
const defaultStartingHp = (gameType, heroCardId, allCards) => {
|
|
18
58
|
if (exports.isBattlegrounds(gameType)) {
|
|
19
59
|
const normalized = exports.normalizeHeroCardId(heroCardId, allCards);
|
|
@@ -89,8 +129,8 @@ const getHeroPower = (heroCardId, allCards) => {
|
|
|
89
129
|
return 'TB_BaconShop_HP_020';
|
|
90
130
|
case 'TB_BaconShop_HERO_22':
|
|
91
131
|
return 'TB_BaconShop_HP_024';
|
|
92
|
-
case
|
|
93
|
-
return
|
|
132
|
+
case "TB_BaconShop_HERO_23":
|
|
133
|
+
return "TB_BaconShop_HP_022";
|
|
94
134
|
case 'TB_BaconShop_HERO_25':
|
|
95
135
|
return 'TB_BaconShop_HP_049';
|
|
96
136
|
case 'TB_BaconShop_HERO_27':
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bgs-utils.js","sourceRoot":"","sources":["../../src/services/bgs-utils.ts"],"names":[],"mappings":";;;AAAA,8CAAuE;AAE1D,QAAA,YAAY,GAAG;IAC3B,iBAAI,CAAC,KAAK;IACV,iBAAI,CAAC,KAAK;IACV,iBAAI,CAAC,MAAM;IACX,iBAAI,CAAC,IAAI;IACT,iBAAI,CAAC,MAAM;IACX,iBAAI,CAAC,MAAM;IACX,iBAAI,CAAC,SAAS;IACd,iBAAI,CAAC,QAAQ;IACb,iBAAI,CAAC,IAAI;IACT,iBAAI,CAAC,MAAM;CACX,CAAC;AAEK,MAAM,iBAAiB,GAAG,CAChC,QAAkB,EAClB,UAAkB,EAClB,QAAiE,EACxD,EAAE;IACX,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A6C;QAC9C;YACC,wBAA+C;QAChD;YACC,wBAAiD;QAClD;YACC,6BAA6C;QAC9C;YACC,wBAA+C;QAChD;YACC,wBAAgD;QACjD;YACC,wBAA+C;QAChD;YACC,wBAA6C;QAE9C,KAAK,EAAE;YACN,OAAO,IAAI,CAAC;KACb;AACF,CAAC,CAAC;AApNW,QAAA,YAAY,gBAoNvB","sourcesContent":["import { CardIds, GameType, Race, ReferenceCard } from '../public-api';\r\n\r\nexport const ALL_BG_RACES = [\r\n\tRace.BEAST,\r\n\tRace.DEMON,\r\n\tRace.DRAGON,\r\n\tRace.MECH,\r\n\tRace.MURLOC,\r\n\tRace.PIRATE,\r\n\tRace.ELEMENTAL,\r\n\tRace.QUILBOAR,\r\n\tRace.NAGA,\r\n\tRace.UNDEAD,\r\n];\r\n\r\nexport const defaultStartingHp = (\r\n\tgameType: GameType,\r\n\theroCardId: string,\r\n\tallCards: { getCard: (cardId: string | number) => ReferenceCard },\r\n): number => {\r\n\tif (isBattlegrounds(gameType)) {\r\n\t\tconst normalized = normalizeHeroCardId(heroCardId, allCards);\r\n\t\treturn allCards.getCard(normalized).health || 30;\r\n\t}\r\n\treturn 30;\r\n};\r\n\r\nexport const isBattlegrounds = (gameType: GameType): boolean => {\r\n\treturn [\r\n\t\tGameType.GT_BATTLEGROUNDS,\r\n\t\tGameType.GT_BATTLEGROUNDS_FRIENDLY,\r\n\t\tGameType.GT_BATTLEGROUNDS_AI_VS_AI,\r\n\t\tGameType.GT_BATTLEGROUNDS_PLAYER_VS_AI,\r\n\t].includes(gameType as GameType);\r\n};\r\n\r\nexport const normalizeHeroCardId = (\r\n\theroCardId: string,\r\n\tallCards: { getCard: (cardId: string | number) => ReferenceCard },\r\n): string => {\r\n\tif (!heroCardId) {\r\n\t\treturn heroCardId;\r\n\t}\r\n\r\n\tconst normalizedAfterSkin = normalizeHeroCardIdAfterSkin(heroCardId, allCards);\r\n\tswitch (normalizedAfterSkin) {\r\n\t\tcase 'TB_BaconShop_HERO_59t':\r\n\t\t\treturn 'TB_BaconShop_HERO_59';\r\n\t\tcase CardIds.QueenAzshara_NagaQueenAzsharaToken:\r\n\t\t\treturn CardIds.QueenAzshara_BG22_HERO_007;\r\n\t\tdefault:\r\n\t\t\treturn normalizedAfterSkin;\r\n\t}\r\n};\r\n\r\nconst normalizeHeroCardIdAfterSkin = (\r\n\theroCardId: string,\r\n\tallCards: { getCard: (cardId: string | number) => ReferenceCard },\r\n): string => {\r\n\tconst heroCard = allCards.getCard(heroCardId);\r\n\tif (!!heroCard?.battlegroundsHeroParentDbfId) {\r\n\t\tconst parentCard = allCards.getCard(heroCard.battlegroundsHeroParentDbfId);\r\n\t\tif (!!parentCard) {\r\n\t\t\treturn parentCard.id;\r\n\t\t}\r\n\t}\r\n\t// Fallback to regex\r\n\tconst bgHeroSkinMatch = heroCardId.match(/(.*)_SKIN_.*/);\r\n\tif (bgHeroSkinMatch) {\r\n\t\treturn bgHeroSkinMatch[1];\r\n\t}\r\n\treturn heroCardId;\r\n};\r\n\r\nexport const getHeroPower = (\r\n\theroCardId: string,\r\n\tallCards: { getCard: (cardId: string | number) => ReferenceCard },\r\n): string => {\r\n\tconst normalized = normalizeHeroCardId(heroCardId, allCards);\r\n\tswitch (normalized) {\r\n\t\tcase 'TB_BaconShop_HERO_01':\r\n\t\t\treturn 'TB_BaconShop_HP_001';\r\n\t\tcase 'TB_BaconShop_HERO_02':\r\n\t\t\treturn 'TB_BaconShop_HP_011';\r\n\t\tcase 'TB_BaconShop_HERO_08':\r\n\t\t\treturn 'TB_BaconShop_HP_069';\r\n\t\tcase CardIds.RagnarosTheFirelordBattlegrounds:\r\n\t\t\treturn CardIds.DieInsectsBattlegrounds_TB_BaconShop_HP_087;\r\n\t\tcase 'TB_BaconShop_HERO_12':\r\n\t\t\treturn 'TB_BaconShop_HP_041';\r\n\t\tcase CardIds.QueenWagtoggleBattlegrounds:\r\n\t\t\treturn CardIds.WaxWarbandBattlegrounds;\r\n\t\tcase 'TB_BaconShop_HERO_15':\r\n\t\t\treturn 'TB_BaconShop_HP_010';\r\n\t\tcase 'TB_BaconShop_HERO_16':\r\n\t\t\treturn 'TB_BaconShop_HP_044';\r\n\t\tcase 'TB_BaconShop_HERO_17':\r\n\t\t\treturn 'TB_BaconShop_HP_015';\r\n\t\tcase 'TB_BaconShop_HERO_18':\r\n\t\t\treturn 'TB_BaconShop_HP_072';\r\n\t\tcase 'TB_BaconShop_HERO_20':\r\n\t\t\treturn 'TB_BaconShop_HP_018';\r\n\t\tcase 'TB_BaconShop_HERO_21':\r\n\t\t\treturn 'TB_BaconShop_HP_020';\r\n\t\tcase 'TB_BaconShop_HERO_22':\r\n\t\t\treturn 'TB_BaconShop_HP_024';\r\n\t\tcase 'TB_BaconShop_HERO_23':\r\n\t\t\treturn 'TB_BaconShop_HP_022';\r\n\t\tcase 'TB_BaconShop_HERO_25':\r\n\t\t\treturn 'TB_BaconShop_HP_049';\r\n\t\tcase 'TB_BaconShop_HERO_27':\r\n\t\t\treturn 'TB_BaconShop_HP_014';\r\n\t\tcase 'TB_BaconShop_HERO_28':\r\n\t\t\treturn 'TB_BaconShop_HP_028';\r\n\t\tcase 'TB_BaconShop_HERO_30':\r\n\t\t\treturn 'TB_BaconShop_HP_043';\r\n\t\tcase 'TB_BaconShop_HERO_31':\r\n\t\t\treturn 'TB_BaconShop_HP_009';\r\n\t\tcase 'TB_BaconShop_HERO_33':\r\n\t\t\treturn 'TB_BaconShop_HP_033';\r\n\t\tcase 'TB_BaconShop_HERO_34':\r\n\t\t\treturn 'TB_BaconShop_HP_035';\r\n\t\tcase 'TB_BaconShop_HERO_35':\r\n\t\t\treturn 'TB_BaconShop_HP_039';\r\n\t\tcase 'TB_BaconShop_HERO_36':\r\n\t\t\treturn 'TB_BaconShop_HP_042';\r\n\t\tcase 'TB_BaconShop_HERO_37':\r\n\t\t\treturn 'TB_BaconShop_HP_036';\r\n\t\tcase 'TB_BaconShop_HERO_38':\r\n\t\t\treturn 'TB_BaconShop_HP_038';\r\n\t\tcase 'TB_BaconShop_HERO_39':\r\n\t\t\treturn 'TB_BaconShop_HP_040';\r\n\t\tcase 'TB_BaconShop_HERO_40':\r\n\t\t\treturn 'TB_BaconShop_HP_057';\r\n\t\tcase 'TB_BaconShop_HERO_41':\r\n\t\t\treturn 'TB_BaconShop_HP_046';\r\n\t\tcase 'TB_BaconShop_HERO_42':\r\n\t\t\treturn 'TB_BaconShop_HP_047';\r\n\t\tcase 'TB_BaconShop_HERO_43':\r\n\t\t\treturn 'TB_BaconShop_HP_048';\r\n\t\t// case 'TB_BaconShop_HERO_44':\r\n\t\t// \treturn 'TB_BaconShop_HP_050';\r\n\t\tcase 'TB_BaconShop_HERO_45':\r\n\t\t\treturn 'TB_BaconShop_HP_053';\r\n\t\tcase 'TB_BaconShop_HERO_47':\r\n\t\t\treturn 'TB_BaconShop_HP_051';\r\n\t\tcase 'TB_BaconShop_HERO_49':\r\n\t\t\treturn 'TB_BaconShop_HP_054';\r\n\t\tcase 'TB_BaconShop_HERO_50':\r\n\t\t\treturn 'TB_BaconShop_HP_077';\r\n\t\tcase 'TB_BaconShop_HERO_52':\r\n\t\t\treturn 'TB_BaconShop_HP_061';\r\n\t\tcase 'TB_BaconShop_HERO_53':\r\n\t\t\treturn 'TB_BaconShop_HP_062';\r\n\t\tcase 'TB_BaconShop_HERO_55':\r\n\t\t\treturn 'TB_BaconShop_HP_056';\r\n\t\tcase 'TB_BaconShop_HERO_56':\r\n\t\t\treturn 'TB_BaconShop_HP_064';\r\n\t\tcase 'TB_BaconShop_HERO_57':\r\n\t\t\treturn 'TB_BaconShop_HP_063';\r\n\t\tcase 'TB_BaconShop_HERO_58':\r\n\t\t\treturn 'TB_BaconShop_HP_052';\r\n\t\tcase 'TB_BaconShop_HERO_59t':\r\n\t\t\treturn 'TB_BaconShop_HP_065t2';\r\n\t\tcase 'TB_BaconShop_HERO_59':\r\n\t\t\treturn 'TB_BaconShop_HP_065';\r\n\t\tcase 'TB_BaconShop_HERO_60':\r\n\t\t\treturn 'TB_BaconShop_HP_066';\r\n\t\tcase 'TB_BaconShop_HERO_61':\r\n\t\t\treturn 'TB_BaconShop_HP_067';\r\n\t\tcase 'TB_BaconShop_HERO_62':\r\n\t\t\treturn 'TB_BaconShop_HP_068';\r\n\t\tcase 'TB_BaconShop_HERO_64':\r\n\t\t\treturn 'TB_BaconShop_HP_074';\r\n\t\tcase CardIds.CaptainHooktuskBattlegrounds:\r\n\t\t\treturn CardIds.TrashForTreasureBattlegrounds;\r\n\t\tcase 'TB_BaconShop_HERO_68':\r\n\t\t\treturn 'TB_BaconShop_HP_076';\r\n\t\tcase 'TB_BaconShop_HERO_70':\r\n\t\t\treturn 'TB_BaconShop_HP_080';\r\n\t\tcase 'TB_BaconShop_HERO_71':\r\n\t\t\treturn 'TB_BaconShop_HP_084';\r\n\t\tcase 'TB_BaconShop_HERO_72':\r\n\t\t\treturn 'TB_BaconShop_HP_081';\r\n\t\tcase 'TB_BaconShop_HERO_74':\r\n\t\t\treturn 'TB_BaconShop_HP_082';\r\n\t\tcase CardIds.ChenvaalaBattlegrounds:\r\n\t\t\treturn CardIds.AvalancheBattlegrounds;\r\n\t\tcase CardIds.RakanishuBattlegrounds:\r\n\t\t\treturn CardIds.TavernLightingBattlegrounds;\r\n\t\tcase CardIds.AlakirBattlegrounds:\r\n\t\t\treturn CardIds.SwattingInsectsBattlegrounds;\r\n\t\tcase CardIds.ZephrysTheGreatBattlegrounds:\r\n\t\t\treturn CardIds.ThreeWishesBattlegrounds;\r\n\t\tcase CardIds.SilasDarkmoonBattlegrounds:\r\n\t\t\treturn CardIds.ComeOneComeAllBattlegrounds;\r\n\t\tcase CardIds.CthunBattlegrounds:\r\n\t\t\treturn CardIds.SaturdayCthunsBattlegrounds;\r\n\t\tcase CardIds.NzothBattlegrounds:\r\n\t\t\treturn CardIds.AvatarOfNzothBattlegrounds;\r\n\t\tcase CardIds.YshaarjBattlegrounds:\r\n\t\t\treturn CardIds.EmbraceYourRageBattlegrounds;\r\n\t\tcase CardIds.TickatusBattlegrounds:\r\n\t\t\treturn CardIds.PrizeWallBattlegrounds;\r\n\t\tcase CardIds.GreyboughBattlegrounds:\r\n\t\t\treturn CardIds.SproutItOutBattlegrounds;\r\n\t\tcase CardIds.OverlordSaurfang_BG20_HERO_102:\r\n\t\t\treturn CardIds.OverlordSaurfang_ForTheHorde;\r\n\t\tcase CardIds.DeathSpeakerBlackthorn_BG20_HERO_103:\r\n\t\t\treturn CardIds.DeathSpeakerBlackthorn_Bloodbound;\r\n\t\tcase CardIds.Voljin_BG20_HERO_201:\r\n\t\t\treturn CardIds.Voljin_SpiritSwap_BG20_HERO_201p;\r\n\t\tcase CardIds.Xyrella_BG20_HERO_101:\r\n\t\t\treturn CardIds.Xyrella_SeeTheLight;\r\n\t\tcase CardIds.MutanusTheDevourer_BG20_HERO_301:\r\n\t\t\treturn CardIds.MutanusTheDevourer_Devour;\r\n\t\tcase CardIds.GuffRunetotem_BG20_HERO_242:\r\n\t\t\treturn CardIds.GuffRunetotem_NaturalBalance;\r\n\t\tcase CardIds.KurtrusAshfallen_BG20_HERO_280:\r\n\t\t\treturn CardIds.KurtrusAshfallen_FinalShowdown;\r\n\t\tcase CardIds.Galewing:\r\n\t\t\treturn CardIds.Galewing_DungarsGryphon;\r\n\t\tcase CardIds.TradePrinceGallywixBattlegrounds:\r\n\t\t\treturn CardIds.SmartSavingsBattlegrounds;\r\n\t\tcase CardIds.MasterNguyen:\r\n\t\t\treturn CardIds.MasterNguyen_PowerOfTheStorm;\r\n\t\tcase CardIds.CarielRoame_BG21_HERO_000:\r\n\t\t\treturn CardIds.CarielRoame_ConvictionRank1;\r\n\t\tcase CardIds.Diablo:\r\n\t\t\treturn CardIds.Diablo_RealmOfTerror;\r\n\t\tcase CardIds.Sneed_BG21_HERO_030:\r\n\t\t\treturn CardIds.Sneed_SneedsReplicator;\r\n\t\tcase CardIds.CookieTheCook_BG21_HERO_020:\r\n\t\t\treturn CardIds.CookieTheCook_StirThePot;\r\n\t\tcase CardIds.TamsinRoame_BG20_HERO_282:\r\n\t\t\treturn CardIds.TamsinRoame_FragrantPhylactery;\r\n\t\tcase CardIds.ScabbsCutterbutter_BG21_HERO_010:\r\n\t\t\treturn CardIds.ScabbsCutterbutter_ISpy;\r\n\t\tcase CardIds.Brukan_BG22_HERO_001:\r\n\t\t\treturn CardIds.Brukan_EmbraceTheElements;\r\n\t\tcase CardIds.Drekthar_BG22_HERO_002:\r\n\t\t\treturn CardIds.Drekthar_LeadTheFrostwolves;\r\n\t\tcase CardIds.VanndarStormpike_BG22_HERO_003:\r\n\t\t\treturn CardIds.VanndarStormpike_LeadTheStormpikes;\r\n\t\tcase CardIds.TavishStormpike_BG22_HERO_000:\r\n\t\t\treturn CardIds.TavishStormpike_Deadeye;\r\n\t\tcase CardIds.VardenDawngrasp_BG22_HERO_004:\r\n\t\t\treturn CardIds.VardenDawngrasp_TwiceAsNice;\r\n\t\tcase CardIds.Rokara_BG20_HERO_100:\r\n\t\t\treturn CardIds.Rokara_GloryOfCombat;\r\n\t\tcase CardIds.Onyxia_BG22_HERO_305:\r\n\t\t\treturn CardIds.Onyxia_Broodmother;\r\n\t\tcase CardIds.AmbassadorFaelin_BG22_HERO_201:\r\n\t\t\treturn CardIds.AmbassadorFaelin_ExpeditionPlans;\r\n\t\tcase CardIds.IniStormcoil_BG22_HERO_200:\r\n\t\t\treturn CardIds.IniStormcoil_Mechgyver;\r\n\t\tcase CardIds.QueenAzshara_BG22_HERO_007:\r\n\t\t\treturn CardIds.QueenAzshara_AzsharasAmbition;\r\n\t\tcase CardIds.QueenAzshara_NagaQueenAzsharaToken:\r\n\t\t\treturn CardIds.QueenAzshara_NagaConquest;\r\n\t\tcase CardIds.Ozumat_BG23_HERO_201:\r\n\t\t\treturn CardIds.Ozumat_Tentacular;\r\n\t\tcase CardIds.LadyVashj_BG23_HERO_304:\r\n\t\t\treturn CardIds.LadyVashj_RelicsOfTheDeep;\r\n\t\tcase CardIds.HeistbaronTogwaggle_BG23_HERO_305:\r\n\t\t\treturn CardIds.HeistbaronTogwaggle_ThePerfectCrime;\r\n\t\tcase CardIds.MurlocHolmes_BG23_HERO_303:\r\n\t\t\treturn CardIds.MurlocHolmes_DetectiveForHire;\r\n\t\tcase CardIds.SireDenathrius_BG24_HERO_100:\r\n\t\t\treturn CardIds.SireDenathrius_Whodunitquestion;\r\n\t\tcase CardIds.SylvanasWindrunner_BG23_HERO_306:\r\n\t\t\treturn CardIds.SylvanasWindrunner_ReclaimedSouls;\r\n\t\tcase CardIds.TheJailerBattlegrounds:\r\n\t\t\treturn CardIds.RunicEmpowermentBattlegrounds;\r\n\t\tcase CardIds.EnhanceOMechano_BG24_HERO_204:\r\n\t\t\treturn CardIds.EnhanceOMechano_Enhancification;\r\n\t\tcase CardIds.ProfessorPutricide_BG25_HERO_100:\r\n\t\t\treturn CardIds.ProfessorPutricide_BuildAnUndead;\r\n\t\tcase CardIds.TeronGorefiend_BG25_HERO_103:\r\n\t\t\treturn CardIds.TeronGorefiend_RapidReanimation;\r\n\t\tcase CardIds.ETCBandManager_BG25_HERO_105:\r\n\t\t\treturn CardIds.ETCBandManager_SignANewArtist;\r\n\r\n\t\tcase '':\r\n\t\t\treturn null; // new heroes\r\n\t}\r\n};\r\n"]}
|
|
1
|
+
{"version":3,"file":"bgs-utils.js","sourceRoot":"","sources":["../../src/services/bgs-utils.ts"],"names":[],"mappings":";;;AAAA,8CAAuE;AAE1D,QAAA,YAAY,GAAG;IAC3B,iBAAI,CAAC,KAAK;IACV,iBAAI,CAAC,KAAK;IACV,iBAAI,CAAC,MAAM;IACX,iBAAI,CAAC,IAAI;IACT,iBAAI,CAAC,MAAM;IACX,iBAAI,CAAC,MAAM;IACX,iBAAI,CAAC,SAAS;IACd,iBAAI,CAAC,QAAQ;IACb,iBAAI,CAAC,IAAI;IACT,iBAAI,CAAC,MAAM;CACX,CAAC;AAEW,QAAA,mBAAmB,GAAG,CAAC,CAAC;AAExB,QAAA,sBAAsB,GAAG;;;;;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YACC,wBAA6C;QAC9C;YACC,yBAAyC;QAC1C;YACC,wBAAiC;QAClC;YACC,wBAAyC;QAC1C;YACC,wBAAmD;QACpD;YACC,yBAA6C;QAC9C;YACC,wBAA+C;QAChD;YACC,wBAAiD;QAClD;YACC,6BAA6C;QAC9C;YACC,wBAA+C;QAChD;YACC,wBAAgD;QACjD;YACC,wBAA+C;QAChD;YACC,wBAA6C;QAE9C,KAAK,EAAE;YACN,OAAO,IAAI,CAAC;KACb;AACF,CAAC,CAAC;AApNW,QAAA,YAAY,gBAoNvB","sourcesContent":["import { CardIds, GameType, Race, ReferenceCard } from '../public-api';\r\n\r\nexport const ALL_BG_RACES = [\r\n\tRace.BEAST,\r\n\tRace.DEMON,\r\n\tRace.DRAGON,\r\n\tRace.MECH,\r\n\tRace.MURLOC,\r\n\tRace.PIRATE,\r\n\tRace.ELEMENTAL,\r\n\tRace.QUILBOAR,\r\n\tRace.NAGA,\r\n\tRace.UNDEAD,\r\n];\r\n\r\nexport const TOTAL_RACES_IN_GAME = 5;\r\n\r\nexport const NON_BUYABLE_MINION_IDS = [\r\n\tCardIds.CuddlgamBattlegrounds_TB_BaconShop_HP_033t_SKIN_A,\r\n\tCardIds.CuddlgamBattlegrounds_TB_BaconShop_HP_033t_SKIN_A_G,\r\n\tCardIds.AbominableAmalgamBattlegrounds_TB_BaconShop_HP_033t_SKIN_D,\r\n\tCardIds.AbominableAmalgamBattlegrounds_TB_BaconShop_HP_033t_SKIN_D_G,\r\n\tCardIds.ArgentBraggart_BG_SCH_149,\r\n\tCardIds.ArgentBraggartBattlegrounds,\r\n\tCardIds.AvatarOfNzoth_FishOfNzothTokenBattlegrounds,\r\n\tCardIds.FishOfNzothBattlegrounds,\r\n\tCardIds.CattlecarpOfNzothBattlegrounds_TB_BaconShop_HP_105t_SKIN_A,\r\n\tCardIds.CattlecarpOfNzothBattlegrounds_TB_BaconShop_HP_105t_SKIN_A_G,\r\n\tCardIds.SnakeTrap_SnakeLegacyToken,\r\n\tCardIds.SnakeTrap_SnakeVanillaToken,\r\n\tCardIds.ImprovedSnakeTrap_SnakeToken,\r\n\tCardIds.ElementEarth_StoneElementalToken,\r\n\tCardIds.BabyKrush_DevilsaurToken,\r\n\tCardIds.DevilsaurBattlegrounds,\r\n\t// To remove once the cards list is properly updated\r\n\tCardIds.FriendOfAFriend_BG22_404,\r\n\tCardIds.FriendOfAFriend_BG22_404_G,\r\n\tCardIds.Onyxia_OnyxianWhelpToken,\r\n\tCardIds.MurlocWarleaderCore,\r\n\tCardIds.MurlocWarleaderVanilla,\r\n\t// 23.4, probably not needed since they are already tokens\r\n\tCardIds.Tentacular_OzumatsTentacleToken_BG23_HERO_201pt,\r\n\tCardIds.Tentacular_OzumatsTentacleToken_BG23_HERO_201pt2,\r\n\tCardIds.Tentacular_OzumatsTentacleToken_BG23_HERO_201pt3,\r\n\tCardIds.Tentacular_OzumatsTentacleToken_BG23_HERO_201pt4,\r\n\tCardIds.Tentacular_OzumatsTentacleToken_BG23_HERO_201pt5,\r\n\tCardIds.Tentacular_OzumatsTentacleToken_BG23_HERO_201pt6,\r\n\t// 24.0, same\r\n\tCardIds.EmperorCobraLegacy_BG_EX1_170,\r\n\tCardIds.EmperorCobraLegacy_BG_EX1_170_G,\r\n\tCardIds.EmperorCobraLegacy_EX1_170,\r\n\tCardIds.SnakeLegacyToken,\r\n\tCardIds.SnakeLegacy,\r\n\tCardIds.ElementEarth_StoneElementalToken,\r\n\tCardIds.BolvarFireblood_CORE_ICC_858,\r\n\tCardIds.BolvarFireblood_ICC_858,\r\n\t// 25.2\r\n\tCardIds.HandlessForsaken_HelpingHandToken,\r\n\tCardIds.HandlessForsaken_HelpingHandTokenBattlegrounds,\r\n];\r\n\r\nexport const defaultStartingHp = (\r\n\tgameType: GameType,\r\n\theroCardId: string,\r\n\tallCards: { getCard: (cardId: string | number) => ReferenceCard },\r\n): number => {\r\n\tif (isBattlegrounds(gameType)) {\r\n\t\tconst normalized = normalizeHeroCardId(heroCardId, allCards);\r\n\t\treturn allCards.getCard(normalized).health || 30;\r\n\t}\r\n\treturn 30;\r\n};\r\n\r\nexport const isBattlegrounds = (gameType: GameType): boolean => {\r\n\treturn [\r\n\t\tGameType.GT_BATTLEGROUNDS,\r\n\t\tGameType.GT_BATTLEGROUNDS_FRIENDLY,\r\n\t\tGameType.GT_BATTLEGROUNDS_AI_VS_AI,\r\n\t\tGameType.GT_BATTLEGROUNDS_PLAYER_VS_AI,\r\n\t].includes(gameType as GameType);\r\n};\r\n\r\nexport const normalizeHeroCardId = (\r\n\theroCardId: string,\r\n\tallCards: { getCard: (cardId: string | number) => ReferenceCard },\r\n): string => {\r\n\tif (!heroCardId) {\r\n\t\treturn heroCardId;\r\n\t}\r\n\r\n\tconst normalizedAfterSkin = normalizeHeroCardIdAfterSkin(heroCardId, allCards);\r\n\tswitch (normalizedAfterSkin) {\r\n\t\tcase 'TB_BaconShop_HERO_59t':\r\n\t\t\treturn 'TB_BaconShop_HERO_59';\r\n\t\tcase CardIds.QueenAzshara_NagaQueenAzsharaToken:\r\n\t\t\treturn CardIds.QueenAzshara_BG22_HERO_007;\r\n\t\tdefault:\r\n\t\t\treturn normalizedAfterSkin;\r\n\t}\r\n};\r\n\r\nconst normalizeHeroCardIdAfterSkin = (\r\n\theroCardId: string,\r\n\tallCards: { getCard: (cardId: string | number) => ReferenceCard },\r\n): string => {\r\n\tconst heroCard = allCards.getCard(heroCardId);\r\n\tif (!!heroCard?.battlegroundsHeroParentDbfId) {\r\n\t\tconst parentCard = allCards.getCard(heroCard.battlegroundsHeroParentDbfId);\r\n\t\tif (!!parentCard) {\r\n\t\t\treturn parentCard.id;\r\n\t\t}\r\n\t}\r\n\t// Fallback to regex\r\n\tconst bgHeroSkinMatch = heroCardId.match(/(.*)_SKIN_.*/);\r\n\tif (bgHeroSkinMatch) {\r\n\t\treturn bgHeroSkinMatch[1];\r\n\t}\r\n\treturn heroCardId;\r\n};\r\n\r\nexport const getHeroPower = (\r\n\theroCardId: string,\r\n\tallCards: { getCard: (cardId: string | number) => ReferenceCard },\r\n): string => {\r\n\tconst normalized = normalizeHeroCardId(heroCardId, allCards);\r\n\tswitch (normalized) {\r\n\t\tcase 'TB_BaconShop_HERO_01':\r\n\t\t\treturn 'TB_BaconShop_HP_001';\r\n\t\tcase 'TB_BaconShop_HERO_02':\r\n\t\t\treturn 'TB_BaconShop_HP_011';\r\n\t\tcase 'TB_BaconShop_HERO_08':\r\n\t\t\treturn 'TB_BaconShop_HP_069';\r\n\t\tcase CardIds.RagnarosTheFirelordBattlegrounds:\r\n\t\t\treturn CardIds.DieInsectsBattlegrounds_TB_BaconShop_HP_087;\r\n\t\tcase 'TB_BaconShop_HERO_12':\r\n\t\t\treturn 'TB_BaconShop_HP_041';\r\n\t\tcase CardIds.QueenWagtoggleBattlegrounds:\r\n\t\t\treturn CardIds.WaxWarbandBattlegrounds;\r\n\t\tcase 'TB_BaconShop_HERO_15':\r\n\t\t\treturn 'TB_BaconShop_HP_010';\r\n\t\tcase 'TB_BaconShop_HERO_16':\r\n\t\t\treturn 'TB_BaconShop_HP_044';\r\n\t\tcase 'TB_BaconShop_HERO_17':\r\n\t\t\treturn 'TB_BaconShop_HP_015';\r\n\t\tcase 'TB_BaconShop_HERO_18':\r\n\t\t\treturn 'TB_BaconShop_HP_072';\r\n\t\tcase 'TB_BaconShop_HERO_20':\r\n\t\t\treturn 'TB_BaconShop_HP_018';\r\n\t\tcase 'TB_BaconShop_HERO_21':\r\n\t\t\treturn 'TB_BaconShop_HP_020';\r\n\t\tcase 'TB_BaconShop_HERO_22':\r\n\t\t\treturn 'TB_BaconShop_HP_024';\r\n\t\tcase CardIds.ShudderwockBattlegrounds:\r\n\t\t\treturn CardIds.SnickerSnackBattlegrounds;\r\n\t\tcase 'TB_BaconShop_HERO_25':\r\n\t\t\treturn 'TB_BaconShop_HP_049';\r\n\t\tcase 'TB_BaconShop_HERO_27':\r\n\t\t\treturn 'TB_BaconShop_HP_014';\r\n\t\tcase 'TB_BaconShop_HERO_28':\r\n\t\t\treturn 'TB_BaconShop_HP_028';\r\n\t\tcase 'TB_BaconShop_HERO_30':\r\n\t\t\treturn 'TB_BaconShop_HP_043';\r\n\t\tcase 'TB_BaconShop_HERO_31':\r\n\t\t\treturn 'TB_BaconShop_HP_009';\r\n\t\tcase 'TB_BaconShop_HERO_33':\r\n\t\t\treturn 'TB_BaconShop_HP_033';\r\n\t\tcase 'TB_BaconShop_HERO_34':\r\n\t\t\treturn 'TB_BaconShop_HP_035';\r\n\t\tcase 'TB_BaconShop_HERO_35':\r\n\t\t\treturn 'TB_BaconShop_HP_039';\r\n\t\tcase 'TB_BaconShop_HERO_36':\r\n\t\t\treturn 'TB_BaconShop_HP_042';\r\n\t\tcase 'TB_BaconShop_HERO_37':\r\n\t\t\treturn 'TB_BaconShop_HP_036';\r\n\t\tcase 'TB_BaconShop_HERO_38':\r\n\t\t\treturn 'TB_BaconShop_HP_038';\r\n\t\tcase 'TB_BaconShop_HERO_39':\r\n\t\t\treturn 'TB_BaconShop_HP_040';\r\n\t\tcase 'TB_BaconShop_HERO_40':\r\n\t\t\treturn 'TB_BaconShop_HP_057';\r\n\t\tcase 'TB_BaconShop_HERO_41':\r\n\t\t\treturn 'TB_BaconShop_HP_046';\r\n\t\tcase 'TB_BaconShop_HERO_42':\r\n\t\t\treturn 'TB_BaconShop_HP_047';\r\n\t\tcase 'TB_BaconShop_HERO_43':\r\n\t\t\treturn 'TB_BaconShop_HP_048';\r\n\t\t// case 'TB_BaconShop_HERO_44':\r\n\t\t// \treturn 'TB_BaconShop_HP_050';\r\n\t\tcase 'TB_BaconShop_HERO_45':\r\n\t\t\treturn 'TB_BaconShop_HP_053';\r\n\t\tcase 'TB_BaconShop_HERO_47':\r\n\t\t\treturn 'TB_BaconShop_HP_051';\r\n\t\tcase 'TB_BaconShop_HERO_49':\r\n\t\t\treturn 'TB_BaconShop_HP_054';\r\n\t\tcase 'TB_BaconShop_HERO_50':\r\n\t\t\treturn 'TB_BaconShop_HP_077';\r\n\t\tcase 'TB_BaconShop_HERO_52':\r\n\t\t\treturn 'TB_BaconShop_HP_061';\r\n\t\tcase 'TB_BaconShop_HERO_53':\r\n\t\t\treturn 'TB_BaconShop_HP_062';\r\n\t\tcase 'TB_BaconShop_HERO_55':\r\n\t\t\treturn 'TB_BaconShop_HP_056';\r\n\t\tcase 'TB_BaconShop_HERO_56':\r\n\t\t\treturn 'TB_BaconShop_HP_064';\r\n\t\tcase 'TB_BaconShop_HERO_57':\r\n\t\t\treturn 'TB_BaconShop_HP_063';\r\n\t\tcase 'TB_BaconShop_HERO_58':\r\n\t\t\treturn 'TB_BaconShop_HP_052';\r\n\t\tcase 'TB_BaconShop_HERO_59t':\r\n\t\t\treturn 'TB_BaconShop_HP_065t2';\r\n\t\tcase 'TB_BaconShop_HERO_59':\r\n\t\t\treturn 'TB_BaconShop_HP_065';\r\n\t\tcase 'TB_BaconShop_HERO_60':\r\n\t\t\treturn 'TB_BaconShop_HP_066';\r\n\t\tcase 'TB_BaconShop_HERO_61':\r\n\t\t\treturn 'TB_BaconShop_HP_067';\r\n\t\tcase 'TB_BaconShop_HERO_62':\r\n\t\t\treturn 'TB_BaconShop_HP_068';\r\n\t\tcase 'TB_BaconShop_HERO_64':\r\n\t\t\treturn 'TB_BaconShop_HP_074';\r\n\t\tcase CardIds.CaptainHooktuskBattlegrounds:\r\n\t\t\treturn CardIds.TrashForTreasureBattlegrounds;\r\n\t\tcase 'TB_BaconShop_HERO_68':\r\n\t\t\treturn 'TB_BaconShop_HP_076';\r\n\t\tcase 'TB_BaconShop_HERO_70':\r\n\t\t\treturn 'TB_BaconShop_HP_080';\r\n\t\tcase 'TB_BaconShop_HERO_71':\r\n\t\t\treturn 'TB_BaconShop_HP_084';\r\n\t\tcase 'TB_BaconShop_HERO_72':\r\n\t\t\treturn 'TB_BaconShop_HP_081';\r\n\t\tcase 'TB_BaconShop_HERO_74':\r\n\t\t\treturn 'TB_BaconShop_HP_082';\r\n\t\tcase CardIds.ChenvaalaBattlegrounds:\r\n\t\t\treturn CardIds.AvalancheBattlegrounds;\r\n\t\tcase CardIds.RakanishuBattlegrounds:\r\n\t\t\treturn CardIds.TavernLightingBattlegrounds;\r\n\t\tcase CardIds.AlakirBattlegrounds:\r\n\t\t\treturn CardIds.SwattingInsectsBattlegrounds;\r\n\t\tcase CardIds.ZephrysTheGreatBattlegrounds:\r\n\t\t\treturn CardIds.ThreeWishesBattlegrounds;\r\n\t\tcase CardIds.SilasDarkmoonBattlegrounds:\r\n\t\t\treturn CardIds.ComeOneComeAllBattlegrounds;\r\n\t\tcase CardIds.CthunBattlegrounds:\r\n\t\t\treturn CardIds.SaturdayCthunsBattlegrounds;\r\n\t\tcase CardIds.NzothBattlegrounds:\r\n\t\t\treturn CardIds.AvatarOfNzothBattlegrounds;\r\n\t\tcase CardIds.YshaarjBattlegrounds:\r\n\t\t\treturn CardIds.EmbraceYourRageBattlegrounds;\r\n\t\tcase CardIds.TickatusBattlegrounds:\r\n\t\t\treturn CardIds.PrizeWallBattlegrounds;\r\n\t\tcase CardIds.GreyboughBattlegrounds:\r\n\t\t\treturn CardIds.SproutItOutBattlegrounds;\r\n\t\tcase CardIds.OverlordSaurfang_BG20_HERO_102:\r\n\t\t\treturn CardIds.OverlordSaurfang_ForTheHorde;\r\n\t\tcase CardIds.DeathSpeakerBlackthorn_BG20_HERO_103:\r\n\t\t\treturn CardIds.DeathSpeakerBlackthorn_Bloodbound;\r\n\t\tcase CardIds.Voljin_BG20_HERO_201:\r\n\t\t\treturn CardIds.Voljin_SpiritSwap_BG20_HERO_201p;\r\n\t\tcase CardIds.Xyrella_BG20_HERO_101:\r\n\t\t\treturn CardIds.Xyrella_SeeTheLight;\r\n\t\tcase CardIds.MutanusTheDevourer_BG20_HERO_301:\r\n\t\t\treturn CardIds.MutanusTheDevourer_Devour;\r\n\t\tcase CardIds.GuffRunetotem_BG20_HERO_242:\r\n\t\t\treturn CardIds.GuffRunetotem_NaturalBalance;\r\n\t\tcase CardIds.KurtrusAshfallen_BG20_HERO_280:\r\n\t\t\treturn CardIds.KurtrusAshfallen_FinalShowdown;\r\n\t\tcase CardIds.Galewing:\r\n\t\t\treturn CardIds.Galewing_DungarsGryphon;\r\n\t\tcase CardIds.TradePrinceGallywixBattlegrounds:\r\n\t\t\treturn CardIds.SmartSavingsBattlegrounds;\r\n\t\tcase CardIds.MasterNguyen:\r\n\t\t\treturn CardIds.MasterNguyen_PowerOfTheStorm;\r\n\t\tcase CardIds.CarielRoame_BG21_HERO_000:\r\n\t\t\treturn CardIds.CarielRoame_ConvictionRank1;\r\n\t\tcase CardIds.Diablo:\r\n\t\t\treturn CardIds.Diablo_RealmOfTerror;\r\n\t\tcase CardIds.Sneed_BG21_HERO_030:\r\n\t\t\treturn CardIds.Sneed_SneedsReplicator;\r\n\t\tcase CardIds.CookieTheCook_BG21_HERO_020:\r\n\t\t\treturn CardIds.CookieTheCook_StirThePot;\r\n\t\tcase CardIds.TamsinRoame_BG20_HERO_282:\r\n\t\t\treturn CardIds.TamsinRoame_FragrantPhylactery;\r\n\t\tcase CardIds.ScabbsCutterbutter_BG21_HERO_010:\r\n\t\t\treturn CardIds.ScabbsCutterbutter_ISpy;\r\n\t\tcase CardIds.Brukan_BG22_HERO_001:\r\n\t\t\treturn CardIds.Brukan_EmbraceTheElements;\r\n\t\tcase CardIds.Drekthar_BG22_HERO_002:\r\n\t\t\treturn CardIds.Drekthar_LeadTheFrostwolves;\r\n\t\tcase CardIds.VanndarStormpike_BG22_HERO_003:\r\n\t\t\treturn CardIds.VanndarStormpike_LeadTheStormpikes;\r\n\t\tcase CardIds.TavishStormpike_BG22_HERO_000:\r\n\t\t\treturn CardIds.TavishStormpike_Deadeye;\r\n\t\tcase CardIds.VardenDawngrasp_BG22_HERO_004:\r\n\t\t\treturn CardIds.VardenDawngrasp_TwiceAsNice;\r\n\t\tcase CardIds.Rokara_BG20_HERO_100:\r\n\t\t\treturn CardIds.Rokara_GloryOfCombat;\r\n\t\tcase CardIds.Onyxia_BG22_HERO_305:\r\n\t\t\treturn CardIds.Onyxia_Broodmother;\r\n\t\tcase CardIds.AmbassadorFaelin_BG22_HERO_201:\r\n\t\t\treturn CardIds.AmbassadorFaelin_ExpeditionPlans;\r\n\t\tcase CardIds.IniStormcoil_BG22_HERO_200:\r\n\t\t\treturn CardIds.IniStormcoil_Mechgyver;\r\n\t\tcase CardIds.QueenAzshara_BG22_HERO_007:\r\n\t\t\treturn CardIds.QueenAzshara_AzsharasAmbition;\r\n\t\tcase CardIds.QueenAzshara_NagaQueenAzsharaToken:\r\n\t\t\treturn CardIds.QueenAzshara_NagaConquest;\r\n\t\tcase CardIds.Ozumat_BG23_HERO_201:\r\n\t\t\treturn CardIds.Ozumat_Tentacular;\r\n\t\tcase CardIds.LadyVashj_BG23_HERO_304:\r\n\t\t\treturn CardIds.LadyVashj_RelicsOfTheDeep;\r\n\t\tcase CardIds.HeistbaronTogwaggle_BG23_HERO_305:\r\n\t\t\treturn CardIds.HeistbaronTogwaggle_ThePerfectCrime;\r\n\t\tcase CardIds.MurlocHolmes_BG23_HERO_303:\r\n\t\t\treturn CardIds.MurlocHolmes_DetectiveForHire;\r\n\t\tcase CardIds.SireDenathrius_BG24_HERO_100:\r\n\t\t\treturn CardIds.SireDenathrius_Whodunitquestion;\r\n\t\tcase CardIds.SylvanasWindrunner_BG23_HERO_306:\r\n\t\t\treturn CardIds.SylvanasWindrunner_ReclaimedSouls;\r\n\t\tcase CardIds.TheJailerBattlegrounds:\r\n\t\t\treturn CardIds.RunicEmpowermentBattlegrounds;\r\n\t\tcase CardIds.EnhanceOMechano_BG24_HERO_204:\r\n\t\t\treturn CardIds.EnhanceOMechano_Enhancification;\r\n\t\tcase CardIds.ProfessorPutricide_BG25_HERO_100:\r\n\t\t\treturn CardIds.ProfessorPutricide_BuildAnUndead;\r\n\t\tcase CardIds.TeronGorefiend_BG25_HERO_103:\r\n\t\t\treturn CardIds.TeronGorefiend_RapidReanimation;\r\n\t\tcase CardIds.ETCBandManager_BG25_HERO_105:\r\n\t\t\treturn CardIds.ETCBandManager_SignANewArtist;\r\n\r\n\t\tcase '':\r\n\t\t\treturn null; // new heroes\r\n\t}\r\n};\r\n"]}
|