@dchighs/dc-core 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calculators/calculate-breeding-results.d.ts +60 -0
- package/dist/calculators/calculate-breeding-results.js +84 -0
- package/dist/calculators/calculate-element-resistances.d.ts +2 -0
- package/dist/calculators/calculate-element-resistances.js +12 -0
- package/dist/calculators/calculate-element-strengths.d.ts +2 -1
- package/dist/calculators/calculate-element-weaknesses.d.ts +2 -1
- package/dist/calculators/calculate-element-weaknesses.js +7 -4
- package/dist/calculators/index.d.ts +4 -1
- package/dist/calculators/index.js +20 -1
- package/dist/tools/dragon-static-file-url-parser.d.ts +38 -0
- package/dist/tools/dragon-static-file-url-parser.js +96 -0
- package/dist/tools/index.d.ts +2 -1
- package/dist/tools/index.js +3 -1
- package/package.json +2 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export type CalculateBreedingResultsParentConfig = {
|
|
2
|
+
id: number;
|
|
3
|
+
elements: string[];
|
|
4
|
+
level: number;
|
|
5
|
+
empowerLevel?: number;
|
|
6
|
+
};
|
|
7
|
+
export type CalculateBreedingResultsConfigOptions = {
|
|
8
|
+
breeding: Array<{
|
|
9
|
+
element_one: string;
|
|
10
|
+
element_two: string;
|
|
11
|
+
dragon_id_1: number;
|
|
12
|
+
empower_1: number;
|
|
13
|
+
dragon_id_2: number;
|
|
14
|
+
empower_2: number;
|
|
15
|
+
dragon_id_3: number;
|
|
16
|
+
empower_3: number;
|
|
17
|
+
dragon_id_4?: number;
|
|
18
|
+
empower_4?: number;
|
|
19
|
+
dragon_id_5?: number;
|
|
20
|
+
empower_5?: number;
|
|
21
|
+
dragon_id_6?: number;
|
|
22
|
+
empower_6?: number;
|
|
23
|
+
dragon_id_7?: number;
|
|
24
|
+
empower_7?: number;
|
|
25
|
+
}>;
|
|
26
|
+
incompatibilities?: Array<{
|
|
27
|
+
element_one: string;
|
|
28
|
+
element_two: string;
|
|
29
|
+
}>;
|
|
30
|
+
soulmates?: Array<{
|
|
31
|
+
parent_1_id: number;
|
|
32
|
+
parent_2_id: number;
|
|
33
|
+
dragon_id: number;
|
|
34
|
+
chance: number;
|
|
35
|
+
level_parents: number;
|
|
36
|
+
}>;
|
|
37
|
+
specialBreeding?: Array<{
|
|
38
|
+
condition1: {
|
|
39
|
+
id: number[];
|
|
40
|
+
};
|
|
41
|
+
condition2: {
|
|
42
|
+
id: number[];
|
|
43
|
+
};
|
|
44
|
+
result: number;
|
|
45
|
+
}>;
|
|
46
|
+
sanctuaryUnlockedDragons?: number[];
|
|
47
|
+
};
|
|
48
|
+
export type CalculateBreedingResultsOptions = {
|
|
49
|
+
parent1: CalculateBreedingResultsParentConfig;
|
|
50
|
+
parent2: CalculateBreedingResultsParentConfig;
|
|
51
|
+
config: CalculateBreedingResultsConfigOptions;
|
|
52
|
+
};
|
|
53
|
+
export type BreedingSource = "soulmate" | "special" | "sanctuary" | "regular";
|
|
54
|
+
export type BreedingResultItem = {
|
|
55
|
+
dragonId: number;
|
|
56
|
+
sources: BreedingSource[];
|
|
57
|
+
requiredEmpower?: number;
|
|
58
|
+
chance?: number;
|
|
59
|
+
};
|
|
60
|
+
export declare function calculateBreedingResults({ parent1, parent2, config }: CalculateBreedingResultsOptions): BreedingResultItem[];
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.calculateBreedingResults = calculateBreedingResults;
|
|
4
|
+
function calculateBreedingResults({ parent1, parent2, config }) {
|
|
5
|
+
var _a;
|
|
6
|
+
const resultsMap = new Map();
|
|
7
|
+
function addResult(dragonId, source, empower, chance) {
|
|
8
|
+
if (!dragonId)
|
|
9
|
+
return;
|
|
10
|
+
const existing = resultsMap.get(dragonId);
|
|
11
|
+
if (existing) {
|
|
12
|
+
if (!existing.sources.includes(source)) {
|
|
13
|
+
existing.sources.push(source);
|
|
14
|
+
}
|
|
15
|
+
if (empower !== undefined) {
|
|
16
|
+
existing.requiredEmpower = existing.requiredEmpower !== undefined ? Math.min(existing.requiredEmpower, empower) : empower;
|
|
17
|
+
}
|
|
18
|
+
if (chance !== undefined) {
|
|
19
|
+
existing.chance = Math.max(existing.chance || 0, chance);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
resultsMap.set(dragonId, {
|
|
24
|
+
dragonId,
|
|
25
|
+
sources: [source],
|
|
26
|
+
requiredEmpower: empower,
|
|
27
|
+
chance
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
if (config.specialBreeding) {
|
|
32
|
+
for (const special of config.specialBreeding) {
|
|
33
|
+
const matchesP1Cond1 = special.condition1.id.includes(parent1.id);
|
|
34
|
+
const matchesP2Cond2 = special.condition2.id.includes(parent2.id);
|
|
35
|
+
const matchesP1Cond2 = special.condition2.id.includes(parent1.id);
|
|
36
|
+
const matchesP2Cond1 = special.condition1.id.includes(parent2.id);
|
|
37
|
+
if ((matchesP1Cond1 && matchesP2Cond2) || (matchesP1Cond2 && matchesP2Cond1)) {
|
|
38
|
+
addResult(special.result, "special");
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
if (config.soulmates) {
|
|
43
|
+
for (const soulmate of config.soulmates) {
|
|
44
|
+
const matches = (soulmate.parent_1_id === parent1.id && soulmate.parent_2_id === parent2.id) ||
|
|
45
|
+
(soulmate.parent_1_id === parent2.id && soulmate.parent_2_id === parent1.id);
|
|
46
|
+
const levelsMatch = parent1.level >= soulmate.level_parents && parent2.level >= soulmate.level_parents;
|
|
47
|
+
if (matches && levelsMatch) {
|
|
48
|
+
addResult(soulmate.dragon_id, "soulmate", undefined, soulmate.chance);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
const incompatibilities = config.incompatibilities || [];
|
|
53
|
+
const isIncompatible = (e1, e2) => {
|
|
54
|
+
return incompatibilities.some(inc => (inc.element_one === e1 && inc.element_two === e2) ||
|
|
55
|
+
(inc.element_one === e2 && inc.element_two === e1));
|
|
56
|
+
};
|
|
57
|
+
for (const e1 of parent1.elements) {
|
|
58
|
+
for (const e2 of parent2.elements) {
|
|
59
|
+
if (isIncompatible(e1, e2)) {
|
|
60
|
+
continue;
|
|
61
|
+
}
|
|
62
|
+
const breedingRule = config.breeding.find(b => (b.element_one === e1 && b.element_two === e2) ||
|
|
63
|
+
(b.element_one === e2 && b.element_two === e1));
|
|
64
|
+
if (breedingRule) {
|
|
65
|
+
const pairs = [
|
|
66
|
+
{ id: breedingRule.dragon_id_1, emp: breedingRule.empower_1 },
|
|
67
|
+
{ id: breedingRule.dragon_id_2, emp: breedingRule.empower_2 },
|
|
68
|
+
{ id: breedingRule.dragon_id_3, emp: breedingRule.empower_3 },
|
|
69
|
+
{ id: breedingRule.dragon_id_4, emp: breedingRule.empower_4 },
|
|
70
|
+
{ id: breedingRule.dragon_id_5, emp: breedingRule.empower_5 },
|
|
71
|
+
{ id: breedingRule.dragon_id_6, emp: breedingRule.empower_6 },
|
|
72
|
+
{ id: breedingRule.dragon_id_7, emp: breedingRule.empower_7 },
|
|
73
|
+
];
|
|
74
|
+
for (const pair of pairs) {
|
|
75
|
+
if (pair.id) {
|
|
76
|
+
const isSanctuary = (_a = config.sanctuaryUnlockedDragons) === null || _a === void 0 ? void 0 : _a.includes(pair.id);
|
|
77
|
+
addResult(pair.id, isSanctuary ? "sanctuary" : "regular", pair.emp || 0);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return Array.from(resultsMap.values());
|
|
84
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.calculateElementResistances = calculateElementResistances;
|
|
4
|
+
const validate_element_name_1 = require("../tools/validate-element-name");
|
|
5
|
+
const elements_1 = require("../settings/elements");
|
|
6
|
+
function calculateElementResistances(element) {
|
|
7
|
+
(0, validate_element_name_1.validateElementName)(element, { throwOnError: true });
|
|
8
|
+
const elementKey = element;
|
|
9
|
+
const elementSetting = elements_1.elementSettings[elementKey];
|
|
10
|
+
const elementWeaknesses = elementSetting.weaknesses;
|
|
11
|
+
return elementWeaknesses;
|
|
12
|
+
}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { DragonElement } from "../enums";
|
|
2
|
+
export declare function calculateElementStrengths(element: string): DragonElement[];
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { DragonElement } from "../enums";
|
|
2
|
+
export declare function calculateElementWeaknesses(element: string): DragonElement[];
|
|
@@ -5,8 +5,11 @@ const validate_element_name_1 = require("../tools/validate-element-name");
|
|
|
5
5
|
const elements_1 = require("../settings/elements");
|
|
6
6
|
function calculateElementWeaknesses(element) {
|
|
7
7
|
(0, validate_element_name_1.validateElementName)(element, { throwOnError: true });
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
const weaknesses = [];
|
|
9
|
+
for (const key in elements_1.elementSettings) {
|
|
10
|
+
if (elements_1.elementSettings[key].strengths.includes(element)) {
|
|
11
|
+
weaknesses.push(key);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return weaknesses;
|
|
12
15
|
}
|
|
@@ -4,4 +4,7 @@ import { calculateElementStrengths } from "./calculate-element-strengths";
|
|
|
4
4
|
import { calculateDragonFeedCost } from "./calculate-dragon-feed-cost";
|
|
5
5
|
import { calculateOrbRecallGain } from "./calculate-orb-recall-gain";
|
|
6
6
|
import { calculateAttackDamage } from "./calculate-attack-damage";
|
|
7
|
-
|
|
7
|
+
import { calculateBreedingResults } from "./calculate-breeding-results";
|
|
8
|
+
export * from "./calculate-breeding-results";
|
|
9
|
+
import { calculateElementResistances } from "./calculate-element-resistances";
|
|
10
|
+
export { calculateElementResistances, calculateOrbRecallGain, calculateAttackDamage, calculateDragonFeedCost, calculateElementsStrengths, calculateElementWeaknesses, calculateElementStrengths, calculateBreedingResults };
|
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.calculateElementStrengths = exports.calculateElementWeaknesses = exports.calculateElementsStrengths = exports.calculateDragonFeedCost = exports.calculateAttackDamage = exports.calculateOrbRecallGain = void 0;
|
|
17
|
+
exports.calculateBreedingResults = exports.calculateElementStrengths = exports.calculateElementWeaknesses = exports.calculateElementsStrengths = exports.calculateDragonFeedCost = exports.calculateAttackDamage = exports.calculateOrbRecallGain = exports.calculateElementResistances = void 0;
|
|
4
18
|
const calculate_elements_strengths_1 = require("./calculate-elements-strengths");
|
|
5
19
|
Object.defineProperty(exports, "calculateElementsStrengths", { enumerable: true, get: function () { return calculate_elements_strengths_1.calculateElementsStrengths; } });
|
|
6
20
|
const calculate_element_weaknesses_1 = require("./calculate-element-weaknesses");
|
|
@@ -13,3 +27,8 @@ const calculate_orb_recall_gain_1 = require("./calculate-orb-recall-gain");
|
|
|
13
27
|
Object.defineProperty(exports, "calculateOrbRecallGain", { enumerable: true, get: function () { return calculate_orb_recall_gain_1.calculateOrbRecallGain; } });
|
|
14
28
|
const calculate_attack_damage_1 = require("./calculate-attack-damage");
|
|
15
29
|
Object.defineProperty(exports, "calculateAttackDamage", { enumerable: true, get: function () { return calculate_attack_damage_1.calculateAttackDamage; } });
|
|
30
|
+
const calculate_breeding_results_1 = require("./calculate-breeding-results");
|
|
31
|
+
Object.defineProperty(exports, "calculateBreedingResults", { enumerable: true, get: function () { return calculate_breeding_results_1.calculateBreedingResults; } });
|
|
32
|
+
__exportStar(require("./calculate-breeding-results"), exports);
|
|
33
|
+
const calculate_element_resistances_1 = require("./calculate-element-resistances");
|
|
34
|
+
Object.defineProperty(exports, "calculateElementResistances", { enumerable: true, get: function () { return calculate_element_resistances_1.calculateElementResistances; } });
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { DragonPhase, DragonSpriteQuality, StaticFileUrlPlatformPrefix } from "../enums";
|
|
2
|
+
export declare class DragonStaticFileUrlParser {
|
|
3
|
+
static getPlatformPrefix(url: string): StaticFileUrlPlatformPrefix | null;
|
|
4
|
+
static getImageName(url: string): string | null;
|
|
5
|
+
static getId(url: string): number | null;
|
|
6
|
+
static getPhase(url: string): DragonPhase | null;
|
|
7
|
+
static getSkin(url: string): string | null;
|
|
8
|
+
static getImageQuality(url: string): DragonSpriteQuality;
|
|
9
|
+
static parseFromSprite(url: string): {
|
|
10
|
+
platformPrefix: StaticFileUrlPlatformPrefix | null;
|
|
11
|
+
id: number | null;
|
|
12
|
+
imageName: string | null;
|
|
13
|
+
phase: DragonPhase | null;
|
|
14
|
+
skin: string | null;
|
|
15
|
+
imageQuality: DragonSpriteQuality;
|
|
16
|
+
};
|
|
17
|
+
static parseFromThumbnail(url: string): {
|
|
18
|
+
platformPrefix: StaticFileUrlPlatformPrefix | null;
|
|
19
|
+
id: number | null;
|
|
20
|
+
image_name: string | null;
|
|
21
|
+
phase: DragonPhase | null;
|
|
22
|
+
skin: string | null;
|
|
23
|
+
};
|
|
24
|
+
static parseFromFlashAnimation(url: string): {
|
|
25
|
+
platformPrefix: StaticFileUrlPlatformPrefix | null;
|
|
26
|
+
id: number | null;
|
|
27
|
+
imageName: string | null;
|
|
28
|
+
phase: DragonPhase | null;
|
|
29
|
+
skin: string | null;
|
|
30
|
+
};
|
|
31
|
+
static parseFromSpineAnimation(url: string): {
|
|
32
|
+
platformPrefix: StaticFileUrlPlatformPrefix | null;
|
|
33
|
+
id: number | null;
|
|
34
|
+
imageName: string | null;
|
|
35
|
+
phase: DragonPhase | null;
|
|
36
|
+
skin: string | null;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DragonStaticFileUrlParser = void 0;
|
|
4
|
+
const enums_1 = require("../enums");
|
|
5
|
+
class DragonStaticFileUrlParser {
|
|
6
|
+
static getPlatformPrefix(url) {
|
|
7
|
+
const match = url.match(/https?:\/\/([a-z]+)-static/i);
|
|
8
|
+
if (!match) {
|
|
9
|
+
return null;
|
|
10
|
+
}
|
|
11
|
+
const prefix = match[1];
|
|
12
|
+
return prefix;
|
|
13
|
+
}
|
|
14
|
+
static getImageName(url) {
|
|
15
|
+
const match = url.match(/\/(basic_|thumb_|ui_)?(\d+)_([\w_]+)/);
|
|
16
|
+
if (match) {
|
|
17
|
+
const id = match[2];
|
|
18
|
+
const imageNameWithoutId = match[3];
|
|
19
|
+
const rawImageName = `${id}_${imageNameWithoutId}`;
|
|
20
|
+
let imageNameWithSkin = rawImageName.replace(/_\d+/, "");
|
|
21
|
+
let imageNameWithoutSkin = imageNameWithSkin.replace(/_skin\d+/, "");
|
|
22
|
+
return imageNameWithoutSkin;
|
|
23
|
+
}
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
static getId(url) {
|
|
27
|
+
const match = url.match(/\/(basic_|thumb_|ui_)?(\d+)_/);
|
|
28
|
+
if (match) {
|
|
29
|
+
return Number(match[2]);
|
|
30
|
+
}
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
static getPhase(url) {
|
|
34
|
+
const match = url.match(/(\d+)@2x\.(png|swf)|(\d+)\.(png|swf)|(\d+)_HD_tweened_dxt5\.zip|(\d+)_HD_spine-3-8-59_dxt5\.zip/);
|
|
35
|
+
if (match) {
|
|
36
|
+
const phase = match[1] ||
|
|
37
|
+
match[3] ||
|
|
38
|
+
match[5] ||
|
|
39
|
+
match[6];
|
|
40
|
+
return phase ? Number(phase) : null;
|
|
41
|
+
}
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
static getSkin(url) {
|
|
45
|
+
const match = url.match(/_skin\d+/);
|
|
46
|
+
if (match) {
|
|
47
|
+
return match[0];
|
|
48
|
+
}
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
static getImageQuality(url) {
|
|
52
|
+
const match = url.match(/@\d+x/);
|
|
53
|
+
if (match) {
|
|
54
|
+
return match[0];
|
|
55
|
+
}
|
|
56
|
+
return enums_1.DragonSpriteQuality.Default;
|
|
57
|
+
}
|
|
58
|
+
static parseFromSprite(url) {
|
|
59
|
+
return {
|
|
60
|
+
platformPrefix: this.getPlatformPrefix(url),
|
|
61
|
+
id: this.getId(url),
|
|
62
|
+
imageName: this.getImageName(url),
|
|
63
|
+
phase: this.getPhase(url),
|
|
64
|
+
skin: this.getSkin(url),
|
|
65
|
+
imageQuality: this.getImageQuality(url),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
static parseFromThumbnail(url) {
|
|
69
|
+
return {
|
|
70
|
+
platformPrefix: this.getPlatformPrefix(url),
|
|
71
|
+
id: this.getId(url),
|
|
72
|
+
image_name: this.getImageName(url),
|
|
73
|
+
phase: this.getPhase(url),
|
|
74
|
+
skin: this.getSkin(url),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
static parseFromFlashAnimation(url) {
|
|
78
|
+
return {
|
|
79
|
+
platformPrefix: this.getPlatformPrefix(url),
|
|
80
|
+
id: this.getId(url),
|
|
81
|
+
imageName: this.getImageName(url),
|
|
82
|
+
phase: this.getPhase(url),
|
|
83
|
+
skin: this.getSkin(url),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
static parseFromSpineAnimation(url) {
|
|
87
|
+
return {
|
|
88
|
+
platformPrefix: this.getPlatformPrefix(url),
|
|
89
|
+
id: this.getId(url),
|
|
90
|
+
imageName: this.getImageName(url),
|
|
91
|
+
phase: this.getPhase(url),
|
|
92
|
+
skin: this.getSkin(url),
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
exports.DragonStaticFileUrlParser = DragonStaticFileUrlParser;
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -6,4 +6,5 @@ import { validateDragonStars } from "./validate-dragon-stars";
|
|
|
6
6
|
import { validateElementName } from "./validate-element-name";
|
|
7
7
|
import { validateDragonLevel } from "./validate-dragon-level";
|
|
8
8
|
import { validateDragonRank } from "./validate-dragon-rank";
|
|
9
|
-
|
|
9
|
+
import { DragonStaticFileUrlParser } from "./dragon-static-file-url-parser";
|
|
10
|
+
export { validateDragonLevelCompatibilityWithStars, validateDragonCategory, getMusicKeyNameFromTag, validateDragonRarity, validateDragonStars, validateElementName, validateDragonLevel, validateDragonRank, DragonStaticFileUrlParser, };
|
package/dist/tools/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateDragonRank = exports.validateDragonLevel = exports.validateElementName = exports.validateDragonStars = exports.validateDragonRarity = exports.getMusicKeyNameFromTag = exports.validateDragonCategory = exports.validateDragonLevelCompatibilityWithStars = void 0;
|
|
3
|
+
exports.DragonStaticFileUrlParser = exports.validateDragonRank = exports.validateDragonLevel = exports.validateElementName = exports.validateDragonStars = exports.validateDragonRarity = exports.getMusicKeyNameFromTag = exports.validateDragonCategory = exports.validateDragonLevelCompatibilityWithStars = void 0;
|
|
4
4
|
const validate_dragon_level_compatibility_with_stars_1 = require("./validate-dragon-level-compatibility-with-stars");
|
|
5
5
|
Object.defineProperty(exports, "validateDragonLevelCompatibilityWithStars", { enumerable: true, get: function () { return validate_dragon_level_compatibility_with_stars_1.validateDragonLevelCompatibilityWithStars; } });
|
|
6
6
|
const validate_dragon_category_1 = require("./validate-dragon-category");
|
|
@@ -17,3 +17,5 @@ const validate_dragon_level_1 = require("./validate-dragon-level");
|
|
|
17
17
|
Object.defineProperty(exports, "validateDragonLevel", { enumerable: true, get: function () { return validate_dragon_level_1.validateDragonLevel; } });
|
|
18
18
|
const validate_dragon_rank_1 = require("./validate-dragon-rank");
|
|
19
19
|
Object.defineProperty(exports, "validateDragonRank", { enumerable: true, get: function () { return validate_dragon_rank_1.validateDragonRank; } });
|
|
20
|
+
const dragon_static_file_url_parser_1 = require("./dragon-static-file-url-parser");
|
|
21
|
+
Object.defineProperty(exports, "DragonStaticFileUrlParser", { enumerable: true, get: function () { return dragon_static_file_url_parser_1.DragonStaticFileUrlParser; } });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dchighs/dc-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "A library focused on simulating some of the logic of the game Dragon City.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
13
|
"test": "jest",
|
|
14
|
+
"test:coverage": "jest --coverage",
|
|
14
15
|
"build": "tsc"
|
|
15
16
|
},
|
|
16
17
|
"keywords": [
|