arkham-investigator-data 2.5.0 → 2.6.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.
@@ -3,6 +3,7 @@ export declare const mapLinkedCode: (card: ArkhamCardsInvestigator, _: number, c
3
3
  linked_code: string;
4
4
  id: string;
5
5
  alternate_of_code: string | null;
6
+ gender: import("../model").ArkhamCardsInvestigatorGender;
6
7
  code: string;
7
8
  real_text: string;
8
9
  real_name: string;
@@ -1,9 +1,11 @@
1
1
  import type { InvestigatorFaction } from "../../../model";
2
2
  import type { ArkhamCardsFullPack, ArkhamCardsTabooSet } from "./common";
3
+ export type ArkhamCardsInvestigatorGender = "m" | "f" | "nb";
3
4
  export type ArkhamCardsInvestigator = {
4
5
  id: string;
5
6
  alternate_of_code: string | null;
6
7
  linked_code: string | null;
8
+ gender: ArkhamCardsInvestigatorGender;
7
9
  code: string;
8
10
  real_text: string;
9
11
  real_name: string;
@@ -2,6 +2,7 @@ export declare const loadArkhamCardsInvestigators: () => Promise<{
2
2
  linked_code: string;
3
3
  id: string;
4
4
  alternate_of_code: string | null;
5
+ gender: import("../model").ArkhamCardsInvestigatorGender;
5
6
  code: string;
6
7
  real_text: string;
7
8
  real_name: string;
@@ -1,2 +1,2 @@
1
- import { ArkhamCardsRulesItem } from "../model";
1
+ import type { ArkhamCardsRulesItem } from "../model";
2
2
  export declare const loadArkhamCardsRules: (language?: string) => Promise<ArkhamCardsRulesItem[]>;
@@ -1,5 +1,7 @@
1
1
  import type { ArkhamCardsInvestigator } from "../../api/arkhamCards";
2
+ import { InvestigatorSignatureGender } from "../../model";
2
3
  export declare const getSignatureBase: (card: ArkhamCardsInvestigator) => {
4
+ gender: InvestigatorSignatureGender;
3
5
  taboo: boolean;
4
6
  custom: boolean;
5
7
  canonical: boolean;
@@ -14,6 +16,12 @@ export declare const getSignatureBase: (card: ArkhamCardsInvestigator) => {
14
16
  };
15
17
  type: "default";
16
18
  code: string;
19
+ health: number;
20
+ sanity: number;
21
+ skill_agility: number;
22
+ skill_combat: number;
23
+ skill_intellect: number;
24
+ skill_willpower: number;
17
25
  spoiler: boolean;
18
26
  previewId?: string;
19
27
  variantName?: string;
@@ -22,17 +30,12 @@ export declare const getSignatureBase: (card: ArkhamCardsInvestigator) => {
22
30
  abilities?: import("../../model").InvestigatorAbility[];
23
31
  roles?: import("../../model").InvestigatorFaction[];
24
32
  id: string;
25
- health: number;
26
- sanity: number;
27
33
  alternate_of_code: string | null;
28
34
  faction_code: import("../../model").InvestigatorFaction;
29
35
  linked_code: string | null;
30
36
  taboo_set: import("../../api/arkhamCards").ArkhamCardsTabooSet | null;
31
- skill_agility: number;
32
- skill_combat: number;
33
- skill_intellect: number;
34
- skill_willpower: number;
35
37
  } | {
38
+ gender: InvestigatorSignatureGender;
36
39
  taboo: boolean;
37
40
  custom: boolean;
38
41
  canonical: boolean;
@@ -64,6 +67,7 @@ export declare const getSignatureBase: (card: ArkhamCardsInvestigator) => {
64
67
  skill_willpower: number;
65
68
  spoiler: boolean;
66
69
  } | {
70
+ gender: InvestigatorSignatureGender;
67
71
  taboo: boolean;
68
72
  custom: boolean;
69
73
  canonical: boolean;
@@ -95,6 +99,7 @@ export declare const getSignatureBase: (card: ArkhamCardsInvestigator) => {
95
99
  skill_willpower: number;
96
100
  spoiler: boolean;
97
101
  } | {
102
+ gender: InvestigatorSignatureGender;
98
103
  taboo: boolean;
99
104
  custom: boolean;
100
105
  canonical: boolean;
@@ -126,6 +131,7 @@ export declare const getSignatureBase: (card: ArkhamCardsInvestigator) => {
126
131
  skill_willpower: number;
127
132
  spoiler: boolean;
128
133
  } | {
134
+ gender: InvestigatorSignatureGender;
129
135
  taboo: boolean;
130
136
  custom: boolean;
131
137
  canonical: boolean;
@@ -10,6 +10,12 @@ export declare const getCardSpecial: (card: ArkhamCardsInvestigator) => {
10
10
  };
11
11
  type: "default";
12
12
  code: string;
13
+ health?: number;
14
+ sanity?: number;
15
+ skill_agility?: number;
16
+ skill_combat?: number;
17
+ skill_intellect?: number;
18
+ skill_willpower?: number;
13
19
  spoiler?: boolean;
14
20
  previewId?: string;
15
21
  variantName?: string;
@@ -1,7 +1,7 @@
1
+ import type { ArkhamCardsRulesItem } from "../api/arkhamCards";
1
2
  import type { ArkhamDivider } from "arkham-divider-data";
2
3
  import type { Investigator, SignatureCollection } from "./game";
3
4
  import type { Story } from "./game/story";
4
- import { ArkhamCardsRulesItem } from "../api/arkhamCards";
5
5
  export type Build = {
6
6
  version: string;
7
7
  minClientVersion: string;
@@ -1,7 +1,7 @@
1
1
  import type { InvestigatorAbility } from "./abilities";
2
2
  import type { InvestigatorImage } from "./image";
3
3
  import type { InvestigatorSkin, InvestigatorVariant } from "./options";
4
- export type Investigator = {
4
+ export type Investigator = InvestigatorStats & {
5
5
  code: string;
6
6
  previewId?: string;
7
7
  variantName?: string;
@@ -14,4 +14,12 @@ export type Investigator = {
14
14
  roles?: InvestigatorFaction[];
15
15
  spoiler?: boolean;
16
16
  };
17
+ export type InvestigatorStats = {
18
+ health?: number;
19
+ sanity?: number;
20
+ skill_agility?: number;
21
+ skill_combat?: number;
22
+ skill_intellect?: number;
23
+ skill_willpower?: number;
24
+ };
17
25
  export type InvestigatorFaction = "guardian" | "rogue" | "seeker" | "mystic" | "survivor" | "neutral";
@@ -1,7 +1,8 @@
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" | "image"> & {
4
+ export type InvestigatorSignatureGender = "male" | "female" | "non-binary";
5
+ 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" | "gender"> & Omit<Investigator, "variants" | "skins" | "image"> & {
5
6
  icon: string;
6
7
  type: InvestigatorSignatureType;
7
8
  image: Omit<Investigator["image"], "id"> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arkham-investigator-data",
3
- "version": "2.5.0",
3
+ "version": "2.6.0",
4
4
  "main": "index.js",
5
5
  "types": "build/src/types.d.ts",
6
6
  "scripts": {