arkham-investigator-data 2.0.6 → 2.0.8

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.
@@ -0,0 +1,2 @@
1
+ export * from "./mapLinkedCode";
2
+ export * from "./keepLastTabooSignature";
@@ -0,0 +1,2 @@
1
+ import { ArkhamCardsInvestigator } from "../arkhamCards.types";
2
+ export declare const keepLastTabooSignature: (data: ArkhamCardsInvestigator[]) => ArkhamCardsInvestigator[];
@@ -1,4 +1,4 @@
1
- import { ArkhamCardsInvestigator } from "./arkhamCards.types";
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("../../model").InvestigatorFaction;
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("./arkhamCards.types").ArkhamCardsInvestigatorTranslation[];
22
- taboo_set: import("./arkhamCards.types").ArkhamCardsTabooSet | null;
23
- pack: import("./arkhamCards.types").ArkhamCardsPack;
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,5 +1,7 @@
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;
4
6
  type: "default";
5
7
  code: string;
@@ -15,14 +17,16 @@ export declare const getSignatureBase: (card: ArkhamCardsInvestigator) => {
15
17
  health: number;
16
18
  sanity: number;
17
19
  alternate_of_code: string | null;
18
- linked_code: string | null;
19
20
  faction_code: import("../../model").InvestigatorFaction;
21
+ linked_code: string | null;
22
+ taboo_set: import("../../api/arkhamCards").ArkhamCardsTabooSet | null;
20
23
  skill_agility: number;
21
24
  skill_combat: number;
22
25
  skill_intellect: number;
23
26
  skill_willpower: number;
24
- taboo_set: import("../../api/arkhamCards").ArkhamCardsTabooSet | null;
25
27
  } | {
28
+ taboo: boolean;
29
+ canonical: boolean;
26
30
  official: boolean;
27
31
  image: import("../../model").InvestigatorImage;
28
32
  code: string;
@@ -30,20 +34,21 @@ export declare const getSignatureBase: (card: ArkhamCardsInvestigator) => {
30
34
  name: string;
31
35
  additionalAction?: boolean;
32
36
  abilities?: import("../../model").InvestigatorAbility[];
33
- taboo?: boolean;
34
37
  id: string;
35
38
  health: number;
36
39
  sanity: number;
37
40
  alternate_of_code: string | null;
38
- linked_code: string | null;
39
41
  faction_code: import("../../model").InvestigatorFaction;
42
+ linked_code: string | null;
43
+ taboo_set: import("../../api/arkhamCards").ArkhamCardsTabooSet | null;
40
44
  skill_agility: number;
41
45
  skill_combat: number;
42
46
  skill_intellect: number;
43
47
  skill_willpower: number;
44
- taboo_set: import("../../api/arkhamCards").ArkhamCardsTabooSet | null;
45
48
  spoiler: boolean;
46
49
  } | {
50
+ taboo: boolean;
51
+ canonical: boolean;
47
52
  official: boolean;
48
53
  image: import("../../model").InvestigatorImage;
49
54
  code: string;
@@ -51,20 +56,21 @@ export declare const getSignatureBase: (card: ArkhamCardsInvestigator) => {
51
56
  name: string;
52
57
  additionalAction?: boolean;
53
58
  abilities?: import("../../model").InvestigatorAbility[];
54
- taboo?: boolean;
55
59
  id: string;
56
60
  health: number;
57
61
  sanity: number;
58
62
  alternate_of_code: string | null;
59
- linked_code: string | null;
60
63
  faction_code: import("../../model").InvestigatorFaction;
64
+ linked_code: string | null;
65
+ taboo_set: import("../../api/arkhamCards").ArkhamCardsTabooSet | null;
61
66
  skill_agility: number;
62
67
  skill_combat: number;
63
68
  skill_intellect: number;
64
69
  skill_willpower: number;
65
- taboo_set: import("../../api/arkhamCards").ArkhamCardsTabooSet | null;
66
70
  spoiler: boolean;
67
71
  } | {
72
+ taboo: boolean;
73
+ canonical: boolean;
68
74
  official: boolean;
69
75
  image: import("../../model").InvestigatorImage;
70
76
  type: "custom";
@@ -72,17 +78,38 @@ export declare const getSignatureBase: (card: ArkhamCardsInvestigator) => {
72
78
  name: string;
73
79
  additionalAction?: boolean;
74
80
  abilities?: import("../../model").InvestigatorAbility[];
75
- taboo?: boolean;
76
81
  id: string;
77
82
  health: number;
78
83
  sanity: number;
79
84
  alternate_of_code: string | null;
80
- linked_code: string | null;
81
85
  faction_code: import("../../model").InvestigatorFaction;
86
+ linked_code: string | null;
87
+ taboo_set: import("../../api/arkhamCards").ArkhamCardsTabooSet | null;
82
88
  skill_agility: number;
83
89
  skill_combat: number;
84
90
  skill_intellect: number;
85
91
  skill_willpower: number;
92
+ spoiler: boolean;
93
+ } | {
94
+ taboo: boolean;
95
+ canonical: boolean;
96
+ official: boolean;
97
+ image: import("../../model").InvestigatorImage;
98
+ type: "taboo";
99
+ code: string;
100
+ name: string;
101
+ additionalAction?: boolean;
102
+ abilities?: import("../../model").InvestigatorAbility[];
103
+ id: string;
104
+ health: number;
105
+ sanity: number;
106
+ alternate_of_code: string | null;
107
+ faction_code: import("../../model").InvestigatorFaction;
108
+ linked_code: string | null;
86
109
  taboo_set: import("../../api/arkhamCards").ArkhamCardsTabooSet | null;
110
+ skill_agility: number;
111
+ skill_combat: number;
112
+ skill_intellect: number;
113
+ skill_willpower: number;
87
114
  spoiler: boolean;
88
115
  };
@@ -17,7 +17,6 @@ export declare const getCardSpecial: (card: ArkhamCardsInvestigator) => {
17
17
  name: string;
18
18
  additionalAction?: boolean;
19
19
  abilities?: import("../../../model").InvestigatorAbility[];
20
- taboo?: boolean;
21
20
  } | {
22
21
  image: import("../../../model").InvestigatorImage;
23
22
  code: string;
@@ -25,7 +24,6 @@ export declare const getCardSpecial: (card: ArkhamCardsInvestigator) => {
25
24
  name: string;
26
25
  additionalAction?: boolean;
27
26
  abilities?: import("../../../model").InvestigatorAbility[];
28
- taboo?: boolean;
29
27
  } | {
30
28
  image: import("../../../model").InvestigatorImage;
31
29
  type: "custom";
@@ -33,5 +31,11 @@ export declare const getCardSpecial: (card: ArkhamCardsInvestigator) => {
33
31
  name: string;
34
32
  additionalAction?: boolean;
35
33
  abilities?: import("../../../model").InvestigatorAbility[];
36
- taboo?: boolean;
34
+ } | {
35
+ image: import("../../../model").InvestigatorImage;
36
+ type: "taboo";
37
+ code: string;
38
+ name: string;
39
+ additionalAction?: boolean;
40
+ abilities?: import("../../../model").InvestigatorAbility[];
37
41
  };
@@ -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;
@@ -2,6 +2,7 @@ import type { ArkhamCardsInvestigator } from "../../api/arkhamCards";
2
2
  import type { Investigator, InvestigatorFaction } from "./common";
3
3
  import type { InvestigatorSkin } from "./options";
4
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"> & {
5
+ icon: string;
5
6
  type: InvestigatorSignatureType;
6
7
  locale: string;
7
8
  text: string;
@@ -9,13 +10,15 @@ export type InvestigatorSignature = Omit<ArkhamCardsInvestigator, "real_name" |
9
10
  subname: string;
10
11
  flavor: string;
11
12
  traits: string;
13
+ taboo: boolean;
12
14
  taboo_original_text: string | null;
13
15
  taboo_text_change: string | null;
14
16
  official: boolean;
17
+ canonical: boolean;
15
18
  pack: InvestigatorSignaturePack;
16
19
  cycle: InvestigatorSignatureCycle;
17
20
  };
18
- export type InvestigatorSignatureType = "default" | "custom" | "parallel" | "book";
21
+ export type InvestigatorSignatureType = "default" | "custom" | "parallel" | "book" | "taboo";
19
22
  export type InvestigatorSignaturePack = {
20
23
  locale: string;
21
24
  code: string;
@@ -39,6 +42,7 @@ export type InvestigatorSignatureGroup = {
39
42
  signatures: InvestigatorSignature[];
40
43
  skins: InvestigatorSkin[];
41
44
  official: boolean;
45
+ canonical: boolean;
42
46
  spoiler: boolean;
43
47
  faction_code: InvestigatorFaction;
44
48
  multiselect: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arkham-investigator-data",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
4
4
  "main": "index.js",
5
5
  "types": "build/src/types.d.ts",
6
6
  "scripts": {