5etools-utils 0.12.43 → 0.12.45

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "5etools-utils",
3
- "version": "0.12.43",
3
+ "version": "0.12.45",
4
4
  "description": "Shared utilities for the 5etools ecosystem.",
5
5
  "type": "module",
6
6
  "main": "lib/Api.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.39",
3
+ "version": "1.21.40",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -1020,6 +1020,7 @@
1020
1020
  "Antimagic Susceptibility",
1021
1021
  "Beast of Burden",
1022
1022
  "Brute",
1023
+ "Camouflage",
1023
1024
  "Charge",
1024
1025
  "Damage Absorption",
1025
1026
  "Death Burst",
@@ -2278,6 +2279,7 @@
2278
2279
  "Antimagic Susceptibility",
2279
2280
  "Beast of Burden",
2280
2281
  "Brute",
2282
+ "Camouflage",
2281
2283
  "Charge",
2282
2284
  "Damage Absorption",
2283
2285
  "Death Burst",
@@ -3541,6 +3543,7 @@
3541
3543
  "Antimagic Susceptibility",
3542
3544
  "Beast of Burden",
3543
3545
  "Brute",
3546
+ "Camouflage",
3544
3547
  "Charge",
3545
3548
  "Damage Absorption",
3546
3549
  "Death Burst",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "races.json",
