5etools-utils 0.12.7 → 0.12.9

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.
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "util-copy.json",
4
4
  "title": "Util: Copy",
5
- "version": "1.0.0",
5
+ "version": "1.0.1",
6
6
  "$defs": {
7
7
  "_mod_renameArr_rename": {
8
8
  "type": "object",
@@ -34,6 +34,78 @@
34
34
  },
35
35
  "additionalProperties": false
36
36
  },
37
+ "_mod_proficiency_levels": {
38
+ "description": "1: Proficient\n 2: Expertise",
39
+ "type": "integer",
40
+ "enum": [
41
+ 1,
42
+ 2
43
+ ]
44
+ },
45
+ "_mod_senseObject": {
46
+ "type": "object",
47
+ "properties": {
48
+ "type": {
49
+ "type": "string",
50
+ "enum": [
51
+ "blindsight",
52
+ "darkvision",
53
+ "tremorsense",
54
+ "truesight"
55
+ ]
56
+ },
57
+ "range": {
58
+ "type": "integer",
59
+ "minimum": 0
60
+ }
61
+ },
62
+ "required": [
63
+ "type",
64
+ "range"
65
+ ],
66
+ "additionalProperties": false
67
+ },
68
+ "_mod_additionalSpellReplacementObject": {
69
+ "type": "object",
70
+ "patternProperties": {
71
+ "^(0|[1-9]e?)$": {
72
+ "type": "array",
73
+ "items": {
74
+ "type": "object",
75
+ "properties": {
76
+ "replace": {
77
+ "type": "string"
78
+ },
79
+ "with": {
80
+ "type": "string"
81
+ }
82
+ },
83
+ "required": [
84
+ "replace",
85
+ "with"
86
+ ],
87
+ "additionalProperties": false
88
+ },
89
+ "minItems": 1,
90
+ "uniqueItems": true
91
+ }
92
+ },
93
+ "additionalProperties": false
94
+ },
95
+ "_mod_additionalSpellAddRemoveObject": {
96
+ "type": "object",
97
+ "patternProperties": {
98
+ "^(0|[1-9]e?)$": {
99
+ "type": "array",
100
+ "items": {
101
+ "type": "string"
102
+ },
103
+ "minItems": 1,
104
+ "uniqueItems": true
105
+ }
106
+ },
107
+ "additionalProperties": false
108
+ },
37
109
  "copyModifier": {
38
110
  "anyOf": [
39
111
  {
@@ -467,15 +539,16 @@
467
539
  "const": "replaceSpells"
468
540
  },
469
541
  "spells": {
470
- "type": "object"
542
+ "$ref": "#/$defs/_mod_additionalSpellReplacementObject"
471
543
  },
472
544
  "daily": {
473
- "type": "object"
545
+ "$ref": "#/$defs/_mod_additionalSpellReplacementObject"
474
546
  }
475
547
  },
476
548
  "required": [
477
549
  "mode"
478
550
  ],
551
+ "minProperties": 2,
479
552
  "additionalProperties": false
480
553
  },
481
554
  {
@@ -485,10 +558,10 @@
485
558
  "const": "removeSpells"
486
559
  },
487
560
  "spells": {
488
- "type": "object"
561
+ "$ref": "#/$defs/_mod_additionalSpellAddRemoveObject"
489
562
  },
490
563
  "daily": {
491
- "type": "object"
564
+ "$ref": "#/$defs/_mod_additionalSpellAddRemoveObject"
492
565
  }
493
566
  },
494
567
  "required": [
@@ -504,22 +577,47 @@
504
577
  "const": "addSpells"
505
578
  },
506
579
  "spells": {
507
- "type": "object"
580
+ "type": "object",
581
+ "patternProperties": {
582
+ "^(0|[1-9]e?)$": {
583
+ "type": "object",
584
+ "properties": {
585
+ "spells": {
586
+ "type": "array",
587
+ "items": {
588
+ "type": "string"
589
+ },
590
+ "minItems": 1,
591
+ "uniqueItems": true
592
+ }
593
+ },
594
+ "required": [
595
+ "spells"
596
+ ],
597
+ "additionalProperties": false
598
+ }
599
+ },
600
+ "additionalProperties": false
508
601
  },
509
602
  "will": {
510
- "type": "array"
603
+ "type": "array",
604
+ "items": {
605
+ "type": "string"
606
+ },
607
+ "minItems": 1,
608
+ "uniqueItems": true
511
609
  },
512
610
  "daily": {
513
- "type": "object"
611
+ "$ref": "#/$defs/_mod_additionalSpellAddRemoveObject"
514
612
  },
515
613
  "weekly": {
516
- "type": "object"
614
+ "$ref": "#/$defs/_mod_additionalSpellAddRemoveObject"
517
615
  },
