@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.
Files changed (81) hide show
  1. package/dist/background/background.codec.js +5 -5
  2. package/dist/background/background.parser.js +4 -4
  3. package/dist/background/background.schema.js +3 -3
  4. package/dist/{chunk-FDBWYMZK.js → chunk-2BI5NAXK.js} +2 -2
  5. package/dist/{chunk-COEOOQX2.js → chunk-3BMVVNCS.js} +1 -1
  6. package/dist/{chunk-LMBAEIP6.js → chunk-3PZHBLFG.js} +1 -1
  7. package/dist/{chunk-UXPGW4TI.js → chunk-4ISR76DH.js} +5 -0
  8. package/dist/{chunk-JRDPUDT5.js → chunk-63XQXPZL.js} +1 -1
  9. package/dist/{chunk-XGOFP7AQ.js → chunk-7MRW4RTH.js} +1 -1
  10. package/dist/{chunk-ZONJ66NE.js → chunk-7WNQJAZW.js} +20 -3
  11. package/dist/{chunk-6PKV5V2H.js → chunk-A6YL53NC.js} +1 -1
  12. package/dist/{chunk-HB7XZXDK.js → chunk-ABQ6ZWAF.js} +1 -1
  13. package/dist/{chunk-R3VAKWKW.js → chunk-B4TQTJVC.js} +1 -1
  14. package/dist/{chunk-RIXI5D3R.js → chunk-BJFL4KYG.js} +3 -3
  15. package/dist/{chunk-US5IKYCW.js → chunk-BS355LND.js} +1 -1
  16. package/dist/{chunk-XBQMCEI2.js → chunk-CQAL67R3.js} +1 -1
  17. package/dist/{chunk-YJJTISBN.js → chunk-DTCR4DBF.js} +3 -3
  18. package/dist/{chunk-I2NDWFDD.js → chunk-E4KG7HXO.js} +9 -0
  19. package/dist/{chunk-XQCSGNXE.js → chunk-EYZCCWG2.js} +51 -2
  20. package/dist/{chunk-5U5FFFA3.js → chunk-H4VEMVOO.js} +1 -1
  21. package/dist/{chunk-T26ZVCL5.js → chunk-IWRVOCT5.js} +1 -1
  22. package/dist/{chunk-ESS46GR4.js → chunk-JKLRBILX.js} +1 -1
  23. package/dist/{chunk-4FWNK4FD.js → chunk-JOVMV2X5.js} +3 -3
  24. package/dist/{chunk-JJ46T5XX.js → chunk-KPEJMNRD.js} +5 -0
  25. package/dist/{chunk-H7KBLR4X.js → chunk-MT4RWROQ.js} +2 -2
  26. package/dist/{chunk-IMZFOOVL.js → chunk-MYW7AOUE.js} +1 -1
  27. package/dist/{chunk-5XMQPTHD.js → chunk-NNAQ4KQF.js} +1 -1
  28. package/dist/{chunk-D5U7GMPX.js → chunk-RWZTGMSN.js} +1 -1
  29. package/dist/{chunk-YLL2QXY2.js → chunk-UA3I2YSO.js} +4 -0
  30. package/dist/{chunk-HJ5EEZ47.js → chunk-ULCQ73LA.js} +1 -1
  31. package/dist/{chunk-OSQFPGLM.js → chunk-V373TRJE.js} +4 -2
  32. package/dist/{chunk-WPWOHGPI.js → chunk-X3D6LXUU.js} +13 -0
  33. package/dist/class/class.codec.js +7 -7
  34. package/dist/class/class.parser.js +6 -6
  35. package/dist/class/class.schema.d.ts +5 -0
  36. package/dist/class/class.schema.js +5 -5
  37. package/dist/feat/feat.codec.js +6 -6
  38. package/dist/feat/feat.parser.js +5 -5
  39. package/dist/feat/feat.schema.d.ts +14 -0
  40. package/dist/feat/feat.schema.js +4 -4
  41. package/dist/index.js +24 -24
  42. package/dist/monster/monster.parser.js +6 -6
  43. package/dist/monster/monster.schema.js +5 -5
  44. package/dist/optional-feature/optional-feature.codec.js +5 -5
  45. package/dist/optional-feature/optional-feature.parser.js +4 -4
  46. package/dist/optional-feature/optional-feature.schema.d.ts +32 -0
  47. package/dist/optional-feature/optional-feature.schema.js +3 -3
  48. package/dist/pc/pc.decision-engine.js +3 -3
  49. package/dist/pc/pc.equipment.d.ts +1 -1
  50. package/dist/pc/pc.equipment.js +1 -1
  51. package/dist/pc/pc.feature-effects.d.ts +9 -0
  52. package/dist/pc/pc.feature-effects.js +1 -1
  53. package/dist/pc/pc.parser.js +1 -1
  54. package/dist/pc/pc.proficiencies.js +3 -3
  55. package/dist/pc/pc.recalc.js +6 -6
  56. package/dist/pc/pc.resolver.d.ts +14 -0
  57. package/dist/pc/pc.resolver.js +5 -3
  58. package/dist/pc/pc.resource-seed.js +1 -1
  59. package/dist/pc/pc.resources.d.ts +6 -0
  60. package/dist/pc/pc.resources.js +1 -1
  61. package/dist/pc/pc.rest.js +1 -1
  62. package/dist/pc/pc.schema.d.ts +1 -0
  63. package/dist/pc/pc.schema.js +1 -1
  64. package/dist/pc/pc.types.d.ts +8 -0
  65. package/dist/race/race.codec.js +7 -7
  66. package/dist/race/race.parser.js +6 -6
  67. package/dist/race/race.schema.js +5 -5
  68. package/dist/schemas/choice-schema.js +2 -2
  69. package/dist/schemas/feature-effect-schema.d.ts +9 -0
  70. package/dist/schemas/feature-effect-schema.js +1 -1
  71. package/dist/schemas/feature-schema.js +4 -4
  72. package/dist/schemas/resource-schema.d.ts +5 -0
  73. package/dist/schemas/resource-schema.js +1 -1
  74. package/dist/subclass/subclass.codec.js +7 -7
  75. package/dist/subclass/subclass.parser.js +6 -6
  76. package/dist/subclass/subclass.schema.d.ts +5 -0
  77. package/dist/subclass/subclass.schema.js +5 -5
  78. package/dist/types/feature-effect.d.ts +7 -0
  79. package/dist/types/optional-feature.types.d.ts +2 -0
  80. package/dist/types/resource.d.ts +5 -0
  81. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  choiceSchema