4
- "version": "1.12.8",
4
+ "version": "1.12.9",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "sharedData": {
@@ -35,6 +35,9 @@
35
35
  "reprintedAs": {
36
36
  "$ref": "util.json#/$defs/reprintedAs"
37
37
  },
38
+ "edition": {
39
+ "$ref": "util-edition.json#/$defs/edition"
40
+ },
38
41
  "ability": {
39
42
  "$ref": "util.json#/$defs/abilityScores"
40
43
  },
@@ -298,6 +301,9 @@
298
301
  "reprintedAs": {
299
302
  "$ref": "util.json#/$defs/reprintedAs"
300
303
  },
304
+ "edition": {
305
+ "$ref": "util-edition.json#/$defs/edition"
306
+ },
301
307
  "ability": {
302
308
  "$ref": "util.json#/$defs/abilityScores"
303
309
  },
@@ -643,6 +649,9 @@
643
649
  "reprintedAs": {
644
650
  "$ref": "util.json#/$defs/reprintedAs"
645
651
  },
652
+ "edition": {
653
+ "$ref": "util-edition.json#/$defs/edition"
654
+ },
646
655
  "ability": {
647
656
  "$ref": "util.json#/$defs/abilityScores"
648
657
  },
@@ -910,6 +919,9 @@
910
919
  "reprintedAs": {
911
920
  "$ref": "util.json#/$defs/reprintedAs"
912
921
  },
922
+ "edition": {
923
+ "$ref": "util-edition.json#/$defs/edition"
924
+ },
913
925
  "ability": {
914
926
  "$ref": "util.json#/$defs/abilityScores"
915
927
  },
@@ -1183,6 +1195,9 @@
1183
1195
  "reprintedAs": {
1184
1196
  "$ref": "util.json#/$defs/reprintedAs"
1185
1197
  },
1198
+ "edition": {
1199
+ "$ref": "util-edition.json#/$defs/edition"
1200
+ },
1186
1201
  "ability": {
1187
1202
  "$ref": "util.json#/$defs/abilityScores"
1188
1203
  },
@@ -1462,6 +1477,9 @@
1462
1477
  "reprintedAs": {
1463
1478
  "$ref": "util.json#/$defs/reprintedAs"
1464
1479
  },
1480
+ "edition": {
1481
+ "$ref": "util-edition.json#/$defs/edition"
1482
+ },
1465
1483
  "ability": {
1466
1484
  "$ref": "util.json#/$defs/abilityScores"
1467
1485
  },
@@ -5,6 +5,7 @@
5
5
  "title": "Util: Edition",
6
6
  "$defs": {
7
7
  "edition": {
8
+ "description": "A context-sensitive behaviour hint. Generally, entities marked with `\"edition\": \"one\"` will not be modified (as they are assumed to be up-to-date) prior to display/use, and entities lacking an `\"edition\"` or using `\"edition\": \"classic\"` may be modified to better suit modern rules. For example:\n- Classes/subclasses: an edition mismatch between class and subclass will prompt the renderer to add a note that the subclass is from a different game edition, and that feature levels may have to be adjusted accordingly (notably, when rendering synthetic subclass copies)\n- Plutonium, when using the \"Modern (2024)\" rules version: non-\"one\" species will be stripped of their ability scores; non-\"one\" backgrounds will gain extra ability scores; etc.",
8
9
  "type": "string",
9
10
  "enum": [
10
11
  "classic",
@@ -3,7 +3,7 @@
3
3
  "$id": "util.json",
4
4
  "title": "Util",
5
5
  "description": "Utility definitions to be used in other schemas.",
6
- "version": "1.17.6",
6
+ "version": "1.17.10",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -230,33 +230,41 @@
230
230
  ]
231
231
  },
232
232
  "languageNameLower": {
233
- "type": "string",
234
- "enum": [
235
- "abyssal",
236
- "aquan",
237
- "auran",
238
- "celestial",
239
- "common",
240
- "common sign language",
241
- "deep speech",
242
- "draconic",
243
- "druidic",
244
- "dwarvish",
245
- "elvish",
246
- "giant",
247
- "gith",
248
- "gnomish",
249
- "goblin",
250
- "halfling",
251
- "ignan",
252
- "infernal",
253
- "orc",
254
- "other",
255
- "primordial",
256
- "sylvan",
257
- "terran",
258
- "thieves' cant",
259
- "undercommon"
233
+ "oneOf": [
234
+ {
235
+ "type": "string",
236
+ "enum": [
237
+ "abyssal",
238
+ "aquan",
239
+ "auran",
240
+ "celestial",
241
+ "common",
242
+ "common sign language",
243
+ "deep speech",
244
+ "draconic",
245
+ "druidic",
246
+ "dwarvish",
247
+ "elvish",
248
+ "giant",
249
+ "gith",
250
+ "gnomish",
251
+ "goblin",
252
+ "halfling",
253
+ "ignan",
254
+ "infernal",
255
+ "orc",
256
+ "other",
257
+ "primordial",
258
+ "sylvan",
259
+ "terran",
260
+ "thieves' cant",
261
+ "undercommon"
262
+ ]
263
+ },
264
+ {
265
+ "type": "string",
266
+ "pattern": "^[^|]+\\|.+$"
267
+ }
260
268
  ]
261
269
  },
262
270
  "languageProficiencies": {
@@ -273,6 +281,9 @@
273
281
  "anyExotic": {
274
282
  "type": "integer"
275
283
  },
284
+ "anyRare": {
285
+ "type": "integer"
286
+ },
276
287
  "abyssal": {
277
288
  "const": true
278
289
  },
@@ -365,8 +376,11 @@
365
376
  "additionalProperties": false
366
377
  }
367
378
  },
368
- "additionalProperties": {
369
- "const": true
379
+ "additionalProperties": false,
380
+ "patternProperties": {
381
+ "^[^|]+\\|.+$": {
382
+ "const": true
383
+ }
370
384
  }
371
385
  },
372
386
  "uniqueItems": true,
@@ -492,6 +506,9 @@
492
506
  "forgery kit": {
493
507
  "const": true
494
508
  },
509
+ "anyGamingSet": {
510
+ "type": "integer"
511
+ },
495
512
  "gaming set": {
496
513
  "const": true
497
514
  },
@@ -725,6 +742,9 @@
725
742
  "anyExoticLanguage": {
726
743
  "type": "integer"
727
744
  },
745
+ "anyRareLanguage": {
746
+ "type": "integer"
747
+ },
728
748
  "abyssal": {
729
749
  "const": true
730
750
  },
@@ -869,6 +889,9 @@
869
889
  "forgery kit": {
870
890
  "const": true
871
891
  },
892
+ "anyGamingSet": {
893
+ "type": "integer"
894
+ },
872
895
  "gaming set": {
873
896
  "const": true
874
897
  },
@@ -1030,7 +1053,8 @@
1030
1053
  "anyMusicalInstrument",
1031
1054
  "anyLanguage",
1032
1055
  "anyStandardLanguage",
1033
- "anyExoticLanguage"
1056
+ "anyExoticLanguage",
1057
+ "anyRareLanguage"
1034
1058
  ]
1035
1059
  }