518
616
  "monthly": {
519
- "type": "object"
617
+ "$ref": "#/$defs/_mod_additionalSpellAddRemoveObject"
520
618
  },
521
619
  "yearly": {
522
- "type": "object"
620
+ "$ref": "#/$defs/_mod_additionalSpellAddRemoveObject"
523
621
  }
524
622
  },
525
623
  "required": [
@@ -535,7 +633,17 @@
535
633
  "const": "addSkills"
536
634
  },
537
635
  "skills": {
538
- "type": "object"
636
+ "type": "object",
637
+ "propertyNames": {
638
+ "$ref": "util.json#/$defs/skillNameLower"
639
+ },
640
+ "patternProperties": {
641
+ "": {
642
+ "$ref": "#/$defs/_mod_proficiency_levels"
643
+ }
644
+ },
645
+ "minProperties": 1,
646
+ "additionalProperties": false
539
647
  }
540
648
  },
541
649
  "required": [
@@ -551,7 +659,25 @@
551
659
  "const": "addSaves"
552
660
  },
553
661
  "saves": {
554
- "type": "object"
662
+ "type": "object",
663
+ "propertyNames": {
664
+ "type": "string",
665
+ "enum": [
666
+ "str",
667
+ "dex",
668
+ "con",
669
+ "int",
670
+ "wis",
671
+ "cha"
672
+ ]
673
+ },
674
+ "patternProperties": {
675
+ "": {
676
+ "$ref": "#/$defs/_mod_proficiency_levels"
677
+ }
678
+ },
679
+ "minProperties": 1,
680
+ "additionalProperties": false
555
681
  }
556
682
  },
557
683
  "required": [
@@ -567,7 +693,7 @@
567
693
  "const": "addAllSkills"
568
694
  },
569
695
  "skills": {
570
- "type": "integer"
696
+ "$ref": "#/$defs/_mod_proficiency_levels"
571
697
  }
572
698
  },
573
699
  "required": [
@@ -583,7 +709,7 @@
583
709
  "const": "addAllSaves"
584
710
  },
585
711
  "saves": {
586
- "type": "integer"
712
+ "$ref": "#/$defs/_mod_proficiency_levels"
587
713
  }
588
714
  },
589
715
  "required": [
@@ -601,10 +727,15 @@
601
727
  "senses": {
602
728
  "anyOf": [
603
729
  {
604
- "type": "object"
730
+ "$ref": "#/$defs/_mod_senseObject"
605
731
  },
606
732
  {
607
- "type": "array"
733
+ "type": "array",
734
+ "items": {
735
+ "$ref": "#/$defs/_mod_senseObject"
736
+ },
737
+ "minItems": 1,
738
+ "uniqueItems": true
608
739
  }
609
740
  ]
610
741
  }
@@ -697,7 +828,7 @@
697
828
  "const": "maxSize"
698
829
  },
699
830
  "max": {
700
- "type": "string"
831
+ "$ref": "util.json#/$defs/size"
701
832
  }
702
833
  },
703
834
  "required": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.29",
