@archivist-gg/dnd5e 0.3.1 → 0.3.4

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.
Files changed (259) hide show
  1. package/LICENSES/SRD.md +25 -6
  2. package/dist/armor/armor.codec.js +4 -3
  3. package/dist/armor/armor.parser.js +3 -2
  4. package/dist/armor/armor.schema.d.ts +4 -0
  5. package/dist/armor/armor.schema.js +2 -1
  6. package/dist/armor/armor.types.d.ts +8 -0
  7. package/dist/background/background.codec.js +7 -6
  8. package/dist/background/background.parser.js +6 -5
  9. package/dist/background/background.schema.d.ts +26 -0
  10. package/dist/background/background.schema.js +5 -4
  11. package/dist/background/background.types.d.ts +22 -0
  12. package/dist/{chunk-4TIJKN6O.js → chunk-23LZLBJK.js} +1 -1
  13. package/dist/{chunk-AFKTJXRA.js → chunk-2DFENQIJ.js} +18 -0
  14. package/dist/chunk-2FRUSVZS.js +489 -0
  15. package/dist/chunk-4FWNK4FD.js +159 -0
  16. package/dist/chunk-4U55VNC7.js +22 -0
  17. package/dist/{chunk-4JHOHWBI.js → chunk-4XTNPNQB.js} +1 -1
  18. package/dist/{chunk-HCP3GMHS.js → chunk-5N2GW72F.js} +15 -2
  19. package/dist/{chunk-42Y5IJKT.js → chunk-5U5FFFA3.js} +5 -1
  20. package/dist/{chunk-4F6AIZ36.js → chunk-5XMQPTHD.js} +1 -1
  21. package/dist/{chunk-GJOI2GHP.js → chunk-6GNXYAYP.js} +1 -1
  22. package/dist/chunk-6PKV5V2H.js +178 -0
  23. package/dist/{chunk-66XXW2Z2.js → chunk-6PXTNCBP.js} +2 -2
  24. package/dist/chunk-6X2NV665.js +33 -0
  25. package/dist/{chunk-LV4SNWZQ.js → chunk-6X4KUDMU.js} +8 -1
  26. package/dist/{chunk-ZMR77DDL.js → chunk-AW3EHF3L.js} +1 -1
  27. package/dist/chunk-CJYCVNW2.js +7 -0
  28. package/dist/chunk-COEOOQX2.js +133 -0
  29. package/dist/{chunk-XTIQWSFM.js → chunk-D5U7GMPX.js} +1 -1
  30. package/dist/{chunk-RAWJTA45.js → chunk-DEEHHLAP.js} +1 -1
  31. package/dist/{chunk-6IRYTM5V.js → chunk-DPUJDOKV.js} +119 -28
  32. package/dist/{chunk-73HOFQQ5.js → chunk-ESS46GR4.js} +1 -1
  33. package/dist/chunk-EVMUJYUD.js +195 -0
  34. package/dist/{chunk-2BWAID3Y.js → chunk-FDBWYMZK.js} +29 -3
  35. package/dist/{chunk-K6Q5OUGK.js → chunk-GFZ7PITJ.js} +86 -10
  36. package/dist/chunk-H7KBLR4X.js +81 -0
  37. package/dist/{chunk-L7E2UT5A.js → chunk-HB7XZXDK.js} +5 -1
  38. package/dist/{chunk-BIK4DFWK.js → chunk-HJ5EEZ47.js} +1 -1
  39. package/dist/{chunk-6NK2MUD3.js → chunk-HZA7OE7N.js} +9 -2
  40. package/dist/{chunk-TN6ZLTNU.js → chunk-I2NDWFDD.js} +51 -4
  41. package/dist/{chunk-RSDRMH54.js → chunk-IMZFOOVL.js} +1 -1
  42. package/dist/{chunk-3DZ74AKK.js → chunk-IN4M4X7P.js} +8 -2
  43. package/dist/chunk-IUAAXXNO.js +58 -0
  44. package/dist/{chunk-XJNECUPT.js → chunk-JC5UNIVM.js} +19 -0
  45. package/dist/chunk-JJ46T5XX.js +297 -0
  46. package/dist/{chunk-SE7AZDR3.js → chunk-JRDPUDT5.js} +29 -3
  47. package/dist/{chunk-24GFQU7T.js → chunk-JSZ4H6AQ.js} +1 -1
  48. package/dist/chunk-KU3YLF6D.js +106 -0
  49. package/dist/{chunk-5INR4NSL.js → chunk-LDDCNPHD.js} +1 -1
  50. package/dist/{chunk-5ZBE4CWV.js → chunk-LMBAEIP6.js} +1 -1
  51. package/dist/chunk-LVQLWRCU.js +15 -0
  52. package/dist/chunk-MI7P3NX3.js +161 -0
  53. package/dist/chunk-O4SRD3J5.js +165 -0
  54. package/dist/{chunk-D3CLOBE3.js → chunk-OSQFPGLM.js} +44 -8
  55. package/dist/chunk-OZP6JFGT.js +162 -0
  56. package/dist/{chunk-NAEPSZAM.js → chunk-PDJSUH24.js} +24 -2
  57. package/dist/chunk-PP2UHLBA.js +50 -0
  58. package/dist/chunk-PVCEA4HZ.js +6 -0
  59. package/dist/{chunk-XLSVNUTK.js → chunk-R3VAKWKW.js} +1 -1
  60. package/dist/chunk-RIXI5D3R.js +89 -0
  61. package/dist/chunk-RLGQ5PZZ.js +16 -0
  62. package/dist/chunk-S7REMWW4.js +21 -0
  63. package/dist/{chunk-7VJ6BOA5.js → chunk-SMLXZUBH.js} +9 -1
  64. package/dist/{chunk-NXSWH3AE.js → chunk-T26ZVCL5.js} +1 -1
  65. package/dist/chunk-TOM66P2P.js +38 -0
  66. package/dist/chunk-UA5KS2PL.js +26 -0
  67. package/dist/{chunk-N6N74K6X.js → chunk-UBBKSYBY.js} +1 -1
  68. package/dist/{chunk-353WXS6S.js → chunk-UIRMA5KM.js} +1 -1
  69. package/dist/{chunk-GE4TLPWM.js → chunk-US5IKYCW.js} +1 -1
  70. package/dist/chunk-UXPGW4TI.js +101 -0
  71. package/dist/chunk-VQAXTIBW.js +100 -0
  72. package/dist/{chunk-WP2CX2JO.js → chunk-WELIKLZF.js} +22 -1
  73. package/dist/chunk-WPWOHGPI.js +172 -0
  74. package/dist/{chunk-GZ46OVGZ.js → chunk-WSVMLNTO.js} +1 -1
  75. package/dist/{chunk-4LZJXJJS.js → chunk-WXWPK3LI.js} +6 -2
  76. package/dist/{chunk-ZZGEVJKX.js → chunk-XBQMCEI2.js} +1 -1
  77. package/dist/{chunk-PHQRGDRQ.js → chunk-XGOFP7AQ.js} +5 -1
  78. package/dist/chunk-XJ2F2WO6.js +8 -0
  79. package/dist/chunk-XQCSGNXE.js +1580 -0
  80. package/dist/chunk-YBLDE5CG.js +42 -0
  81. package/dist/{chunk-JEYQU3JT.js → chunk-YHYTW5QA.js} +2 -18
  82. package/dist/{chunk-TLYDBT5F.js → chunk-YJJTISBN.js} +64 -7
  83. package/dist/{chunk-PZOWBI3B.js → chunk-YLL2QXY2.js} +7 -2
  84. package/dist/{chunk-MDEJHMKK.js → chunk-ZONJ66NE.js} +26 -5
  85. package/dist/class/class.codec.js +12 -9
  86. package/dist/class/class.parser.js +11 -8
  87. package/dist/class/class.schema.d.ts +55 -3
  88. package/dist/class/class.schema.js +9 -7
  89. package/dist/class/class.types.d.ts +48 -3
  90. package/dist/condition/condition.codec.d.ts +9 -0
  91. package/dist/condition/condition.entity-type.d.ts +2 -0
  92. package/dist/condition/condition.parser.d.ts +13 -0
  93. package/dist/condition/condition.parser.js +7 -0
  94. package/dist/condition/condition.schema.d.ts +29 -0
  95. package/dist/condition/condition.types.d.ts +15 -0
  96. package/dist/condition/condition.types.js +0 -0
  97. package/dist/dnd/constants.d.ts +22 -0
  98. package/dist/dnd/constants.js +9 -3
  99. package/dist/dnd/formula-tags.js +2 -2
  100. package/dist/dnd/math.d.ts +26 -0
  101. package/dist/dnd/math.js +12 -2
  102. package/dist/dnd/prose-tags.js +1 -1
  103. package/dist/dnd/resource-formula.d.ts +36 -10
  104. package/dist/dnd/resource-formula.js +10 -155
  105. package/dist/dnd/srd-tag-converter.js +3 -3
  106. package/dist/dnd/tag-grammar.js +1 -1
  107. package/dist/dnd/warn-once.d.ts +2 -0
  108. package/dist/dnd/warn-once.js +8 -0
  109. package/dist/entities/base-item-resolver.js +2 -2
  110. package/dist/entities/slug.d.ts +13 -0
  111. package/dist/entities/slug.js +5 -3
  112. package/dist/entities/wikilink-display.d.ts +3 -0
  113. package/dist/entities/wikilink-display.js +10 -0
  114. package/dist/feat/feat.category-codes.d.ts +32 -0
  115. package/dist/feat/feat.category-codes.js +14 -0
  116. package/dist/feat/feat.codec.js +7 -5
  117. package/dist/feat/feat.parser.js +6 -4
  118. package/dist/feat/feat.schema.d.ts +230 -0
  119. package/dist/feat/feat.schema.js +5 -3
  120. package/dist/feat/feat.types.d.ts +37 -1
  121. package/dist/index.js +2033 -6907
  122. package/dist/item/item.codec.js +4 -3
  123. package/dist/item/item.enrichment.js +4 -4
  124. package/dist/item/item.parser.js +3 -2
  125. package/dist/item/item.schema.d.ts +69 -3
  126. package/dist/item/item.schema.js +2 -1
  127. package/dist/item/item.types.d.ts +69 -3
  128. package/dist/monster/monster.codec.d.ts +7 -6
  129. package/dist/monster/monster.enrichment.js +4 -4
  130. package/dist/monster/monster.format.d.ts +135 -0
  131. package/dist/monster/monster.format.js +78 -0
  132. package/dist/monster/monster.parser.d.ts +6 -1
  133. package/dist/monster/monster.parser.js +10 -1
  134. package/dist/monster/monster.schema.d.ts +369 -0
  135. package/dist/monster/monster.schema.js +34 -0
  136. package/dist/monster/monster.types.d.ts +200 -14
  137. package/dist/optional-feature/optional-feature.codec.js +6 -5
  138. package/dist/optional-feature/optional-feature.parser.js +5 -4
  139. package/dist/optional-feature/optional-feature.schema.d.ts +176 -0
  140. package/dist/optional-feature/optional-feature.schema.js +4 -3
  141. package/dist/pack.d.ts +1 -1
  142. package/dist/pc/conditions.constants.d.ts +0 -1
  143. package/dist/pc/conditions.constants.js +1 -3
  144. package/dist/pc/decision-recognizer.js +1 -1
  145. package/dist/pc/pc.additional-spells.d.ts +47 -0
  146. package/dist/pc/pc.additional-spells.js +23 -0
  147. package/dist/pc/pc.asi-flatten.d.ts +18 -0
  148. package/dist/pc/pc.decision-engine.d.ts +105 -17
  149. package/dist/pc/pc.decision-engine.js +28 -12
  150. package/dist/pc/pc.defense-normalize.d.ts +11 -0
  151. package/dist/pc/pc.defense-normalize.js +6 -0
  152. package/dist/pc/pc.equipment.d.ts +30 -1
  153. package/dist/pc/pc.equipment.js +12 -8
  154. package/dist/pc/pc.feature-effects.d.ts +225 -11
  155. package/dist/pc/pc.feature-effects.js +21 -5
  156. package/dist/pc/pc.parser.js +2 -2
  157. package/dist/pc/pc.pools.d.ts +11 -3
  158. package/dist/pc/pc.pools.js +9 -13
  159. package/dist/pc/pc.proficiencies.d.ts +54 -29
  160. package/dist/pc/pc.proficiencies.js +74 -95
  161. package/dist/pc/pc.proficiency-grants.d.ts +58 -0
  162. package/dist/pc/pc.proficiency-normalize.d.ts +24 -0
  163. package/dist/pc/pc.proficiency-normalize.js +12 -0
  164. package/dist/pc/pc.proficiency-query.d.ts +13 -0
  165. package/dist/pc/pc.proficiency-query.js +1 -1
  166. package/dist/pc/pc.recalc.d.ts +69 -14
  167. package/dist/pc/pc.recalc.js +261 -122
  168. package/dist/pc/pc.resolver.d.ts +34 -8
  169. package/dist/pc/pc.resolver.js +27 -12
  170. package/dist/pc/pc.resource-seed.d.ts +3 -2
  171. package/dist/pc/pc.resource-seed.js +19 -17
  172. package/dist/pc/pc.resources.d.ts +87 -0
  173. package/dist/pc/pc.resources.js +21 -0
  174. package/dist/pc/pc.rest.d.ts +10 -1
  175. package/dist/pc/pc.rest.js +66 -12
  176. package/dist/pc/pc.schema.d.ts +139 -3
  177. package/dist/pc/pc.schema.js +4 -2
  178. package/dist/pc/pc.slotting.js +3 -3
  179. package/dist/pc/pc.spellcasting.d.ts +75 -6
  180. package/dist/pc/pc.spellcasting.js +16 -6
  181. package/dist/pc/pc.table-column.d.ts +23 -0
  182. package/dist/pc/pc.table-column.js +13 -3
  183. package/dist/pc/pc.types.d.ts +251 -12
  184. package/dist/pc/pool-layout.d.ts +47 -0
  185. package/dist/pc/pool-layout.js +16 -0
  186. package/dist/pc/roll-scope.d.ts +2 -0
  187. package/dist/pc/roll-scope.js +8 -0
  188. package/dist/pc/roll-tag-labels.d.ts +40 -0
  189. package/dist/pc/roll-tag-labels.js +17 -0
  190. package/dist/pc/spell-source.d.ts +21 -0
  191. package/dist/pc/spell-source.js +13 -0
  192. package/dist/race/race.codec.js +9 -7
  193. package/dist/race/race.parser.js +8 -6
  194. package/dist/race/race.schema.d.ts +51 -1
  195. package/dist/race/race.schema.js +8 -5
  196. package/dist/race/race.structural.d.ts +7 -0
  197. package/dist/race/race.structural.js +6 -0
  198. package/dist/race/race.types.d.ts +20 -0
  199. package/dist/schemas/attack-schema.d.ts +5 -0
  200. package/dist/schemas/caster-type-schema.d.ts +14 -0
  201. package/dist/schemas/caster-type-schema.js +6 -0
  202. package/dist/schemas/choice-schema.js +2 -2
  203. package/dist/schemas/entity-extras-schema.d.ts +53 -0
  204. package/dist/schemas/entity-extras-schema.js +10 -0
  205. package/dist/schemas/equipment-grant-schema.d.ts +2 -0
  206. package/dist/schemas/equipment-grant-schema.js +1 -1
  207. package/dist/schemas/feature-alias.d.ts +34 -0
  208. package/dist/schemas/feature-effect-schema.d.ts +124 -0
  209. package/dist/schemas/feature-effect-schema.js +1 -1
  210. package/dist/schemas/feature-schema.d.ts +8 -0
  211. package/dist/schemas/feature-schema.js +6 -4
  212. package/dist/schemas/resource-schema.d.ts +43 -0
  213. package/dist/schemas/resource-schema.js +1 -1
  214. package/dist/schemas/selection-pool-schema.d.ts +2 -0
  215. package/dist/schemas/selection-pool-schema.js +1 -1
  216. package/dist/spell/spell.access.js +23 -3
  217. package/dist/spell/spell.codec.js +4 -3
  218. package/dist/spell/spell.enrichment.js +4 -4
  219. package/dist/spell/spell.parser.d.ts +30 -0
  220. package/dist/spell/spell.parser.js +9 -2
  221. package/dist/spell/spell.scaling.d.ts +27 -6
  222. package/dist/spell/spell.scaling.js +25 -6
  223. package/dist/spell/spell.schema.d.ts +44 -2
  224. package/dist/spell/spell.schema.js +2 -1
  225. package/dist/spell/spell.types.d.ts +14 -0
  226. package/dist/subclass/subclass.codec.d.ts +1 -1
  227. package/dist/subclass/subclass.codec.js +11 -8
  228. package/dist/subclass/subclass.parser.js +10 -7
  229. package/dist/subclass/subclass.schema.d.ts +54 -7
  230. package/dist/subclass/subclass.schema.js +8 -6
  231. package/dist/subclass/subclass.types.d.ts +20 -2
  232. package/dist/types/choice.d.ts +53 -2
  233. package/dist/types/choice.js +13 -1
  234. package/dist/types/equipment-grant.d.ts +8 -1
  235. package/dist/types/feature-effect.d.ts +78 -23
  236. package/dist/types/feature.d.ts +70 -1
  237. package/dist/types/optional-feature.types.d.ts +28 -0
  238. package/dist/types/resource.d.ts +21 -1
  239. package/dist/types/selection-pool.d.ts +17 -2
  240. package/dist/weapon/weapon.classify.js +2 -2
  241. package/dist/weapon/weapon.codec.js +4 -3
  242. package/dist/weapon/weapon.parser.js +3 -2
  243. package/dist/weapon/weapon.schema.d.ts +4 -0
  244. package/dist/weapon/weapon.schema.js +2 -1
  245. package/dist/weapon/weapon.types.d.ts +8 -0
  246. package/package.json +2 -2
  247. package/dist/chunk-5XUXXAQJ.js +0 -30
  248. package/dist/chunk-7P65Q426.js +0 -158
  249. package/dist/chunk-7TEK5KK7.js +0 -49
  250. package/dist/chunk-AIRFC5NQ.js +0 -143
  251. package/dist/chunk-CZPMTQOY.js +0 -68
  252. package/dist/chunk-N2JE7BWL.js +0 -81
  253. package/dist/chunk-NXR3BD2V.js +0 -90
  254. package/dist/chunk-O5EYMKFH.js +0 -6
  255. package/dist/chunk-Q5K6LWBZ.js +0 -45
  256. package/dist/chunk-TNUFPIXI.js +0 -1110
  257. package/dist/chunk-TZK36BU7.js +0 -38
  258. package/dist/chunk-W7HWMMBF.js +0 -46
  259. 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,12 @@ 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>;