3
- } from "../chunk-T26ZVCL5.js";
4
- import "../chunk-WPWOHGPI.js";
3
+ } from "../chunk-IWRVOCT5.js";
4
+ import "../chunk-X3D6LXUU.js";
5
5
  export {
6
6
  choiceSchema
7
7
  };
@@ -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,6 +1,6 @@
1
1
  import {
2
2
  featureEffectSchema
3
- } from "../chunk-WPWOHGPI.js";
3
+ } from "../chunk-X3D6LXUU.js";
4
4
  export {
5
5
  featureEffectSchema
6
6
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  featureObjectSchema,
3
3
  featureSchema
4
- } from "../chunk-4FWNK4FD.js";
4
+ } from "../chunk-JOVMV2X5.js";
5
5
  import "../chunk-WYGD2UGN.js";
6
- import "../chunk-YLL2QXY2.js";
7
- import "../chunk-T26ZVCL5.js";
8
- import "../chunk-WPWOHGPI.js";
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;
@@ -3,7 +3,7 @@ import {
3
3
  resetTriggerEnum,
4
4
  resourceConsumptionSchema,
5
5
  resourceSchema
6
- } from "../chunk-YLL2QXY2.js";
6
+ } from "../chunk-UA3I2YSO.js";
7
7
  export {
8
8
  actionCostEnum,
9
9
  resetTriggerEnum,
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  subclassCodec
3
- } from "../chunk-R3VAKWKW.js";
4
- import "../chunk-HB7XZXDK.js";
5
- import "../chunk-H7KBLR4X.js";
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-4FWNK4FD.js";
9
+ import "../chunk-JOVMV2X5.js";
10
10
  import "../chunk-WYGD2UGN.js";
11
- import "../chunk-YLL2QXY2.js";
12
- import "../chunk-T26ZVCL5.js";
13
- import "../chunk-WPWOHGPI.js";
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-HB7XZXDK.js";
4
- import "../chunk-H7KBLR4X.js";
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-4FWNK4FD.js";
8
+ import "../chunk-JOVMV2X5.js";
9
9
  import "../chunk-WYGD2UGN.js";
10
- import "../chunk-YLL2QXY2.js";
11
- import "../chunk-T26ZVCL5.js";
12
- import "../chunk-WPWOHGPI.js";
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-H7KBLR4X.js";
3
+ } from "../chunk-MT4RWROQ.js";
4
4
  import "../chunk-23LZLBJK.js";
5
5
  import "../chunk-CJYCVNW2.js";
6
- import "../chunk-4FWNK4FD.js";
6
+ import "../chunk-JOVMV2X5.js";
7
7
  import "../chunk-WYGD2UGN.js";
8
- import "../chunk-YLL2QXY2.js";
9
- import "../chunk-T26ZVCL5.js";
10
- import "../chunk-WPWOHGPI.js";
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;
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archivist-gg/dnd5e",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
4
4
  "license": "MIT AND CC-BY-4.0",
5
5
  "type": "module",
6
6
  "publishConfig": {