1036
1060
  ]
@@ -1103,123 +1127,6 @@
1103
1127
  "improvised": {
1104
1128
  "const": true
1105
1129
  },
1106
- "battleaxe|phb": {
1107
- "const": true
1108
- },
1109
- "club|phb": {
1110
- "const": true
1111
- },
1112
- "dagger|phb": {
1113
- "const": true
1114
- },
1115
- "flail|phb": {
1116
- "const": true
1117
- },
1118
- "glaive|phb": {
1119
- "const": true
1120
- },
1121
- "greataxe|phb": {
1122
- "const": true
1123
- },
1124
- "greatclub|phb": {
1125
- "const": true
1126
- },
1127
- "greatsword|phb": {
1128
- "const": true
1129
- },
1130
- "halberd|phb": {
1131
- "const": true
1132
- },
1133
- "handaxe|phb": {
1134
- "const": true
1135
- },
1136
- "javelin|phb": {
1137
- "const": true
1138
- },
1139
- "lance|phb": {
1140
- "const": true
1141
- },
1142
- "light hammer|phb": {
1143
- "const": true
1144
- },
1145
- "longsword|phb": {
1146
- "const": true
1147
- },
1148
- "mace|phb": {
1149
- "const": true
1150
- },
1151
- "maul|phb": {
1152
- "const": true
1153
- },
1154
- "morningstar|phb": {
1155
- "const": true
1156
- },
1157
- "pike|phb": {
1158
- "const": true
1159
- },
1160
- "quarterstaff|phb": {
1161
- "const": true
1162
- },
1163
- "rapier|phb": {
1164
- "const": true
1165
- },
1166
- "scimitar|phb": {
1167
- "const": true
1168
- },
1169
- "shortsword|phb": {
1170
- "const": true
1171
- },
1172
- "sickle|phb": {
1173
- "const": true
1174
- },
1175
- "spear|phb": {
1176
- "const": true
1177
- },
1178
- "staff|phb": {
1179
- "const": true
1180
- },
1181
- "trident|phb": {
1182
- "const": true
1183
- },
1184
- "war pick|phb": {
1185
- "const": true
1186
- },
1187
- "warhammer|phb": {
1188
- "const": true
1189
- },
1190
- "whip|phb": {
1191
- "const": true
1192
- },
1193
- "blowgun|phb": {
1194
- "const": true
1195
- },
1196
- "dart|phb": {
1197
- "const": true
1198
- },
1199
- "hand crossbow|phb": {
1200
- "const": true
1201
- },
1202
- "heavy crossbow|phb": {
1203
- "const": true
1204
- },
1205
- "light crossbow|phb": {
1206
- "const": true
1207
- },
1208
- "longbow|phb": {
1209
- "const": true
1210
- },
1211
- "net|phb": {
1212
- "const": true
1213
- },
1214
- "shortbow|phb": {
1215
- "const": true
1216
- },
1217
- "sling|phb": {
1218
- "const": true
1219
- },
1220
- "double-bladed scimitar|erlw": {
1221
- "const": true
1222
- },
1223
1130
  "choose": {
1224
1131
  "type": "object",
1225
1132
  "properties": {
@@ -1250,6 +1157,11 @@
1250
1157
  "additionalProperties": false
1251
1158
  }
1252
1159
  },
1160
+ "patternProperties": {
1161
+ "^[^|]+\\|.+$": {
1162
+ "const": true
1163
+ }
1164
+ },
1253
1165
  "additionalProperties": false
1254
1166
  },
1255
1167
  "uniqueItems": true,
@@ -1659,7 +1571,12 @@
1659
1571
  "additionalProperties": false
1660
1572
  }
1661
1573
  },
1662
- "additionalProperties": true
1574
+ "patternProperties": {
1575
+ "^[^|]+\\|.+$": {
1576
+ "const": true
1577
+ }
1578
+ },
1579
+ "additionalProperties": false
1663
1580
  }
1664
1581
  ]
1665
1582
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.39",
3
+ "version": "1.21.40",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -1020,6 +1020,7 @@
1020
1020
  "Antimagic Susceptibility",
1021
1021
  "Beast of Burden",