3
+ "version": "1.21.30",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -1096,9 +1096,11 @@
1096
1096
  "miscTags": {
1097
1097
  "type": "array",
1098
1098
  "items": {
1099
- "description": "AOE: Has Areas of Effect\n HPR: Has HP Reduction\n MW: Has Weapon Attacks, Melee\n RW: Has Weapon Attacks, Ranged\n RCH: Has Reach Attacks\n MLW: Has Melee Weapons\n RNG: Has Ranged Weapons\n THW: Has Thrown Weapons",
1099
+ "description": "AOE: Has Areas of Effect\n CUR: Inflicts Curse\n DIS: Inflicts Disease\n HPR: Has HP Reduction\n MW: Has Weapon Attacks, Melee\n RW: Has Weapon Attacks, Ranged\n RCH: Has Reach Attacks\n MLW: Has Melee Weapons\n RNG: Has Ranged Weapons\n THW: Has Thrown Weapons",
1100
1100
  "enum": [
1101
1101
  "AOE",
1102
+ "CUR",
1103
+ "DIS",
1102
1104
  "HPR",
1103
1105
  "MW",
1104
1106
  "RW",
@@ -2180,9 +2182,11 @@
2180
2182
  "miscTags": {
2181
2183
  "type": "array",
2182
2184
  "items": {
2183
- "description": "AOE: Has Areas of Effect\n HPR: Has HP Reduction\n MW: Has Weapon Attacks, Melee\n RW: Has Weapon Attacks, Ranged\n RCH: Has Reach Attacks\n MLW: Has Melee Weapons\n RNG: Has Ranged Weapons\n THW: Has Thrown Weapons",
2185
+ "description": "AOE: Has Areas of Effect\n CUR: Inflicts Curse\n DIS: Inflicts Disease\n HPR: Has HP Reduction\n MW: Has Weapon Attacks, Melee\n RW: Has Weapon Attacks, Ranged\n RCH: Has Reach Attacks\n MLW: Has Melee Weapons\n RNG: Has Ranged Weapons\n THW: Has Thrown Weapons",
2184
2186
  "enum": [
2185
2187
  "AOE",
2188
+ "CUR",
2189
+ "DIS",
2186
2190
  "HPR",
2187
2191
  "MW",
2188
2192
  "RW",
@@ -3269,9 +3273,11 @@
3269
3273
  "miscTags": {
3270
3274
  "type": "array",
3271
3275
  "items": {
3272
- "description": "AOE: Has Areas of Effect\n HPR: Has HP Reduction\n MW: Has Weapon Attacks, Melee\n RW: Has Weapon Attacks, Ranged\n RCH: Has Reach Attacks\n MLW: Has Melee Weapons\n RNG: Has Ranged Weapons\n THW: Has Thrown Weapons",
3276
+ "description": "AOE: Has Areas of Effect\n CUR: Inflicts Curse\n DIS: Inflicts Disease\n HPR: Has HP Reduction\n MW: Has Weapon Attacks, Melee\n RW: Has Weapon Attacks, Ranged\n RCH: Has Reach Attacks\n MLW: Has Melee Weapons\n RNG: Has Ranged Weapons\n THW: Has Thrown Weapons",
3273
3277
  "enum": [
3274
3278
  "AOE",
3279
+ "CUR",
3280
+ "DIS",
3275
3281
  "HPR",
3276
3282
  "MW",
3277
3283
  "RW",
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "util-copy.json",
4
4
  "title": "Util: Copy",
5
- "version": "1.0.0",
5
+ "version": "1.0.1",
6
6
  "$defs": {
7
7
  "_mod_renameArr_rename": {
8
8
  "type": "object",
@@ -34,6 +34,78 @@
34
34
  },
35
35
  "additionalProperties": false
36
36
  },
37
+ "_mod_proficiency_levels": {
38
+ "description": "1: Proficient\n 2: Expertise",
39
+ "type": "integer",
40
+ "enum": [
41
+ 1,
42
+ 2
43
+ ]
44
+ },
45
+ "_mod_senseObject": {
46
+ "type": "object",
47
+ "properties": {
48
+ "type": {
49
+ "type": "string",
50
+ "enum": [
51
+ "blindsight",
52
+ "darkvision",
53
+ "tremorsense",
54
+ "truesight"
55
+ ]
56
+ },
57
+ "range": {
58
+ "type": "integer",
59
+ "minimum": 0
60
+ }
61
+ },
62
+ "required": [
63
+ "type",
64
+ "range"
65
+ ],
66
+ "additionalProperties": false
67
+ },
68
+ "_mod_additionalSpellReplacementObject": {
69
+ "type": "object",
70
+ "patternProperties": {
71
+ "^(0|[1-9]e?)$": {
72
+ "type": "array",
73
+ "items": {
74
+ "type": "object",
75
+ "properties": {
76
+ "replace": {
77
+ "type": "string"
78
+ },
79
+ "with": {
80
+ "type": "string"
81
+ }
82
+ },
83
+ "required": [
84
+ "replace",
85
+ "with"
86
+ ],
87
+ "additionalProperties": false
88
+ },
89
+ "minItems": 1,
90
+ "uniqueItems": true
91
+ }
92
+ },
93
+ "additionalProperties": false
94
+ },
95
+ "_mod_additionalSpellAddRemoveObject": {
96
+ "type": "object",
97
+ "patternProperties": {
98
+ "^(0|[1-9]e?)$": {
99
+ "type": "array",
100
+ "items": {
101
+ "type": "string"
102
+ },
103
+ "minItems": 1,
104
+ "uniqueItems": true
105
+ }
106
+ },
107
+ "additionalProperties": false
108
+ },
37
109
  "copyModifier": {
38
110
  "anyOf": [
39
111
  {
@@ -467,15 +539,16 @@
467
539
  "const": "replaceSpells"
468
540
  },
469
541
  "spells": {
470
- "type": "object"
542
+ "$ref": "#/$defs/_mod_additionalSpellReplacementObject"
471
543
  },
472
544
  "daily": {
473
- "type": "object"
545
+ "$ref": "#/$defs/_mod_additionalSpellReplacementObject"
474
546
  }
475
547
  },
476
548
  "required": [
477
549
  "mode"
478
550
  ],
551
+ "minProperties": 2,
479
552
  "additionalProperties": false
480
553
  },
481
554
  {
@@ -485,10 +558,10 @@
485
558
  "const": "removeSpells"
486
559
  },
487
560
  "spells": {
488
- "type": "object"
561
+ "$ref": "#/$defs/_mod_additionalSpellAddRemoveObject"
489
562
  },
490
563
  "daily": {
491
- "type": "object"
564
+ "$ref": "#/$defs/_mod_additionalSpellAddRemoveObject"
492
565
  }
493
566
  },
494
567
  "required": [
@@ -504,22 +577,47 @@
504
577
  "const": "addSpells"
505
578
  },
506
579
  "spells": {
507
- "type": "object"
580
+ "type": "object",
581
+ "patternProperties": {
582
+ "^(0|[1-9]e?)$": {
583
+ "type": "object",
584
+ "properties": {
585
+ "spells": {
586
+ "type": "array",
587
+ "items": {
588
+ "type": "string"
589
+ },
590
+ "minItems": 1,
591
+ "uniqueItems": true
592
+ }
593
+ },
594
+ "required": [
595
+ "spells"
596
+ ],
597
+ "additionalProperties": false
598
+ }
599
+ },
600
+ "additionalProperties": false
508
601
  },
509
602
  "will": {
510
- "type": "array"
603
+ "type": "array",
604
+ "items": {
605
+ "type": "string"
606
+ },
607
+ "minItems": 1,
608
+ "uniqueItems": true
511
609
  },
512
610
  "daily": {
513
- "type": "object"
611
+ "$ref": "#/$defs/_mod_additionalSpellAddRemoveObject"
514
612
  },
515
613
  "weekly": {
516
- "type": "object"
614
+ "$ref": "#/$defs/_mod_additionalSpellAddRemoveObject"
517
615
  },
518
616
  "monthly": {
519
- "type": "object"
617
+ "$ref": "#/$defs/_mod_additionalSpellAddRemoveObject"
520
618
  },
521
619
  "yearly": {
522
- "type": "object"
620
+ "$ref": "#/$defs/_mod_additionalSpellAddRemoveObject"
523
621
  }
524
622
  },
525
623
  "required": [
@@ -535,7 +633,17 @@
535
633
  "const": "addSkills"
536
634
  },
537
635
  "skills": {
538
- "type": "object"
636
+ "type": "object",
637
+ "propertyNames": {
638
+ "$ref": "util.json#/$defs/skillNameLower"
639
+ },
640
+ "patternProperties": {
641
+ "": {
642
+ "$ref": "#/$defs/_mod_proficiency_levels"
643
+ }
644
+ },
645
+ "minProperties": 1,
646
+ "additionalProperties": false
539
647
  }
540
648
  },
541
649
  "required": [
@@ -551,7 +659,25 @@
551
659
  "const": "addSaves"
552
660
  },
553
661
  "saves": {
554
- "type": "object"
662
+ "type": "object",
663
+ "propertyNames": {
664
+ "type": "string",
665
+ "enum": [
666
+ "str",
667
+ "dex",
668
+ "con",
669
+ "int",
670
+ "wis",
671
+ "cha"
672
+ ]
673
+ },
674
+ "patternProperties": {
675
+ "": {
676
+ "$ref": "#/$defs/_mod_proficiency_levels"
677
+ }
678
+ },
679
+ "minProperties": 1,
680
+ "additionalProperties": false
555
681
  }
556
682
  },
557
683
  "required": [
@@ -567,7 +693,7 @@
567
693
  "const": "addAllSkills"
568
694
  },
569
695
  "skills": {
570
- "type": "integer"
696
+ "$ref": "#/$defs/_mod_proficiency_levels"
571
697
  }
572
698
  },
573
699
  "required": [
@@ -583,7 +709,7 @@
583
709
  "const": "addAllSaves"
584
710
  },
585
711
  "saves": {
586
- "type": "integer"
712
+ "$ref": "#/$defs/_mod_proficiency_levels"
587
713
  }
588
714
  },
589
715
  "required": [
@@ -601,10 +727,15 @@
601
727
  "senses": {
602
728
  "anyOf": [
603
729
  {
604
- "type": "object"
730
+ "$ref": "#/$defs/_mod_senseObject"
605
731
  },
606
732
  {
607
- "type": "array"
733
+ "type": "array",
734
+ "items": {
735
+ "$ref": "#/$defs/_mod_senseObject"
736
+ },
737
+ "minItems": 1,
738
+ "uniqueItems": true
608
739
  }
609
740
  ]
610
741
  }
@@ -697,7 +828,7 @@
697
828
  "const": "maxSize"
698
829
  },
699
830
  "max": {
700
- "type": "string"
831
+ "$ref": "util.json#/$defs/size"
701
832
  }
702
833
  },
703
834
  "required": [