75
109
  }, z.core.$strip>, z.ZodObject<{
76
110
  kind: z.ZodLiteral<"sense">;
77
111
  type: z.ZodEnum<{
@@ -81,6 +115,8 @@ export declare const featEntitySchema: z.ZodObject<{
81
115
  truesight: "truesight";
82
116
  }>;
83
117
  range: z.ZodNumber;
118
+ condition: z.ZodOptional<z.ZodString>;
119
+ subject: z.ZodOptional<z.ZodString>;
84
120
  }, z.core.$strip>, z.ZodObject<{
85
121
  kind: z.ZodLiteral<"apply-condition">;
86
122
  condition: z.ZodString;
@@ -90,6 +126,7 @@ export declare const featEntitySchema: z.ZodObject<{
90
126
  ability: z.ZodString;
91
127
  timing: z.ZodString;
92
128
  }, z.core.$strip>>;
129
+ subject: z.ZodOptional<z.ZodString>;
93
130
  }, z.core.$strip>, z.ZodObject<{
94
131
  kind: z.ZodLiteral<"damage-bonus">;
95
132
  damage_type: z.ZodString;
@@ -100,6 +137,7 @@ export declare const featEntitySchema: z.ZodObject<{
100
137
  all: "all";
101
138
  }>>;
102
139
  condition: z.ZodOptional<z.ZodString>;
140
+ subject: z.ZodOptional<z.ZodString>;
103
141
  }, z.core.$strip>, z.ZodObject<{
104
142
  kind: z.ZodLiteral<"proficiency">;
105
143
  proficiency_type: z.ZodEnum<{
@@ -111,10 +149,15 @@ export declare const featEntitySchema: z.ZodObject<{
111
149
  armor: "armor";
112
150
  }>;
113
151
  value: z.ZodString;
152
+ expertise: z.ZodOptional<z.ZodBoolean>;
153
+ condition: z.ZodOptional<z.ZodString>;
154
+ subject: z.ZodOptional<z.ZodString>;
114
155
  }, z.core.$strip>, z.ZodObject<{
115
156
  kind: z.ZodLiteral<"ac-bonus">;
116
157
  value: z.ZodNumber;
117
158
  requires_armor: z.ZodOptional<z.ZodBoolean>;
159
+ condition: z.ZodOptional<z.ZodString>;
160
+ subject: z.ZodOptional<z.ZodString>;
118
161
  }, z.core.$strip>, z.ZodObject<{
119
162
  kind: z.ZodLiteral<"unarmored-ac">;
120
163
  abilities: z.ZodArray<z.ZodEnum<{
@@ -127,6 +170,23 @@ export declare const featEntitySchema: z.ZodObject<{
127
170
  }>>;
128
171
  base: z.ZodOptional<z.ZodNumber>;
129
172
  allow_shield: z.ZodOptional<z.ZodBoolean>;
173
+ condition: z.ZodOptional<z.ZodString>;
174
+ subject: z.ZodOptional<z.ZodString>;
175
+ }, z.core.$strip>, z.ZodObject<{
176
+ kind: z.ZodLiteral<"unarmed-strike">;
177
+ dice: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
178
+ column: z.ZodString;
179
+ }, z.core.$strip>]>>;
180
+ abilities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
181
+ str: "str";
182
+ dex: "dex";
183
+ con: "con";
184
+ int: "int";
185
+ wis: "wis";
186
+ cha: "cha";
187
+ }>>>;
188
+ condition: z.ZodOptional<z.ZodString>;
189
+ subject: z.ZodOptional<z.ZodString>;
130
190
  }, z.core.$strip>, z.ZodObject<{
131
191
  kind: z.ZodLiteral<"weapon-ability">;
132
192
  ability: z.ZodUnion<readonly [z.ZodEnum<{
@@ -138,22 +198,34 @@ export declare const featEntitySchema: z.ZodObject<{
138
198
  cha: "cha";
139
199
  }>, z.ZodLiteral<"spellcasting">]>;
140
200
  weapons: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"chosen">, z.ZodString, z.ZodArray<z.ZodString>]>>;
201
+ condition: z.ZodOptional<z.ZodString>;
202
+ subject: z.ZodOptional<z.ZodString>;
141
203
  }, z.core.$strip>, z.ZodObject<{
142
204
  kind: z.ZodLiteral<"roll-modifier">;
143
205
  mode: z.ZodEnum<{
144
206
  advantage: "advantage";
145
207
  disadvantage: "disadvantage";
208
+ reroll: "reroll";
209
+ "add-d4": "add-d4";
146
210
  }>;
147
211
  roll: z.ZodEnum<{
148
212
  "saving-throw": "saving-throw";
149
213
  "ability-check": "ability-check";
150
214
  attack: "attack";
215
+ any: "any";
151
216
  }>;
152
217
  scope: z.ZodOptional<z.ZodString>;
153
218
  condition: z.ZodOptional<z.ZodString>;
219
+ subject: z.ZodOptional<z.ZodString>;
154
220
  }, z.core.$strip>, z.ZodObject<{
155
221
  kind: z.ZodLiteral<"extra-attack">;
156
222
  count: z.ZodNumber;
223
+ scales_at: z.ZodOptional<z.ZodArray<z.ZodObject<{
224
+ level: z.ZodNumber;
225
+ count: z.ZodNumber;
226
+ }, z.core.$strip>>>;
227
+ condition: z.ZodOptional<z.ZodString>;
228
+ subject: z.ZodOptional<z.ZodString>;
157
229
  }, z.core.$strip>, z.ZodObject<{
158
230
  kind: z.ZodLiteral<"crit-range">;
159
231
  min_roll: z.ZodNumber;
@@ -163,6 +235,7 @@ export declare const featEntitySchema: z.ZodObject<{
163
235
  all: "all";
164
236
  }>>;
165
237
  condition: z.ZodOptional<z.ZodString>;
238
+ subject: z.ZodOptional<z.ZodString>;
166
239
  }, z.core.$strip>, z.ZodObject<{
167
240
  kind: z.ZodLiteral<"reroll-damage">;
168
241
  max_reroll: z.ZodNumber;
@@ -172,11 +245,83 @@ export declare const featEntitySchema: z.ZodObject<{
172
245
  all: "all";
173
246
  }>>;
174
247
  once_per_die: z.ZodOptional<z.ZodBoolean>;
248
+ condition: z.ZodOptional<z.ZodString>;
249
+ subject: z.ZodOptional<z.ZodString>;
175
250
  }, z.core.$strip>, z.ZodObject<{
176
251
  kind: z.ZodLiteral<"attack-rule">;
177
252
  flag: z.ZodEnum<{
178
253
  "no-ranged-in-melee-disadvantage": "no-ranged-in-melee-disadvantage";
179
254
  }>;
255
+ condition: z.ZodOptional<z.ZodString>;
256
+ subject: z.ZodOptional<z.ZodString>;
257
+ }, z.core.$strip>, z.ZodObject<{
258
+ kind: z.ZodLiteral<"immunity">;
259
+ damage_type: z.ZodString;
260
+ condition: z.ZodOptional<z.ZodString>;
261
+ subject: z.ZodOptional<z.ZodString>;
262
+ }, z.core.$strip>, z.ZodObject<{
263
+ kind: z.ZodLiteral<"vulnerability">;
264
+ damage_type: z.ZodString;
265
+ condition: z.ZodOptional<z.ZodString>;
266
+ subject: z.ZodOptional<z.ZodString>;
267
+ }, z.core.$strip>, z.ZodObject<{
268
+ kind: z.ZodLiteral<"temp-hp">;
269
+ amount: z.ZodString;
270
+ condition: z.ZodOptional<z.ZodString>;
271
+ subject: z.ZodOptional<z.ZodString>;
272
+ }, z.core.$strip>, z.ZodObject<{
273
+ kind: z.ZodLiteral<"heal">;
274
+ amount: z.ZodString;
275
+ condition: z.ZodOptional<z.ZodString>;
276
+ subject: z.ZodOptional<z.ZodString>;
277
+ }, z.core.$strip>, z.ZodObject<{
278
+ kind: z.ZodLiteral<"ability-score-increase">;
279
+ abilities: z.ZodUnion<readonly [z.ZodLiteral<"chosen">, z.ZodArray<z.ZodEnum<{
280
+ str: "str";
281
+ dex: "dex";
282
+ con: "con";
283
+ int: "int";
284
+ wis: "wis";
285
+ cha: "cha";
286
+ }>>]>;
287
+ amount: z.ZodNumber;
288
+ choose: z.ZodNullable<z.ZodNumber>;
289
+ max: z.ZodNullable<z.ZodNumber>;
290
+ condition: z.ZodOptional<z.ZodString>;
291
+ subject: z.ZodOptional<z.ZodString>;
292
+ }, z.core.$strip>, z.ZodObject<{
293
+ kind: z.ZodLiteral<"extra-action">;
294
+ count: z.ZodNumber;
295
+ action_type: z.ZodEnum<{
296
+ action: "action";
297
+ "bonus-action": "bonus-action";
298
+ reaction: "reaction";
299
+ }>;
300
+ condition: z.ZodOptional<z.ZodString>;
301
+ subject: z.ZodOptional<z.ZodString>;
302
+ }, z.core.$strip>, z.ZodObject<{
303
+ kind: z.ZodLiteral<"save-outcome">;
304
+ ability: z.ZodUnion<readonly [z.ZodEnum<{
305
+ str: "str";
306
+ dex: "dex";
307
+ con: "con";
308
+ int: "int";
309
+ wis: "wis";
310
+ cha: "cha";
311
+ }>, z.ZodLiteral<"any">]>;
312
+ on_success: z.ZodEnum<{
313
+ none: "none";
314
+ half: "half";
315
+ full: "full";
316
+ }>;
317
+ on_failure: z.ZodEnum<{
318
+ none: "none";
319
+ half: "half";
320
+ full: "full";
321
+ }>;
322
+ applies_to: z.ZodNullable<z.ZodString>;
323
+ condition: z.ZodOptional<z.ZodString>;
324
+ subject: z.ZodOptional<z.ZodString>;
180
325
  }, z.core.$strip>], "kind">>;