1022
1022
  "Brute",
1023
+ "Camouflage",
1023
1024
  "Charge",
1024
1025
  "Damage Absorption",
1025
1026
  "Death Burst",
@@ -2278,6 +2279,7 @@
2278
2279
  "Antimagic Susceptibility",
2279
2280
  "Beast of Burden",
2280
2281
  "Brute",
2282
+ "Camouflage",
2281
2283
  "Charge",
2282
2284
  "Damage Absorption",
2283
2285
  "Death Burst",
@@ -3541,6 +3543,7 @@
3541
3543
  "Antimagic Susceptibility",
3542
3544
  "Beast of Burden",
3543
3545
  "Brute",
3546
+ "Camouflage",
3544
3547
  "Charge",
3545
3548
  "Damage Absorption",
3546
3549
  "Death Burst",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "races.json",
4
- "version": "1.12.8",
4
+ "version": "1.12.9",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "sharedData": {
@@ -35,6 +35,9 @@
35
35
  "reprintedAs": {
36
36
  "$ref": "util.json#/$defs/reprintedAs"
37
37
  },
38
+ "edition": {
39
+ "$ref": "util-edition.json#/$defs/edition"
40
+ },
38
41
  "ability": {
39
42
  "$ref": "util.json#/$defs/abilityScores"
40
43
  },
@@ -298,6 +301,9 @@
298
301
  "reprintedAs": {
299
302
  "$ref": "util.json#/$defs/reprintedAs"
300
303
  },
304
+ "edition": {
305
+ "$ref": "util-edition.json#/$defs/edition"
306
+ },
301
307
  "ability": {
302
308
  "$ref": "util.json#/$defs/abilityScores"
303
309
  },
@@ -643,6 +649,9 @@
643
649
  "reprintedAs": {
644
650
  "$ref": "util.json#/$defs/reprintedAs"
645
651
  },
652
+ "edition": {
653
+ "$ref": "util-edition.json#/$defs/edition"
654
+ },
646
655
  "ability": {
647
656
  "$ref": "util.json#/$defs/abilityScores"
648
657
  },
@@ -910,6 +919,9 @@
910
919
  "reprintedAs": {
911
920
  "$ref": "util.json#/$defs/reprintedAs"
912
921
  },
922
+ "edition": {
923
+ "$ref": "util-edition.json#/$defs/edition"
924
+ },
913
925
  "ability": {
914
926
  "$ref": "util.json#/$defs/abilityScores"
915
927
  },
@@ -1183,6 +1195,9 @@
1183
1195
  "reprintedAs": {
1184
1196
  "$ref": "util.json#/$defs/reprintedAs"
1185
1197
  },
1198
+ "edition": {
1199
+ "$ref": "util-edition.json#/$defs/edition"
1200
+ },
1186
1201
  "ability": {
1187
1202
  "$ref": "util.json#/$defs/abilityScores"
1188
1203
  },
@@ -1462,6 +1477,9 @@
1462
1477
  "reprintedAs": {
1463
1478
  "$ref": "util.json#/$defs/reprintedAs"
1464
1479
  },
1480
+ "edition": {
1481
+ "$ref": "util-edition.json#/$defs/edition"
1482
+ },
1465
1483
  "ability": {
1466
1484
  "$ref": "util.json#/$defs/abilityScores"
1467
1485
  },
@@ -5,6 +5,7 @@
5
5
  "title": "Util: Edition",
6
6
  "$defs": {
7
7
  "edition": {
8
+ "description": "A context-sensitive behaviour hint. Generally, entities marked with `\"edition\": \"one\"` will not be modified (as they are assumed to be up-to-date) prior to display/use, and entities lacking an `\"edition\"` or using `\"edition\": \"classic\"` may be modified to better suit modern rules. For example:\n- Classes/subclasses: an edition mismatch between class and subclass will prompt the renderer to add a note that the subclass is from a different game edition, and that feature levels may have to be adjusted accordingly (notably, when rendering synthetic subclass copies)\n- Plutonium, when using the \"Modern (2024)\" rules version: non-\"one\" species will be stripped of their ability scores; non-\"one\" backgrounds will gain extra ability scores; etc.",
8
9
  "type": "string",
9
10
  "enum": [
10
11
  "classic",