arkham-investigator-data 2.0.6 → 2.0.10
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/build/src/api/arkhamCards/format/index.d.ts +2 -0
- package/build/src/api/arkhamCards/format/keepLastTabooSignature.d.ts +2 -0
- package/build/src/api/arkhamCards/{mapLinkedCode.d.ts → format/mapLinkedCode.d.ts} +6 -6
- package/build/src/components/signatures/getSignatureBase.d.ts +71 -14
- package/build/src/components/signatures/special/getCardSpecial.d.ts +41 -7
- package/build/src/model/game/options.d.ts +6 -2
- package/build/src/model/game/signature.d.ts +9 -2
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ArkhamCardsInvestigator } from "
|
1
|
+
import type { ArkhamCardsInvestigator } from "../arkhamCards.types";
|
2
2
|
export declare const mapLinkedCode: (card: ArkhamCardsInvestigator, _: number, cards: ArkhamCardsInvestigator[]) => {
|
3
3
|
linked_code: string;
|
4
4
|
id: string;
|
@@ -11,16 +11,16 @@ export declare const mapLinkedCode: (card: ArkhamCardsInvestigator, _: number, c
|
|
11
11
|
real_traits: string;
|
12
12
|
real_taboo_original_text: string | null;
|
13
13
|
real_taboo_text_change: string | null;
|
14
|
-
faction_code: import("
|
14
|
+
faction_code: import("../../../model").InvestigatorFaction;
|
15
15
|
sanity: number;
|
16
16
|
health: number;
|
17
17
|
skill_agility: number;
|
18
18
|
skill_combat: number;
|
19
19
|
skill_intellect: number;
|
20
20
|
skill_willpower: number;
|
21
|
-
translations: import("
|
22
|
-
taboo_set: import("
|
23
|
-
pack: import("
|
21
|
+
translations: import("../arkhamCards.types").ArkhamCardsInvestigatorTranslation[];
|
22
|
+
taboo_set: import("../arkhamCards.types").ArkhamCardsTabooSet | null;
|
23
|
+
pack: import("../arkhamCards.types").ArkhamCardsPack;
|
24
24
|
spoiler: boolean;
|
25
25
|
};
|
26
|
-
export declare const getLinkedCode: ({ alternate_of_code, real_name, code }: ArkhamCardsInvestigator, cards: ArkhamCardsInvestigator[]) => string;
|
26
|
+
export declare const getLinkedCode: ({ alternate_of_code, real_name, code, faction_code }: ArkhamCardsInvestigator, cards: ArkhamCardsInvestigator[]) => string;
|
@@ -1,9 +1,17 @@
|
|
1
1
|
import type { ArkhamCardsInvestigator } from "../../api/arkhamCards";
|
2
2
|
export declare const getSignatureBase: (card: ArkhamCardsInvestigator) => {
|
3
|
+
taboo: boolean;
|
4
|
+
canonical: boolean;
|
3
5
|
official: boolean;
|
6
|
+
image: {
|
7
|
+
id: string;
|
8
|
+
width: number;
|
9
|
+
height: number;
|
10
|
+
face?: import("../../model").InvestigatorImageBox;
|
11
|
+
media?: import("../../model").InvestigatorImageMedia[];
|
12
|
+
};
|
4
13
|
type: "default";
|
5
14
|
code: string;
|
6
|
-
image: import("../../model").InvestigatorImage;
|
7
15
|
spoiler: boolean;
|
8
16
|
previewId?: string;
|
9
17
|
variantName?: string;
|
@@ -15,74 +23,123 @@ export declare const getSignatureBase: (card: ArkhamCardsInvestigator) => {
|
|
15
23
|
health: number;
|
16
24
|
sanity: number;
|
17
25
|
alternate_of_code: string | null;
|
18
|
-
linked_code: string | null;
|
19
26
|
faction_code: import("../../model").InvestigatorFaction;
|
27
|
+
linked_code: string | null;
|
28
|
+
taboo_set: import("../../api/arkhamCards").ArkhamCardsTabooSet | null;
|
20
29
|
skill_agility: number;
|
21
30
|
skill_combat: number;
|
22
31
|
skill_intellect: number;
|
23
32
|
skill_willpower: number;
|
24
|
-
taboo_set: import("../../api/arkhamCards").ArkhamCardsTabooSet | null;
|
25
33
|
} | {
|
34
|
+
taboo: boolean;
|
35
|
+
canonical: boolean;
|
26
36
|
official: boolean;
|
27
|
-
image:
|
37
|
+
image: {
|
38
|
+
id: string;
|
39
|
+
width: number;
|
40
|
+
height: number;
|
41
|
+
face?: import("../../model").InvestigatorImageBox;
|
42
|
+
media?: import("../../model").InvestigatorImageMedia[];
|
43
|
+
};
|
28
44
|
code: string;
|
29
45
|
type: "parallel";
|
30
46
|
name: string;
|
31
47
|
additionalAction?: boolean;
|
32
48
|
abilities?: import("../../model").InvestigatorAbility[];
|
33
|
-
taboo?: boolean;
|
34
49
|
id: string;
|
35
50
|
health: number;
|
36
51
|
sanity: number;
|
37
52
|
alternate_of_code: string | null;
|
38
|
-
linked_code: string | null;
|
39
53
|
faction_code: import("../../model").InvestigatorFaction;
|
54
|
+
linked_code: string | null;
|
55
|
+
taboo_set: import("../../api/arkhamCards").ArkhamCardsTabooSet | null;
|
40
56
|
skill_agility: number;
|
41
57
|
skill_combat: number;
|
42
58
|
skill_intellect: number;
|
43
59
|
skill_willpower: number;
|
44
|
-
taboo_set: import("../../api/arkhamCards").ArkhamCardsTabooSet | null;
|
45
60
|
spoiler: boolean;
|
46
61
|
} | {
|
62
|
+
taboo: boolean;
|
63
|
+
canonical: boolean;
|
47
64
|
official: boolean;
|
48
|
-
image:
|
65
|
+
image: {
|
66
|
+
id: string;
|
67
|
+
width: number;
|
68
|
+
height: number;
|
69
|
+
face?: import("../../model").InvestigatorImageBox;
|
70
|
+
media?: import("../../model").InvestigatorImageMedia[];
|
71
|
+
};
|
49
72
|
code: string;
|
50
73
|
type: "book";
|
51
74
|
name: string;
|
52
75
|
additionalAction?: boolean;
|
53
76
|
abilities?: import("../../model").InvestigatorAbility[];
|
54
|
-
taboo?: boolean;
|
55
77
|
id: string;
|
56
78
|
health: number;
|
57
79
|
sanity: number;
|
58
80
|
alternate_of_code: string | null;
|
59
|
-
linked_code: string | null;
|
60
81
|
faction_code: import("../../model").InvestigatorFaction;
|
82
|
+
linked_code: string | null;
|
83
|
+
taboo_set: import("../../api/arkhamCards").ArkhamCardsTabooSet | null;
|
61
84
|
skill_agility: number;
|
62
85
|
skill_combat: number;
|
63
86
|
skill_intellect: number;
|
64
87
|
skill_willpower: number;
|
65
|
-
taboo_set: import("../../api/arkhamCards").ArkhamCardsTabooSet | null;
|
66
88
|
spoiler: boolean;
|
67
89
|
} | {
|
90
|
+
taboo: boolean;
|
91
|
+
canonical: boolean;
|
68
92
|
official: boolean;
|
69
|
-
image:
|
93
|
+
image: {
|
94
|
+
id: string;
|
95
|
+
width: number;
|
96
|
+
height: number;
|
97
|
+
face?: import("../../model").InvestigatorImageBox;
|
98
|
+
media?: import("../../model").InvestigatorImageMedia[];
|
99
|
+
};
|
70
100
|
type: "custom";
|
71
101
|
code: string;
|
72
102
|
name: string;
|
73
103
|
additionalAction?: boolean;
|
74
104
|
abilities?: import("../../model").InvestigatorAbility[];
|
75
|
-
taboo?: boolean;
|
76
105
|
id: string;
|
77
106
|
health: number;
|
78
107
|
sanity: number;
|
79
108
|
alternate_of_code: string | null;
|
80
|
-
linked_code: string | null;
|
81
109
|
faction_code: import("../../model").InvestigatorFaction;
|
110
|
+
linked_code: string | null;
|
111
|
+
taboo_set: import("../../api/arkhamCards").ArkhamCardsTabooSet | null;
|
82
112
|
skill_agility: number;
|
83
113
|
skill_combat: number;
|
84
114
|
skill_intellect: number;
|
85
115
|
skill_willpower: number;
|
116
|
+
spoiler: boolean;
|
117
|
+
} | {
|
118
|
+
taboo: boolean;
|
119
|
+
canonical: boolean;
|
120
|
+
official: boolean;
|
121
|
+
image: {
|
122
|
+
id: string;
|
123
|
+
width: number;
|
124
|
+
height: number;
|
125
|
+
face?: import("../../model").InvestigatorImageBox;
|
126
|
+
media?: import("../../model").InvestigatorImageMedia[];
|
127
|
+
};
|
128
|
+
type: "taboo";
|
129
|
+
code: string;
|
130
|
+
name: string;
|
131
|
+
additionalAction?: boolean;
|
132
|
+
abilities?: import("../../model").InvestigatorAbility[];
|
133
|
+
id: string;
|
134
|
+
health: number;
|
135
|
+
sanity: number;
|
136
|
+
alternate_of_code: string | null;
|
137
|
+
faction_code: import("../../model").InvestigatorFaction;
|
138
|
+
linked_code: string | null;
|
86
139
|
taboo_set: import("../../api/arkhamCards").ArkhamCardsTabooSet | null;
|
140
|
+
skill_agility: number;
|
141
|
+
skill_combat: number;
|
142
|
+
skill_intellect: number;
|
143
|
+
skill_willpower: number;
|
87
144
|
spoiler: boolean;
|
88
145
|
};
|
@@ -1,8 +1,14 @@
|
|
1
1
|
import type { ArkhamCardsInvestigator } from "../../../api/arkhamCards";
|
2
2
|
export declare const getCardSpecial: (card: ArkhamCardsInvestigator) => {
|
3
|
+
image: {
|
4
|
+
id: string;
|
5
|
+
width: number;
|
6
|
+
height: number;
|
7
|
+
face?: import("../../../model").InvestigatorImageBox;
|
8
|
+
media?: import("../../../model").InvestigatorImageMedia[];
|
9
|
+
};
|
3
10
|
type: "default";
|
4
11
|
code: string;
|
5
|
-
image: import("../../../model").InvestigatorImage;
|
6
12
|
spoiler?: boolean;
|
7
13
|
previewId?: string;
|
8
14
|
variantName?: string;
|
@@ -11,27 +17,55 @@ export declare const getCardSpecial: (card: ArkhamCardsInvestigator) => {
|
|
11
17
|
abilities?: import("../../../model").InvestigatorAbility[];
|
12
18
|
roles?: import("../../../model").InvestigatorFaction[];
|
13
19
|
} | {
|
14
|
-
image:
|
20
|
+
image: {
|
21
|
+
id: string;
|
22
|
+
width: number;
|
23
|
+
height: number;
|
24
|
+
face?: import("../../../model").InvestigatorImageBox;
|
25
|
+
media?: import("../../../model").InvestigatorImageMedia[];
|
26
|
+
};
|
15
27
|
code: string;
|
16
28
|
type: "parallel";
|
17
29
|
name: string;
|
18
30
|
additionalAction?: boolean;
|
19
31
|
abilities?: import("../../../model").InvestigatorAbility[];
|
20
|
-
taboo?: boolean;
|
21
32
|
} | {
|
22
|
-
image:
|
33
|
+
image: {
|
34
|
+
id: string;
|
35
|
+
width: number;
|
36
|
+
height: number;
|
37
|
+
face?: import("../../../model").InvestigatorImageBox;
|
38
|
+
media?: import("../../../model").InvestigatorImageMedia[];
|
39
|
+
};
|
23
40
|
code: string;
|
24
41
|
type: "book";
|
25
42
|
name: string;
|
26
43
|
additionalAction?: boolean;
|
27
44
|
abilities?: import("../../../model").InvestigatorAbility[];
|
28
|
-
taboo?: boolean;
|
29
45
|
} | {
|
30
|
-
image:
|
46
|
+
image: {
|
47
|
+
id: string;
|
48
|
+
width: number;
|
49
|
+
height: number;
|
50
|
+
face?: import("../../../model").InvestigatorImageBox;
|
51
|
+
media?: import("../../../model").InvestigatorImageMedia[];
|
52
|
+
};
|
31
53
|
type: "custom";
|
32
54
|
code: string;
|
33
55
|
name: string;
|
34
56
|
additionalAction?: boolean;
|
35
57
|
abilities?: import("../../../model").InvestigatorAbility[];
|
36
|
-
|
58
|
+
} | {
|
59
|
+
image: {
|
60
|
+
id: string;
|
61
|
+
width: number;
|
62
|
+
height: number;
|
63
|
+
face?: import("../../../model").InvestigatorImageBox;
|
64
|
+
media?: import("../../../model").InvestigatorImageMedia[];
|
65
|
+
};
|
66
|
+
type: "taboo";
|
67
|
+
code: string;
|
68
|
+
name: string;
|
69
|
+
additionalAction?: boolean;
|
70
|
+
abilities?: import("../../../model").InvestigatorAbility[];
|
37
71
|
};
|
@@ -9,9 +9,13 @@ export type InvestigatorVariant = InvestigatorVariantIdentity & {
|
|
9
9
|
name: string;
|
10
10
|
additionalAction?: boolean;
|
11
11
|
abilities?: InvestigatorAbility[];
|
12
|
-
taboo?: boolean;
|
13
12
|
};
|
14
|
-
export type InvestigatorVariantIdentity = InvestigatorVariantWithPack | InvestigatorCustomVariant;
|
13
|
+
export type InvestigatorVariantIdentity = InvestigatorVariantWithPack | InvestigatorCustomVariant | InvestigatorDefaultVariant;
|
14
|
+
export type InvestigatorDefaultVariant = {
|
15
|
+
type: "taboo";
|
16
|
+
code: string;
|
17
|
+
image?: InvestigatorImage;
|
18
|
+
};
|
15
19
|
export type InvestigatorCustomVariant = {
|
16
20
|
type: "custom";
|
17
21
|
code: string;
|
@@ -1,21 +1,27 @@
|
|
1
1
|
import type { ArkhamCardsInvestigator } from "../../api/arkhamCards";
|
2
2
|
import type { Investigator, InvestigatorFaction } from "./common";
|
3
3
|
import type { InvestigatorSkin } from "./options";
|
4
|
-
export type InvestigatorSignature = Omit<ArkhamCardsInvestigator, "real_name" | "real_subname" | "real_text" | "real_flavor" | "real_traits" | "real_taboo_original_text" | "real_taboo_text_change" | "translations" | "pack"> & Omit<Investigator, "variants" | "skins"> & {
|
4
|
+
export type InvestigatorSignature = Omit<ArkhamCardsInvestigator, "real_name" | "real_subname" | "real_text" | "real_flavor" | "real_traits" | "real_taboo_original_text" | "real_taboo_text_change" | "translations" | "pack"> & Omit<Investigator, "variants" | "skins" | "image"> & {
|
5
|
+
icon: string;
|
5
6
|
type: InvestigatorSignatureType;
|
7
|
+
image: Omit<Investigator["image"], "id"> & {
|
8
|
+
id: string;
|
9
|
+
};
|
6
10
|
locale: string;
|
7
11
|
text: string;
|
8
12
|
name: string;
|
9
13
|
subname: string;
|
10
14
|
flavor: string;
|
11
15
|
traits: string;
|
16
|
+
taboo: boolean;
|
12
17
|
taboo_original_text: string | null;
|
13
18
|
taboo_text_change: string | null;
|
14
19
|
official: boolean;
|
20
|
+
canonical: boolean;
|
15
21
|
pack: InvestigatorSignaturePack;
|
16
22
|
cycle: InvestigatorSignatureCycle;
|
17
23
|
};
|
18
|
-
export type InvestigatorSignatureType = "default" | "custom" | "parallel" | "book";
|
24
|
+
export type InvestigatorSignatureType = "default" | "custom" | "parallel" | "book" | "taboo";
|
19
25
|
export type InvestigatorSignaturePack = {
|
20
26
|
locale: string;
|
21
27
|
code: string;
|
@@ -39,6 +45,7 @@ export type InvestigatorSignatureGroup = {
|
|
39
45
|
signatures: InvestigatorSignature[];
|
40
46
|
skins: InvestigatorSkin[];
|
41
47
|
official: boolean;
|
48
|
+
canonical: boolean;
|
42
49
|
spoiler: boolean;
|
43
50
|
faction_code: InvestigatorFaction;
|
44
51
|
multiselect: boolean;
|