@archivist-gg/dnd5e 0.3.1 → 0.3.5
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/LICENSES/SRD.md +25 -6
- package/dist/armor/armor.codec.js +4 -3
- package/dist/armor/armor.parser.js +3 -2
- package/dist/armor/armor.schema.d.ts +4 -0
- package/dist/armor/armor.schema.js +2 -1
- package/dist/armor/armor.types.d.ts +8 -0
- package/dist/background/background.codec.js +7 -6
- package/dist/background/background.parser.js +6 -5
- package/dist/background/background.schema.d.ts +26 -0
- package/dist/background/background.schema.js +5 -4
- package/dist/background/background.types.d.ts +22 -0
- package/dist/{chunk-4TIJKN6O.js → chunk-23LZLBJK.js} +1 -1
- package/dist/{chunk-AFKTJXRA.js → chunk-2DFENQIJ.js} +18 -0
- package/dist/chunk-2FRUSVZS.js +489 -0
- package/dist/chunk-2VDTW7QO.js +1580 -0
- package/dist/{chunk-ZZGEVJKX.js → chunk-3JOTQW7A.js} +1 -1
- package/dist/{chunk-5ZBE4CWV.js → chunk-3PZHBLFG.js} +1 -1
- package/dist/chunk-4U55VNC7.js +22 -0
- package/dist/{chunk-4JHOHWBI.js → chunk-4XTNPNQB.js} +1 -1
- package/dist/{chunk-HCP3GMHS.js → chunk-5N2GW72F.js} +15 -2
- package/dist/{chunk-42Y5IJKT.js → chunk-5RKLL2AD.js} +5 -1
- package/dist/{chunk-SE7AZDR3.js → chunk-63XQXPZL.js} +29 -3
- package/dist/{chunk-4F6AIZ36.js → chunk-6BFWZW6T.js} +1 -1
- package/dist/{chunk-GJOI2GHP.js → chunk-6GNXYAYP.js} +1 -1
- package/dist/{chunk-66XXW2Z2.js → chunk-6PXTNCBP.js} +2 -2
- package/dist/chunk-6X2NV665.js +33 -0
- package/dist/{chunk-LV4SNWZQ.js → chunk-6X4KUDMU.js} +8 -1
- package/dist/{chunk-ZMR77DDL.js → chunk-AW3EHF3L.js} +1 -1
- package/dist/{chunk-TLYDBT5F.js → chunk-CGRLQ34U.js} +64 -7
- package/dist/chunk-CJYCVNW2.js +7 -0
- package/dist/{chunk-XLSVNUTK.js → chunk-CV5XDJKU.js} +1 -1
- package/dist/{chunk-RAWJTA45.js → chunk-DEEHHLAP.js} +1 -1
- package/dist/{chunk-6IRYTM5V.js → chunk-DPUJDOKV.js} +119 -28
- package/dist/{chunk-GE4TLPWM.js → chunk-EHDATXP7.js} +1 -1
- package/dist/chunk-EVMUJYUD.js +195 -0
- package/dist/{chunk-K6Q5OUGK.js → chunk-GFZ7PITJ.js} +86 -10
- package/dist/{chunk-6NK2MUD3.js → chunk-HZA7OE7N.js} +9 -2
- package/dist/{chunk-TN6ZLTNU.js → chunk-I2NDWFDD.js} +51 -4
- package/dist/{chunk-3DZ74AKK.js → chunk-IN4M4X7P.js} +8 -2
- package/dist/chunk-IUAAXXNO.js +58 -0
- package/dist/{chunk-NXSWH3AE.js → chunk-IWRVOCT5.js} +1 -1
- package/dist/{chunk-XJNECUPT.js → chunk-JC5UNIVM.js} +19 -0
- package/dist/{chunk-24GFQU7T.js → chunk-JSZ4H6AQ.js} +1 -1
- package/dist/{chunk-XTIQWSFM.js → chunk-KADJZGZY.js} +1 -1
- package/dist/{chunk-L7E2UT5A.js → chunk-KK33PIDN.js} +5 -1
- package/dist/chunk-KPEJMNRD.js +302 -0
- package/dist/chunk-KU3YLF6D.js +106 -0
- package/dist/{chunk-5INR4NSL.js → chunk-LDDCNPHD.js} +1 -1
- package/dist/chunk-LVQLWRCU.js +15 -0
- package/dist/chunk-MI7P3NX3.js +161 -0
- package/dist/{chunk-PHQRGDRQ.js → chunk-N3A5ICBO.js} +5 -1
- package/dist/chunk-O4SRD3J5.js +165 -0
- package/dist/chunk-OAXWSVJB.js +81 -0
- package/dist/chunk-OZP6JFGT.js +162 -0
- package/dist/{chunk-NAEPSZAM.js → chunk-PDJSUH24.js} +24 -2
- package/dist/chunk-PP2UHLBA.js +50 -0
- package/dist/chunk-PVCEA4HZ.js +6 -0
- package/dist/{chunk-RSDRMH54.js → chunk-RF4TYCA2.js} +1 -1
- package/dist/chunk-RLGQ5PZZ.js +16 -0
- package/dist/chunk-RVXC6ZHY.js +89 -0
- package/dist/chunk-S7REMWW4.js +21 -0
- package/dist/{chunk-7VJ6BOA5.js → chunk-SMLXZUBH.js} +9 -1
- package/dist/chunk-TOM66P2P.js +38 -0
- package/dist/chunk-UA5KS2PL.js +26 -0
- package/dist/{chunk-N6N74K6X.js → chunk-UBBKSYBY.js} +1 -1
- package/dist/{chunk-353WXS6S.js → chunk-UIRMA5KM.js} +1 -1
- package/dist/{chunk-BIK4DFWK.js → chunk-ULCQ73LA.js} +1 -1
- package/dist/{chunk-2BWAID3Y.js → chunk-UMWIPLLM.js} +29 -3
- package/dist/chunk-UQ3ZFCWD.js +178 -0
- package/dist/chunk-UXPGW4TI.js +101 -0
- package/dist/chunk-V2MJE6NC.js +133 -0
- package/dist/{chunk-D3CLOBE3.js → chunk-V373TRJE.js} +48 -10
- package/dist/chunk-VQAXTIBW.js +100 -0
- package/dist/chunk-W74BCA7V.js +159 -0
- package/dist/{chunk-WP2CX2JO.js → chunk-WELIKLZF.js} +22 -1
- package/dist/{chunk-MDEJHMKK.js → chunk-WHVLNFTG.js} +26 -5
- package/dist/{chunk-GZ46OVGZ.js → chunk-WSVMLNTO.js} +1 -1
- package/dist/{chunk-4LZJXJJS.js → chunk-WXWPK3LI.js} +6 -2
- package/dist/chunk-X3D6LXUU.js +185 -0
- package/dist/chunk-XJ2F2WO6.js +8 -0
- package/dist/{chunk-73HOFQQ5.js → chunk-Y4AGLCY6.js} +1 -1
- package/dist/chunk-YBLDE5CG.js +42 -0
- package/dist/{chunk-JEYQU3JT.js → chunk-YHYTW5QA.js} +2 -18
- package/dist/{chunk-PZOWBI3B.js → chunk-YLL2QXY2.js} +7 -2
- package/dist/class/class.codec.js +12 -9
- package/dist/class/class.parser.js +11 -8
- package/dist/class/class.schema.d.ts +55 -3
- package/dist/class/class.schema.js +9 -7
- package/dist/class/class.types.d.ts +48 -3
- package/dist/condition/condition.codec.d.ts +9 -0
- package/dist/condition/condition.entity-type.d.ts +2 -0
- package/dist/condition/condition.parser.d.ts +13 -0
- package/dist/condition/condition.parser.js +7 -0
- package/dist/condition/condition.schema.d.ts +29 -0
- package/dist/condition/condition.types.d.ts +15 -0
- package/dist/condition/condition.types.js +0 -0
- package/dist/dnd/constants.d.ts +22 -0
- package/dist/dnd/constants.js +9 -3
- package/dist/dnd/formula-tags.js +2 -2
- package/dist/dnd/math.d.ts +26 -0
- package/dist/dnd/math.js +12 -2
- package/dist/dnd/prose-tags.js +1 -1
- package/dist/dnd/resource-formula.d.ts +36 -10
- package/dist/dnd/resource-formula.js +10 -155
- package/dist/dnd/srd-tag-converter.js +3 -3
- package/dist/dnd/tag-grammar.js +1 -1
- package/dist/dnd/warn-once.d.ts +2 -0
- package/dist/dnd/warn-once.js +8 -0
- package/dist/entities/base-item-resolver.js +2 -2
- package/dist/entities/slug.d.ts +13 -0
- package/dist/entities/slug.js +5 -3
- package/dist/entities/wikilink-display.d.ts +3 -0
- package/dist/entities/wikilink-display.js +10 -0
- package/dist/feat/feat.category-codes.d.ts +32 -0
- package/dist/feat/feat.category-codes.js +14 -0
- package/dist/feat/feat.codec.js +7 -5
- package/dist/feat/feat.parser.js +6 -4
- package/dist/feat/feat.schema.d.ts +239 -0
- package/dist/feat/feat.schema.js +5 -3
- package/dist/feat/feat.types.d.ts +37 -1
- package/dist/index.js +2033 -6907
- package/dist/item/item.codec.js +4 -3
- package/dist/item/item.enrichment.js +4 -4
- package/dist/item/item.parser.js +3 -2
- package/dist/item/item.schema.d.ts +69 -3
- package/dist/item/item.schema.js +2 -1
- package/dist/item/item.types.d.ts +69 -3
- package/dist/monster/monster.codec.d.ts +7 -6
- package/dist/monster/monster.enrichment.js +4 -4
- package/dist/monster/monster.format.d.ts +135 -0
- package/dist/monster/monster.format.js +78 -0
- package/dist/monster/monster.parser.d.ts +6 -1
- package/dist/monster/monster.parser.js +10 -1
- package/dist/monster/monster.schema.d.ts +369 -0
- package/dist/monster/monster.schema.js +34 -0
- package/dist/monster/monster.types.d.ts +200 -14
- package/dist/optional-feature/optional-feature.codec.js +6 -5
- package/dist/optional-feature/optional-feature.parser.js +5 -4
- package/dist/optional-feature/optional-feature.schema.d.ts +185 -0
- package/dist/optional-feature/optional-feature.schema.js +4 -3
- package/dist/pack.d.ts +1 -1
- package/dist/pc/conditions.constants.d.ts +0 -1
- package/dist/pc/conditions.constants.js +1 -3
- package/dist/pc/decision-recognizer.js +1 -1
- package/dist/pc/pc.additional-spells.d.ts +47 -0
- package/dist/pc/pc.additional-spells.js +23 -0
- package/dist/pc/pc.asi-flatten.d.ts +18 -0
- package/dist/pc/pc.decision-engine.d.ts +105 -17
- package/dist/pc/pc.decision-engine.js +28 -12
- package/dist/pc/pc.defense-normalize.d.ts +11 -0
- package/dist/pc/pc.defense-normalize.js +6 -0
- package/dist/pc/pc.equipment.d.ts +31 -2
- package/dist/pc/pc.equipment.js +12 -8
- package/dist/pc/pc.feature-effects.d.ts +234 -11
- package/dist/pc/pc.feature-effects.js +21 -5
- package/dist/pc/pc.parser.js +2 -2
- package/dist/pc/pc.pools.d.ts +11 -3
- package/dist/pc/pc.pools.js +9 -13
- package/dist/pc/pc.proficiencies.d.ts +54 -29
- package/dist/pc/pc.proficiencies.js +74 -95
- package/dist/pc/pc.proficiency-grants.d.ts +58 -0
- package/dist/pc/pc.proficiency-normalize.d.ts +24 -0
- package/dist/pc/pc.proficiency-normalize.js +12 -0
- package/dist/pc/pc.proficiency-query.d.ts +13 -0
- package/dist/pc/pc.proficiency-query.js +1 -1
- package/dist/pc/pc.recalc.d.ts +69 -14
- package/dist/pc/pc.recalc.js +261 -122
- package/dist/pc/pc.resolver.d.ts +34 -8
- package/dist/pc/pc.resolver.js +27 -12
- package/dist/pc/pc.resource-seed.d.ts +3 -2
- package/dist/pc/pc.resource-seed.js +19 -17
- package/dist/pc/pc.resources.d.ts +87 -0
- package/dist/pc/pc.resources.js +21 -0
- package/dist/pc/pc.rest.d.ts +10 -1
- package/dist/pc/pc.rest.js +66 -12
- package/dist/pc/pc.schema.d.ts +139 -3
- package/dist/pc/pc.schema.js +4 -2
- package/dist/pc/pc.slotting.js +3 -3
- package/dist/pc/pc.spellcasting.d.ts +75 -6
- package/dist/pc/pc.spellcasting.js +16 -6
- package/dist/pc/pc.table-column.d.ts +23 -0
- package/dist/pc/pc.table-column.js +13 -3
- package/dist/pc/pc.types.d.ts +251 -12
- package/dist/pc/pool-layout.d.ts +47 -0
- package/dist/pc/pool-layout.js +16 -0
- package/dist/pc/roll-scope.d.ts +2 -0
- package/dist/pc/roll-scope.js +8 -0
- package/dist/pc/roll-tag-labels.d.ts +40 -0
- package/dist/pc/roll-tag-labels.js +17 -0
- package/dist/pc/spell-source.d.ts +21 -0
- package/dist/pc/spell-source.js +13 -0
- package/dist/race/race.codec.js +9 -7
- package/dist/race/race.parser.js +8 -6
- package/dist/race/race.schema.d.ts +51 -1
- package/dist/race/race.schema.js +8 -5
- package/dist/race/race.structural.d.ts +7 -0
- package/dist/race/race.structural.js +6 -0
- package/dist/race/race.types.d.ts +20 -0
- package/dist/schemas/attack-schema.d.ts +5 -0
- package/dist/schemas/caster-type-schema.d.ts +14 -0
- package/dist/schemas/caster-type-schema.js +6 -0
- package/dist/schemas/choice-schema.js +2 -2
- package/dist/schemas/entity-extras-schema.d.ts +53 -0
- package/dist/schemas/entity-extras-schema.js +10 -0
- package/dist/schemas/equipment-grant-schema.d.ts +2 -0
- package/dist/schemas/equipment-grant-schema.js +1 -1
- package/dist/schemas/feature-alias.d.ts +34 -0
- package/dist/schemas/feature-effect-schema.d.ts +133 -0
- package/dist/schemas/feature-effect-schema.js +1 -1
- package/dist/schemas/feature-schema.d.ts +8 -0
- package/dist/schemas/feature-schema.js +6 -4
- package/dist/schemas/resource-schema.d.ts +43 -0
- package/dist/schemas/resource-schema.js +1 -1
- package/dist/schemas/selection-pool-schema.d.ts +2 -0
- package/dist/schemas/selection-pool-schema.js +1 -1
- package/dist/spell/spell.access.js +23 -3
- package/dist/spell/spell.codec.js +4 -3
- package/dist/spell/spell.enrichment.js +4 -4
- package/dist/spell/spell.parser.d.ts +30 -0
- package/dist/spell/spell.parser.js +9 -2
- package/dist/spell/spell.scaling.d.ts +27 -6
- package/dist/spell/spell.scaling.js +25 -6
- package/dist/spell/spell.schema.d.ts +44 -2
- package/dist/spell/spell.schema.js +2 -1
- package/dist/spell/spell.types.d.ts +14 -0
- package/dist/subclass/subclass.codec.d.ts +1 -1
- package/dist/subclass/subclass.codec.js +11 -8
- package/dist/subclass/subclass.parser.js +10 -7
- package/dist/subclass/subclass.schema.d.ts +54 -7
- package/dist/subclass/subclass.schema.js +8 -6
- package/dist/subclass/subclass.types.d.ts +20 -2
- package/dist/types/choice.d.ts +53 -2
- package/dist/types/choice.js +13 -1
- package/dist/types/equipment-grant.d.ts +8 -1
- package/dist/types/feature-effect.d.ts +85 -23
- package/dist/types/feature.d.ts +70 -1
- package/dist/types/optional-feature.types.d.ts +28 -0
- package/dist/types/resource.d.ts +21 -1
- package/dist/types/selection-pool.d.ts +17 -2
- package/dist/weapon/weapon.classify.js +2 -2
- package/dist/weapon/weapon.codec.js +4 -3
- package/dist/weapon/weapon.parser.js +3 -2
- package/dist/weapon/weapon.schema.d.ts +4 -0
- package/dist/weapon/weapon.schema.js +2 -1
- package/dist/weapon/weapon.types.d.ts +8 -0
- package/package.json +2 -2
- package/dist/chunk-5XUXXAQJ.js +0 -30
- package/dist/chunk-7P65Q426.js +0 -158
- package/dist/chunk-7TEK5KK7.js +0 -49
- package/dist/chunk-AIRFC5NQ.js +0 -143
- package/dist/chunk-CZPMTQOY.js +0 -68
- package/dist/chunk-N2JE7BWL.js +0 -81
- package/dist/chunk-NXR3BD2V.js +0 -90
- package/dist/chunk-O5EYMKFH.js +0 -6
- package/dist/chunk-Q5K6LWBZ.js +0 -45
- package/dist/chunk-TNUFPIXI.js +0 -1110
- package/dist/chunk-TZK36BU7.js +0 -38
- package/dist/chunk-W7HWMMBF.js +0 -46
- package/dist/chunk-Y4I74YEG.js +0 -33
|
@@ -46,21 +46,49 @@ export declare const featEntitySchema: z.ZodObject<{
|
|
|
46
46
|
}, z.core.$strip>, z.ZodObject<{
|
|
47
47
|
kind: z.ZodLiteral<"class">;
|
|
48
48
|
slug: z.ZodString;
|
|
49
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
+
kind: z.ZodLiteral<"feat">;
|
|
51
|
+
slug: z.ZodString;
|
|
52
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
+
kind: z.ZodLiteral<"campaign">;
|
|
54
|
+
slug: z.ZodString;
|
|
55
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
56
|
+
kind: z.ZodLiteral<"exclusive-feat-category">;
|
|
57
|
+
slug: z.ZodString;
|
|
58
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
+
kind: z.ZodLiteral<"feature">;
|
|
60
|
+
slug: z.ZodString;
|
|
61
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
62
|
+
kind: z.ZodLiteral<"other">;
|
|
63
|
+
detail: z.ZodString;
|
|
64
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
65
|
+
kind: z.ZodLiteral<"feat-category">;
|
|
66
|
+
slug: z.ZodString;
|
|
67
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
68
|
+
kind: z.ZodLiteral<"background">;
|
|
69
|
+
slug: z.ZodString;
|
|
49
70
|
}, z.core.$strip>], "kind">>;
|
|
50
71
|
benefits: z.ZodArray<z.ZodString>;
|
|
51
72
|
effects: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
52
73
|
kind: z.ZodLiteral<"initiative-bonus">;
|
|
53
74
|
value: z.ZodNumber;
|
|
75
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
76
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
54
77
|
}, z.core.$strip>, z.ZodObject<{
|
|
55
78
|
kind: z.ZodLiteral<"immune-condition">;
|
|
56
79
|
condition: z.ZodString;
|
|
57
80
|
while: z.ZodOptional<z.ZodString>;
|
|
81
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
58
82
|
}, z.core.$strip>, z.ZodObject<{
|
|
59
83
|
kind: z.ZodLiteral<"resistance">;
|
|
60
84
|
damage_type: z.ZodString;
|
|
85
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
86
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
61
87
|
}, z.core.$strip>, z.ZodObject<{
|
|
62
88
|
kind: z.ZodLiteral<"hp-per-level-bonus">;
|
|
63
89
|
value: z.ZodNumber;
|
|
90
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
91
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
64
92
|
}, z.core.$strip>, z.ZodObject<{
|
|
65
93
|
kind: z.ZodLiteral<"speed-bonus">;
|
|
66
94
|
mode: z.ZodEnum<{
|
|
@@ -72,6 +100,21 @@ export declare const featEntitySchema: z.ZodObject<{
|
|
|
72
100
|
}>;
|
|
73
101
|
value: z.ZodNumber;
|
|
74
102
|
set: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
+
scales_at: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
104
|
+
level: z.ZodNumber;
|
|
105
|
+
value: z.ZodNumber;
|
|
106
|
+
}, z.core.$strip>>>;
|
|
107
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
108
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
109
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
110
|
+
kind: z.ZodLiteral<"attunement-limit">;
|
|
111
|
+
value: z.ZodNumber;
|
|
112
|
+
scales_at: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
113
|
+
level: z.ZodNumber;
|
|
114
|
+
value: z.ZodNumber;
|
|
115
|
+
}, z.core.$strip>>>;
|
|
116
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
117
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
75
118
|
}, z.core.$strip>, z.ZodObject<{
|
|
76
119
|
kind: z.ZodLiteral<"sense">;
|
|
77
120
|
type: z.ZodEnum<{
|
|
@@ -81,6 +124,8 @@ export declare const featEntitySchema: z.ZodObject<{
|
|
|
81
124
|
truesight: "truesight";
|
|
82
125
|
}>;
|
|
83
126
|
range: z.ZodNumber;
|
|
127
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
128
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
84
129
|
}, z.core.$strip>, z.ZodObject<{
|
|
85
130
|
kind: z.ZodLiteral<"apply-condition">;
|
|
86
131
|
condition: z.ZodString;
|
|
@@ -90,6 +135,7 @@ export declare const featEntitySchema: z.ZodObject<{
|
|
|
90
135
|
ability: z.ZodString;
|
|
91
136
|
timing: z.ZodString;
|
|
92
137
|
}, z.core.$strip>>;
|
|
138
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
93
139
|
}, z.core.$strip>, z.ZodObject<{
|
|
94
140
|
kind: z.ZodLiteral<"damage-bonus">;
|
|
95
141
|
damage_type: z.ZodString;
|
|
@@ -100,6 +146,7 @@ export declare const featEntitySchema: z.ZodObject<{
|
|
|
100
146
|
all: "all";
|
|
101
147
|
}>>;
|
|
102
148
|
condition: z.ZodOptional<z.ZodString>;
|
|
149
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
103
150
|
}, z.core.$strip>, z.ZodObject<{
|
|
104
151
|
kind: z.ZodLiteral<"proficiency">;
|
|
105
152
|
proficiency_type: z.ZodEnum<{
|
|
@@ -111,10 +158,15 @@ export declare const featEntitySchema: z.ZodObject<{
|
|
|
111
158
|
armor: "armor";
|
|
112
159
|
}>;
|
|
113
160
|
value: z.ZodString;
|
|
161
|
+
expertise: z.ZodOptional<z.ZodBoolean>;
|
|
162
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
163
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
114
164
|
}, z.core.$strip>, z.ZodObject<{
|
|
115
165
|
kind: z.ZodLiteral<"ac-bonus">;
|
|
116
166
|
value: z.ZodNumber;
|
|
117
167
|
requires_armor: z.ZodOptional<z.ZodBoolean>;
|
|
168
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
169
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
118
170
|
}, z.core.$strip>, z.ZodObject<{
|
|
119
171
|
kind: z.ZodLiteral<"unarmored-ac">;
|
|
120
172
|
abilities: z.ZodArray<z.ZodEnum<{
|
|
@@ -127,6 +179,23 @@ export declare const featEntitySchema: z.ZodObject<{
|
|
|
127
179
|
}>>;
|
|
128
180
|
base: z.ZodOptional<z.ZodNumber>;
|
|
129
181
|
allow_shield: z.ZodOptional<z.ZodBoolean>;
|
|
182
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
183
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
184
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
185
|
+
kind: z.ZodLiteral<"unarmed-strike">;
|
|
186
|
+
dice: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
187
|
+
column: z.ZodString;
|
|
188
|
+
}, z.core.$strip>]>>;
|
|
189
|
+
abilities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
190
|
+
str: "str";
|
|
191
|
+
dex: "dex";
|
|
192
|
+
con: "con";
|
|
193
|
+
int: "int";
|
|
194
|
+
wis: "wis";
|
|
195
|
+
cha: "cha";
|
|
196
|
+
}>>>;
|
|
197
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
198
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
130
199
|
}, z.core.$strip>, z.ZodObject<{
|
|
131
200
|
kind: z.ZodLiteral<"weapon-ability">;
|
|
132
201
|
ability: z.ZodUnion<readonly [z.ZodEnum<{
|
|
@@ -138,22 +207,34 @@ export declare const featEntitySchema: z.ZodObject<{
|
|
|
138
207
|
cha: "cha";
|
|
139
208
|
}>, z.ZodLiteral<"spellcasting">]>;
|
|
140
209
|
weapons: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"chosen">, z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
210
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
211
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
141
212
|
}, z.core.$strip>, z.ZodObject<{
|
|
142
213
|
kind: z.ZodLiteral<"roll-modifier">;
|
|
143
214
|
mode: z.ZodEnum<{
|
|
144
215
|
advantage: "advantage";
|
|
145
216
|
disadvantage: "disadvantage";
|
|
217
|
+
reroll: "reroll";
|
|
218
|
+
"add-d4": "add-d4";
|
|
146
219
|
}>;
|
|
147
220
|
roll: z.ZodEnum<{
|
|
148
221
|
"saving-throw": "saving-throw";
|
|
149
222
|
"ability-check": "ability-check";
|
|
150
223
|
attack: "attack";
|
|
224
|
+
any: "any";
|
|
151
225
|
}>;
|
|
152
226
|
scope: z.ZodOptional<z.ZodString>;
|
|
153
227
|
condition: z.ZodOptional<z.ZodString>;
|
|
228
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
154
229
|
}, z.core.$strip>, z.ZodObject<{
|
|
155
230
|
kind: z.ZodLiteral<"extra-attack">;
|
|
156
231
|
count: z.ZodNumber;
|
|
232
|
+
scales_at: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
233
|
+
level: z.ZodNumber;
|
|
234
|
+
count: z.ZodNumber;
|
|
235
|
+
}, z.core.$strip>>>;
|
|
236
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
237
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
157
238
|
}, z.core.$strip>, z.ZodObject<{
|
|
158
239
|
kind: z.ZodLiteral<"crit-range">;
|
|
159
240
|
min_roll: z.ZodNumber;
|
|
@@ -163,6 +244,7 @@ export declare const featEntitySchema: z.ZodObject<{
|
|
|
163
244
|
all: "all";
|
|
164
245
|
}>>;
|
|
165
246
|
condition: z.ZodOptional<z.ZodString>;
|
|
247
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
166
248
|
}, z.core.$strip>, z.ZodObject<{
|
|
167
249
|
kind: z.ZodLiteral<"reroll-damage">;
|
|
168
250
|
max_reroll: z.ZodNumber;
|
|
@@ -172,11 +254,83 @@ export declare const featEntitySchema: z.ZodObject<{
|
|
|
172
254
|
all: "all";
|
|
173
255
|
}>>;
|
|
174
256
|
once_per_die: z.ZodOptional<z.ZodBoolean>;
|
|
257
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
258
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
175
259
|
}, z.core.$strip>, z.ZodObject<{
|
|
176
260
|
kind: z.ZodLiteral<"attack-rule">;
|
|
177
261
|
flag: z.ZodEnum<{
|
|
178
262
|
"no-ranged-in-melee-disadvantage": "no-ranged-in-melee-disadvantage";
|
|
179
263
|
}>;
|
|
264
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
265
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
266
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
267
|
+
kind: z.ZodLiteral<"immunity">;
|
|
268
|
+
damage_type: z.ZodString;
|
|
269
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
270
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
271
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
272
|
+
kind: z.ZodLiteral<"vulnerability">;
|
|
273
|
+
damage_type: z.ZodString;
|
|
274
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
275
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
276
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
277
|
+
kind: z.ZodLiteral<"temp-hp">;
|
|
278
|
+
amount: z.ZodString;
|
|
279
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
280
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
281
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
282
|
+
kind: z.ZodLiteral<"heal">;
|
|
283
|
+
amount: z.ZodString;
|
|
284
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
285
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
286
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
287
|
+
kind: z.ZodLiteral<"ability-score-increase">;
|
|
288
|
+
abilities: z.ZodUnion<readonly [z.ZodLiteral<"chosen">, z.ZodArray<z.ZodEnum<{
|
|
289
|
+
str: "str";
|
|
290
|
+
dex: "dex";
|
|
291
|
+
con: "con";
|
|
292
|
+
int: "int";
|
|
293
|
+
wis: "wis";
|
|
294
|
+
cha: "cha";
|
|
295
|
+
}>>]>;
|
|
296
|
+
amount: z.ZodNumber;
|
|
297
|
+
choose: z.ZodNullable<z.ZodNumber>;
|
|
298
|
+
max: z.ZodNullable<z.ZodNumber>;
|
|
299
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
300
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
301
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
302
|
+
kind: z.ZodLiteral<"extra-action">;
|
|
303
|
+
count: z.ZodNumber;
|
|
304
|
+
action_type: z.ZodEnum<{
|
|
305
|
+
action: "action";
|
|
306
|
+
"bonus-action": "bonus-action";
|
|
307
|
+
reaction: "reaction";
|
|
308
|
+
}>;
|
|
309
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
310
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
311
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
312
|
+
kind: z.ZodLiteral<"save-outcome">;
|
|
313
|
+
ability: z.ZodUnion<readonly [z.ZodEnum<{
|
|
314
|
+
str: "str";
|
|
315
|
+
dex: "dex";
|
|
316
|
+
con: "con";
|
|
317
|
+
int: "int";
|
|
318
|
+
wis: "wis";
|
|
319
|
+
cha: "cha";
|
|
320
|
+
}>, z.ZodLiteral<"any">]>;
|
|
321
|
+
on_success: z.ZodEnum<{
|
|
322
|
+
none: "none";
|
|
323
|
+
half: "half";
|
|
324
|
+
full: "full";
|
|
325
|
+
}>;
|
|
326
|
+
on_failure: z.ZodEnum<{
|
|
327
|
+
none: "none";
|
|
328
|
+
half: "half";
|
|
329
|
+
full: "full";
|
|
330
|
+
}>;
|
|
331
|
+
applies_to: z.ZodNullable<z.ZodString>;
|
|
332
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
333
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
180
334
|
}, z.core.$strip>], "kind">>;
|
|
181
335
|
grants_asi: z.ZodNullable<z.ZodObject<{
|
|
182
336
|
amount: z.ZodNumber;
|
|
@@ -191,4 +345,89 @@ export declare const featEntitySchema: z.ZodObject<{
|
|
|
191
345
|
}, z.core.$strip>>;
|
|
192
346
|
repeatable: z.ZodBoolean;
|
|
193
347
|
choices: z.ZodArray<z.ZodType<import("../index.js").Choice, unknown, z.core.$ZodTypeInternals<import("../index.js").Choice, unknown>>>;
|
|
348
|
+
rendering_hint: z.ZodOptional<z.ZodString>;
|
|
349
|
+
additional_spells: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
350
|
+
name: z.ZodOptional<z.ZodString>;
|
|
351
|
+
ability: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
352
|
+
choose: z.ZodArray<z.ZodString>;
|
|
353
|
+
}, z.core.$strip>]>>;
|
|
354
|
+
known: z.ZodOptional<z.ZodUnknown>;
|
|
355
|
+
innate: z.ZodOptional<z.ZodUnknown>;
|
|
356
|
+
prepared: z.ZodOptional<z.ZodUnknown>;
|
|
357
|
+
expanded: z.ZodOptional<z.ZodUnknown>;
|
|
358
|
+
resourceName: z.ZodOptional<z.ZodString>;
|
|
359
|
+
}, z.core.$strip>>>;
|
|
360
|
+
has_fluff: z.ZodOptional<z.ZodBoolean>;
|
|
361
|
+
has_fluff_images: z.ZodOptional<z.ZodBoolean>;
|
|
362
|
+
trait_tags: z.ZodOptional<z.ZodUnknown>;
|
|
363
|
+
optionalfeature_progression: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
364
|
+
name: z.ZodString;
|
|
365
|
+
progression: z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodNumber>, z.ZodArray<z.ZodNumber>]>;
|
|
366
|
+
feature_type: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
367
|
+
featureType: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
368
|
+
category: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
369
|
+
required: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
370
|
+
}, z.core.$strip>>>;
|
|
371
|
+
resources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
372
|
+
id: z.ZodString;
|
|
373
|
+
name: z.ZodString;
|
|
374
|
+
max_formula: z.ZodString;
|
|
375
|
+
scales_at: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
376
|
+
level: z.ZodNumber;
|
|
377
|
+
max: z.ZodString;
|
|
378
|
+
}, z.core.$strict>>>;
|
|
379
|
+
die: z.ZodOptional<z.ZodObject<{
|
|
380
|
+
base: z.ZodString;
|
|
381
|
+
scaling: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
382
|
+
}, z.core.$strip>>;
|
|
383
|
+
reset: z.ZodEnum<{
|
|
384
|
+
"short-rest": "short-rest";
|
|
385
|
+
"long-rest": "long-rest";
|
|
386
|
+
either: "either";
|
|
387
|
+
dawn: "dawn";
|
|
388
|
+
dusk: "dusk";
|
|
389
|
+
turn: "turn";
|
|
390
|
+
round: "round";
|
|
391
|
+
custom: "custom";
|
|
392
|
+
}>;
|
|
393
|
+
consumes: z.ZodOptional<z.ZodObject<{
|
|
394
|
+
resource: z.ZodString;
|
|
395
|
+
amount: z.ZodNumber;
|
|
396
|
+
}, z.core.$strip>>;
|
|
397
|
+
recovery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
398
|
+
id: z.ZodString;
|
|
399
|
+
name: z.ZodString;
|
|
400
|
+
amount: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
401
|
+
action: z.ZodOptional<z.ZodEnum<{
|
|
402
|
+
action: "action";
|
|
403
|
+
"bonus-action": "bonus-action";
|
|
404
|
+
reaction: "reaction";
|
|
405
|
+
free: "free";
|
|
406
|
+
special: "special";
|
|
407
|
+
}>>;
|
|
408
|
+
uses: z.ZodOptional<z.ZodNumber>;
|
|
409
|
+
reset: z.ZodEnum<{
|
|
410
|
+
"short-rest": "short-rest";
|
|
411
|
+
"long-rest": "long-rest";
|
|
412
|
+
either: "either";
|
|
413
|
+
dawn: "dawn";
|
|
414
|
+
dusk: "dusk";
|
|
415
|
+
turn: "turn";
|
|
416
|
+
round: "round";
|
|
417
|
+
custom: "custom";
|
|
418
|
+
}>;
|
|
419
|
+
restores: z.ZodOptional<z.ZodEnum<{
|
|
420
|
+
uses: "uses";
|
|
421
|
+
"spell-slots": "spell-slots";
|
|
422
|
+
}>>;
|
|
423
|
+
}, z.core.$strip>>>;
|
|
424
|
+
}, z.core.$strip>>>;
|
|
425
|
+
action_cost: z.ZodOptional<z.ZodEnum<{
|
|
426
|
+
action: "action";
|
|
427
|
+
"bonus-action": "bonus-action";
|
|
428
|
+
reaction: "reaction";
|
|
429
|
+
free: "free";
|
|
430
|
+
special: "special";
|
|
431
|
+
}>>;
|
|
432
|
+
image: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
194
433
|
}, z.core.$strip>;
|
package/dist/feat/feat.schema.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
featEntitySchema
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-RVXC6ZHY.js";
|
|
4
|
+
import "../chunk-YLL2QXY2.js";
|
|
5
|
+
import "../chunk-IWRVOCT5.js";
|
|
6
|
+
import "../chunk-X3D6LXUU.js";
|
|
7
|
+
import "../chunk-UA5KS2PL.js";
|
|
6
8
|
export {
|
|
7
9
|
featEntitySchema
|
|
8
10
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Choice, Ability, FeatCategory, FeatureEffect } from "@archivist-gg/dnd5e";
|
|
2
2
|
import type { Edition } from "@archivist-gg/dnd5e/types/edition";
|
|
3
|
-
import type { Resource } from "@archivist-gg/dnd5e/types/resource";
|
|
3
|
+
import type { Resource, ActionCost } from "@archivist-gg/dnd5e/types/resource";
|
|
4
|
+
import type { AdditionalSpellsEntry, ProgressionEntry } from "@archivist-gg/dnd5e/schemas/entity-extras-schema";
|
|
4
5
|
export type FeatPrerequisite = {
|
|
5
6
|
kind: "ability";
|
|
6
7
|
ability: Ability;
|
|
@@ -20,6 +21,27 @@ export type FeatPrerequisite = {
|
|
|
20
21
|
} | {
|
|
21
22
|
kind: "class";
|
|
22
23
|
slug: string;
|
|
24
|
+
} | {
|
|
25
|
+
kind: "feat";
|
|
26
|
+
slug: string;
|
|
27
|
+
} | {
|
|
28
|
+
kind: "campaign";
|
|
29
|
+
slug: string;
|
|
30
|
+
} | {
|
|
31
|
+
kind: "exclusive-feat-category";
|
|
32
|
+
slug: string;
|
|
33
|
+
} | {
|
|
34
|
+
kind: "feature";
|
|
35
|
+
slug: string;
|
|
36
|
+
} | {
|
|
37
|
+
kind: "other";
|
|
38
|
+
detail: string;
|
|
39
|
+
} | {
|
|
40
|
+
kind: "feat-category";
|
|
41
|
+
slug: string;
|
|
42
|
+
} | {
|
|
43
|
+
kind: "background";
|
|
44
|
+
slug: string;
|
|
23
45
|
};
|
|
24
46
|
export interface FeatGrantsAsi {
|
|
25
47
|
amount: number;
|
|
@@ -39,4 +61,18 @@ export interface FeatEntity {
|
|
|
39
61
|
repeatable: boolean;
|
|
40
62
|
choices: Choice[];
|
|
41
63
|
resources?: Resource[];
|
|
64
|
+
/** Converter/bundle extras declared by feat.schema.ts §2.4; all optional, none read today. */
|
|
65
|
+
rendering_hint?: string;
|
|
66
|
+
additional_spells?: AdditionalSpellsEntry[];
|
|
67
|
+
has_fluff?: boolean;
|
|
68
|
+
has_fluff_images?: boolean;
|
|
69
|
+
/** RAW 5etools passthrough: `unknown` mirrors the schema's `z.unknown()`. */
|
|
70
|
+
trait_tags?: unknown;
|
|
71
|
+
optionalfeature_progression?: ProgressionEntry[];
|
|
72
|
+
/** R-G1b-5: a TOP-LEVEL bundle key on `SRD 2024/Feats/Boon of the Night Spirit.md`.
|
|
73
|
+
* MAPPED since R4-G3a §10.2.3: the resolver carries it onto the resolved feature's
|
|
74
|
+
* `action`, so the feat note shows an Action line and the row files under that economy. */
|
|
75
|
+
action_cost?: ActionCost;
|
|
76
|
+
/** One wikilink, or an array of them for the multi-fluff-image emit. */
|
|
77
|
+
image?: string | string[];
|
|
42
78
|
}
|