181
326
  grants_asi: z.ZodNullable<z.ZodObject<{
182
327
  amount: z.ZodNumber;
@@ -191,4 +336,89 @@ export declare const featEntitySchema: z.ZodObject<{
191
336
  }, z.core.$strip>>;
192
337
  repeatable: z.ZodBoolean;
193
338
  choices: z.ZodArray<z.ZodType<import("../index.js").Choice, unknown, z.core.$ZodTypeInternals<import("../index.js").Choice, unknown>>>;
339
+ rendering_hint: z.ZodOptional<z.ZodString>;
340
+ additional_spells: z.ZodOptional<z.ZodArray<z.ZodObject<{
341
+ name: z.ZodOptional<z.ZodString>;
342
+ ability: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
343
+ choose: z.ZodArray<z.ZodString>;
344
+ }, z.core.$strip>]>>;
345
+ known: z.ZodOptional<z.ZodUnknown>;
346
+ innate: z.ZodOptional<z.ZodUnknown>;
347
+ prepared: z.ZodOptional<z.ZodUnknown>;
348
+ expanded: z.ZodOptional<z.ZodUnknown>;
349
+ resourceName: z.ZodOptional<z.ZodString>;
350
+ }, z.core.$strip>>>;
351
+ has_fluff: z.ZodOptional<z.ZodBoolean>;
352
+ has_fluff_images: z.ZodOptional<z.ZodBoolean>;
353
+ trait_tags: z.ZodOptional<z.ZodUnknown>;
354
+ optionalfeature_progression: z.ZodOptional<z.ZodArray<z.ZodObject<{
355
+ name: z.ZodString;
356
+ progression: z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodNumber>, z.ZodArray<z.ZodNumber>]>;
357
+ feature_type: z.ZodOptional<z.ZodArray<z.ZodString>>;
358
+ featureType: z.ZodOptional<z.ZodArray<z.ZodString>>;
359
+ category: z.ZodOptional<z.ZodArray<z.ZodString>>;
360
+ required: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
361
+ }, z.core.$strip>>>;
362
+ resources: z.ZodOptional<z.ZodArray<z.ZodObject<{
363
+ id: z.ZodString;
364
+ name: z.ZodString;
365
+ max_formula: z.ZodString;
366
+ scales_at: z.ZodOptional<z.ZodArray<z.ZodObject<{
367
+ level: z.ZodNumber;
368
+ max: z.ZodString;
369
+ }, z.core.$strict>>>;
370
+ die: z.ZodOptional<z.ZodObject<{
371
+ base: z.ZodString;
372
+ scaling: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
373
+ }, z.core.$strip>>;
374
+ reset: z.ZodEnum<{
375
+ "short-rest": "short-rest";
376
+ "long-rest": "long-rest";
377
+ either: "either";
378
+ dawn: "dawn";
379
+ dusk: "dusk";
380
+ turn: "turn";
381
+ round: "round";
382
+ custom: "custom";
383
+ }>;
384
+ consumes: z.ZodOptional<z.ZodObject<{
385
+ resource: z.ZodString;
386
+ amount: z.ZodNumber;
387
+ }, z.core.$strip>>;
388
+ recovery: z.ZodOptional<z.ZodArray<z.ZodObject<{
389
+ id: z.ZodString;
390
+ name: z.ZodString;
391
+ amount: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
392
+ action: z.ZodOptional<z.ZodEnum<{
393
+ action: "action";
394
+ "bonus-action": "bonus-action";
395
+ reaction: "reaction";
396
+ free: "free";
397
+ special: "special";
398
+ }>>;
399
+ uses: z.ZodOptional<z.ZodNumber>;
400
+ reset: z.ZodEnum<{
401
+ "short-rest": "short-rest";
402
+ "long-rest": "long-rest";
403
+ either: "either";
404
+ dawn: "dawn";
405
+ dusk: "dusk";
406
+ turn: "turn";
407
+ round: "round";
408
+ custom: "custom";
409
+ }>;
410
+ restores: z.ZodOptional<z.ZodEnum<{
411
+ uses: "uses";
412
+ "spell-slots": "spell-slots";
413
+ }>>;
414
+ }, z.core.$strip>>>;
415
+ }, z.core.$strip>>>;
416
+ action_cost: z.ZodOptional<z.ZodEnum<{
417
+ action: "action";
418
+ "bonus-action": "bonus-action";
419
+ reaction: "reaction";
420
+ free: "free";
421
+ special: "special";
422
+ }>>;
423
+ image: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
194
424
  }, z.core.$strip>;
@@ -1,8 +1,10 @@
1
1
  import {
2
2
  featEntitySchema
3
- } from "../chunk-Q5K6LWBZ.js";
4
- import "../chunk-NXSWH3AE.js";
5
- import "../chunk-NXR3BD2V.js";
3
+ } from "../chunk-RIXI5D3R.js";
4
+ import "../chunk-YLL2QXY2.js";
5
+ import "../chunk-T26ZVCL5.js";
6
+ import "../chunk-WPWOHGPI.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
  }