@archivist-gg/dnd5e 0.3.4 → 0.3.6
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/background/background.codec.js +5 -5
- package/dist/background/background.parser.js +4 -4
- package/dist/background/background.schema.js +3 -3
- package/dist/{chunk-FDBWYMZK.js → chunk-2BI5NAXK.js} +2 -2
- package/dist/{chunk-COEOOQX2.js → chunk-3BMVVNCS.js} +1 -1
- package/dist/{chunk-LMBAEIP6.js → chunk-3PZHBLFG.js} +1 -1
- package/dist/{chunk-UXPGW4TI.js → chunk-4ISR76DH.js} +5 -0
- package/dist/{chunk-JRDPUDT5.js → chunk-63XQXPZL.js} +1 -1
- package/dist/{chunk-XGOFP7AQ.js → chunk-7MRW4RTH.js} +1 -1
- package/dist/{chunk-ZONJ66NE.js → chunk-7WNQJAZW.js} +20 -3
- package/dist/{chunk-6PKV5V2H.js → chunk-A6YL53NC.js} +1 -1
- package/dist/{chunk-HB7XZXDK.js → chunk-ABQ6ZWAF.js} +1 -1
- package/dist/{chunk-R3VAKWKW.js → chunk-B4TQTJVC.js} +1 -1
- package/dist/{chunk-RIXI5D3R.js → chunk-BJFL4KYG.js} +3 -3
- package/dist/{chunk-US5IKYCW.js → chunk-BS355LND.js} +1 -1
- package/dist/{chunk-XBQMCEI2.js → chunk-CQAL67R3.js} +1 -1
- package/dist/{chunk-YJJTISBN.js → chunk-DTCR4DBF.js} +3 -3
- package/dist/{chunk-I2NDWFDD.js → chunk-E4KG7HXO.js} +9 -0
- package/dist/{chunk-XQCSGNXE.js → chunk-EYZCCWG2.js} +51 -2
- package/dist/{chunk-5U5FFFA3.js → chunk-H4VEMVOO.js} +1 -1
- package/dist/{chunk-T26ZVCL5.js → chunk-IWRVOCT5.js} +1 -1
- package/dist/{chunk-ESS46GR4.js → chunk-JKLRBILX.js} +1 -1
- package/dist/{chunk-4FWNK4FD.js → chunk-JOVMV2X5.js} +3 -3
- package/dist/{chunk-JJ46T5XX.js → chunk-KPEJMNRD.js} +5 -0
- package/dist/{chunk-H7KBLR4X.js → chunk-MT4RWROQ.js} +2 -2
- package/dist/{chunk-IMZFOOVL.js → chunk-MYW7AOUE.js} +1 -1
- package/dist/{chunk-5XMQPTHD.js → chunk-NNAQ4KQF.js} +1 -1
- package/dist/{chunk-D5U7GMPX.js → chunk-RWZTGMSN.js} +1 -1
- package/dist/{chunk-YLL2QXY2.js → chunk-UA3I2YSO.js} +4 -0
- package/dist/{chunk-HJ5EEZ47.js → chunk-ULCQ73LA.js} +1 -1
- package/dist/{chunk-OSQFPGLM.js → chunk-V373TRJE.js} +4 -2
- package/dist/{chunk-WPWOHGPI.js → chunk-X3D6LXUU.js} +13 -0
- package/dist/class/class.codec.js +7 -7
- package/dist/class/class.parser.js +6 -6
- package/dist/class/class.schema.d.ts +5 -0
- package/dist/class/class.schema.js +5 -5
- package/dist/feat/feat.codec.js +6 -6
- package/dist/feat/feat.parser.js +5 -5
- package/dist/feat/feat.schema.d.ts +14 -0
- package/dist/feat/feat.schema.js +4 -4
- package/dist/index.js +24 -24
- package/dist/monster/monster.parser.js +6 -6
- package/dist/monster/monster.schema.js +5 -5
- package/dist/optional-feature/optional-feature.codec.js +5 -5
- package/dist/optional-feature/optional-feature.parser.js +4 -4
- package/dist/optional-feature/optional-feature.schema.d.ts +32 -0
- package/dist/optional-feature/optional-feature.schema.js +3 -3
- package/dist/pc/pc.decision-engine.js +3 -3
- package/dist/pc/pc.equipment.d.ts +1 -1
- package/dist/pc/pc.equipment.js +1 -1
- package/dist/pc/pc.feature-effects.d.ts +9 -0
- package/dist/pc/pc.feature-effects.js +1 -1
- package/dist/pc/pc.parser.js +1 -1
- package/dist/pc/pc.proficiencies.js +3 -3
- package/dist/pc/pc.recalc.js +6 -6
- package/dist/pc/pc.resolver.d.ts +14 -0
- package/dist/pc/pc.resolver.js +5 -3
- package/dist/pc/pc.resource-seed.js +1 -1
- package/dist/pc/pc.resources.d.ts +6 -0
- package/dist/pc/pc.resources.js +1 -1
- package/dist/pc/pc.rest.js +1 -1
- package/dist/pc/pc.schema.d.ts +1 -0
- package/dist/pc/pc.schema.js +1 -1
- package/dist/pc/pc.types.d.ts +8 -0
- package/dist/race/race.codec.js +7 -7
- package/dist/race/race.parser.js +6 -6
- package/dist/race/race.schema.js +5 -5
- package/dist/schemas/choice-schema.js +2 -2
- package/dist/schemas/feature-effect-schema.d.ts +9 -0
- package/dist/schemas/feature-effect-schema.js +1 -1
- package/dist/schemas/feature-schema.js +4 -4
- package/dist/schemas/resource-schema.d.ts +5 -0
- package/dist/schemas/resource-schema.js +1 -1
- package/dist/subclass/subclass.codec.js +7 -7
- package/dist/subclass/subclass.parser.js +6 -6
- package/dist/subclass/subclass.schema.d.ts +5 -0
- package/dist/subclass/subclass.schema.js +5 -5
- package/dist/types/feature-effect.d.ts +7 -0
- package/dist/types/optional-feature.types.d.ts +2 -0
- package/dist/types/resource.d.ts +5 -0
- package/package.json +1 -1
|
@@ -36,6 +36,15 @@ export declare const featureEffectSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
36
36
|
}, z.core.$strip>>>;
|
|
37
37
|
condition: z.ZodOptional<z.ZodString>;
|
|
38
38
|
subject: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
+
kind: z.ZodLiteral<"attunement-limit">;
|
|
41
|
+
value: z.ZodNumber;
|
|
42
|
+
scales_at: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
43
|
+
level: z.ZodNumber;
|
|
44
|
+
value: z.ZodNumber;
|
|
45
|
+
}, z.core.$strip>>>;
|
|
46
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
47
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
39
48
|
}, z.core.$strip>, z.ZodObject<{
|
|
40
49
|
kind: z.ZodLiteral<"sense">;
|
|
41
50
|
type: z.ZodEnum<{
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
featureObjectSchema,
|
|
3
3
|
featureSchema
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-JOVMV2X5.js";
|
|
5
5
|
import "../chunk-WYGD2UGN.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-UA3I2YSO.js";
|
|
7
|
+
import "../chunk-IWRVOCT5.js";
|
|
8
|
+
import "../chunk-X3D6LXUU.js";
|
|
9
9
|
export {
|
|
10
10
|
featureObjectSchema,
|
|
11
11
|
featureSchema
|
|
@@ -42,6 +42,11 @@ export declare const resourceSchema: z.ZodObject<{
|
|
|
42
42
|
resource: z.ZodString;
|
|
43
43
|
amount: z.ZodNumber;
|
|
44
44
|
}, z.core.$strip>>;
|
|
45
|
+
rendering_hint: z.ZodOptional<z.ZodString>;
|
|
46
|
+
surface: z.ZodOptional<z.ZodEnum<{
|
|
47
|
+
band: "band";
|
|
48
|
+
tab: "tab";
|
|
49
|
+
}>>;
|
|
45
50
|
recovery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
46
51
|
id: z.ZodString;
|
|
47
52
|
name: z.ZodString;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
subclassCodec
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-B4TQTJVC.js";
|
|
4
|
+
import "../chunk-ABQ6ZWAF.js";
|
|
5
|
+
import "../chunk-MT4RWROQ.js";
|
|
6
6
|
import "../chunk-4U55VNC7.js";
|
|
7
7
|
import "../chunk-23LZLBJK.js";
|
|
8
8
|
import "../chunk-CJYCVNW2.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-JOVMV2X5.js";
|
|
10
10
|
import "../chunk-WYGD2UGN.js";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-UA3I2YSO.js";
|
|
12
|
+
import "../chunk-IWRVOCT5.js";
|
|
13
|
+
import "../chunk-X3D6LXUU.js";
|
|
14
14
|
import "../chunk-UA5KS2PL.js";
|
|
15
15
|
export {
|
|
16
16
|
subclassCodec
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSubclass
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-ABQ6ZWAF.js";
|
|
4
|
+
import "../chunk-MT4RWROQ.js";
|
|
5
5
|
import "../chunk-4U55VNC7.js";
|
|
6
6
|
import "../chunk-23LZLBJK.js";
|
|
7
7
|
import "../chunk-CJYCVNW2.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-JOVMV2X5.js";
|
|
9
9
|
import "../chunk-WYGD2UGN.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-UA3I2YSO.js";
|
|
11
|
+
import "../chunk-IWRVOCT5.js";
|
|
12
|
+
import "../chunk-X3D6LXUU.js";
|
|
13
13
|
import "../chunk-UA5KS2PL.js";
|
|
14
14
|
export {
|
|
15
15
|
parseSubclass
|
|
@@ -61,6 +61,11 @@ export declare const subclassEntitySchema: z.ZodObject<{
|
|
|
61
61
|
resource: z.ZodString;
|
|
62
62
|
amount: z.ZodNumber;
|
|
63
63
|
}, z.core.$strip>>;
|
|
64
|
+
rendering_hint: z.ZodOptional<z.ZodString>;
|
|
65
|
+
surface: z.ZodOptional<z.ZodEnum<{
|
|
66
|
+
band: "band";
|
|
67
|
+
tab: "tab";
|
|
68
|
+
}>>;
|
|
64
69
|
recovery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
65
70
|
id: z.ZodString;
|
|
66
71
|
name: z.ZodString;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
subclassEntitySchema
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-MT4RWROQ.js";
|
|
4
4
|
import "../chunk-23LZLBJK.js";
|
|
5
5
|
import "../chunk-CJYCVNW2.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-JOVMV2X5.js";
|
|
7
7
|
import "../chunk-WYGD2UGN.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-UA3I2YSO.js";
|
|
9
|
+
import "../chunk-IWRVOCT5.js";
|
|
10
|
+
import "../chunk-X3D6LXUU.js";
|
|
11
11
|
import "../chunk-UA5KS2PL.js";
|
|
12
12
|
export {
|
|
13
13
|
subclassEntitySchema
|
|
@@ -36,6 +36,13 @@ export type FeatureEffect = ({
|
|
|
36
36
|
level: number;
|
|
37
37
|
value: number;
|
|
38
38
|
}[];
|
|
39
|
+
} & Qualified) | ({
|
|
40
|
+
kind: "attunement-limit";
|
|
41
|
+
value: number;
|
|
42
|
+
scales_at?: {
|
|
43
|
+
level: number;
|
|
44
|
+
value: number;
|
|
45
|
+
}[];
|
|
39
46
|
} & Qualified) | ({
|
|
40
47
|
kind: "sense";
|
|
41
48
|
type: SenseType;
|
|
@@ -78,6 +78,8 @@ export interface OptionalFeatureEntity {
|
|
|
78
78
|
* `rendering_hint` is the ONE of these whose VALUES are load-bearing (88 records carry a
|
|
79
79
|
* real marker such as `dice-pool`); reading it is G4's row, declaring it is this one's. */
|
|
80
80
|
rendering_hint?: string;
|
|
81
|
+
/** `band` = also drawn in the header strip. Absent/`tab` = the Resources tab only. */
|
|
82
|
+
surface?: "band" | "tab";
|
|
81
83
|
additional_spells?: AdditionalSpellsEntry[];
|
|
82
84
|
is_class_feature_variant?: boolean;
|
|
83
85
|
has_fluff_images?: boolean;
|
package/dist/types/resource.d.ts
CHANGED
|
@@ -41,6 +41,11 @@ export interface Resource {
|
|
|
41
41
|
scales_at?: ResourceScaleStep[];
|
|
42
42
|
die?: ResourceDie;
|
|
43
43
|
reset: ResetTrigger;
|
|
44
|
+
/** Presentation, carried and never interpreted by the engine: which control draws this resource.
|
|
45
|
+
* The renderer owns the hint → component table. */
|
|
46
|
+
rendering_hint?: string;
|
|
47
|
+
/** `band` = also drawn in the header strip; absent = the Resources tab alone. */
|
|
48
|
+
surface?: "band" | "tab";
|
|
44
49
|
consumes?: ResourceConsumesLink;
|
|
45
50
|
recovery?: ResourceRecovery[];
|
|
46
51
|
}
|