5etools-utils 0.12.26 → 0.12.27

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.26",
3
+ "version": "0.12.27",
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.32",
3
+ "version": "1.21.33",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -323,6 +323,33 @@
323
323
  "speed": {
324
324
  "$ref": "../util.json#/$defs/speed"
325
325
  },
326
+ "initiative": {
327
+ "oneOf": [
328
+ {
329
+ "type": "object",
330
+ "properties": {
331
+ "initiative": {
332
+ "type": "number"
333
+ },
334
+ "proficient": {
335
+ "const": true
336
+ },
337
+ "advantageMode": {
338
+ "type": "string",
339
+ "enum": [
340
+ "adv",
341
+ "dis"
342
+ ]
343
+ }
344
+ },
345
+ "minProperties": 1,
346
+ "additionalProperties": false
347
+ },
348
+ {
349
+ "type": "number"
350
+ }
351
+ ]
352
+ },
326
353
  "str": {
327
354
  "$ref": "#/$defs/abilityScore"
328
355
  },
@@ -1502,6 +1529,33 @@
1502
1529
  "speed": {
1503
1530
  "$ref": "../util.json#/$defs/speed"
1504
1531
  },
1532
+ "initiative": {
1533
+ "oneOf": [
1534
+ {
1535
+ "type": "object",
1536
+ "properties": {
1537
+ "initiative": {
1538
+ "type": "number"
1539
+ },
1540
+ "proficient": {
1541
+ "const": true
1542
+ },
1543
+ "advantageMode": {
1544
+ "type": "string",
1545
+ "enum": [
1546
+ "adv",
1547
+ "dis"
1548
+ ]
1549
+ }
1550
+ },
1551
+ "minProperties": 1,
1552
+ "additionalProperties": false
1553
+ },
1554
+ {
1555
+ "type": "number"
1556
+ }
1557
+ ]
1558
+ },
1505
1559
  "str": {
1506
1560
  "$ref": "#/$defs/abilityScore"
1507
1561
  },
@@ -2686,6 +2740,33 @@
2686
2740
  "speed": {
2687
2741
  "$ref": "../util.json#/$defs/speed"
2688
2742
  },
2743
+ "initiative": {
2744
+ "oneOf": [
2745
+ {
2746
+ "type": "object",
2747
+ "properties": {
2748
+ "initiative": {
2749
+ "type": "number"
2750
+ },
2751
+ "proficient": {
2752
+ "const": true
2753
+ },
2754
+ "advantageMode": {
2755
+ "type": "string",
2756
+ "enum": [
2757
+ "adv",
2758
+ "dis"
2759
+ ]
2760
+ }
2761
+ },
2762
+ "minProperties": 1,
2763
+ "additionalProperties": false
2764
+ },
2765
+ {
2766
+ "type": "number"
2767
+ }
2768
+ ]
2769
+ },
2689
2770
  "str": {
2690
2771
  "$ref": "#/$defs/abilityScore"
2691
2772
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "variantrules.json",
4
- "version": "1.1.6",
4
+ "version": "1.1.7",
5
5
  "title": "RulesArray",
6
6
  "type": "object",
7
7
  "properties": {
@@ -41,9 +41,10 @@
41
41
  "$ref": "util.json#/$defs/page"
42
42
  },
43
43
  "ruleType": {
44
- "description": "O: Optional\n P: Prerelease\n V: Variant\n VO: Variant Optional\n VV: Variant Variant",
44
+ "description": "C: Core\n O: Optional\n P: Prerelease\n V: Variant\n VO: Variant Optional\n VV: Variant Variant",
45
45
  "type": "string",
46
46
  "enum": [
47
+ "C",
47
48
  "O",
48
49
  "P",
49
50
  "V",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.32",
3
+ "version": "1.21.33",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -323,6 +323,33 @@
323
323
  "speed": {
324
324
  "$ref": "../util.json#/$defs/speed"
325
325
  },
326
+ "initiative": {
327
+ "oneOf": [
328
+ {
329
+ "type": "object",
330
+ "properties": {
331
+ "initiative": {
332
+ "type": "number"
333
+ },
334
+ "proficient": {
335
+ "const": true
336
+ },
337
+ "advantageMode": {
338
+ "type": "string",
339
+ "enum": [
340
+ "adv",
341
+ "dis"
342
+ ]
343
+ }
344
+ },
345
+ "minProperties": 1,
346
+ "additionalProperties": false
347
+ },
348
+ {
349
+ "type": "number"
350
+ }
351
+ ]
352
+ },
326
353
  "str": {
327
354
  "$ref": "#/$defs/abilityScore"
328
355
  },
@@ -1502,6 +1529,33 @@
1502
1529
  "speed": {
1503
1530
  "$ref": "../util.json#/$defs/speed"
1504
1531
  },
1532
+ "initiative": {
1533
+ "oneOf": [
1534
+ {
1535
+ "type": "object",
1536
+ "properties": {
1537
+ "initiative": {
1538
+ "type": "number"
1539
+ },
1540
+ "proficient": {
1541
+ "const": true
1542
+ },
1543
+ "advantageMode": {
1544
+ "type": "string",
1545
+ "enum": [
1546
+ "adv",
1547
+ "dis"
1548
+ ]
1549
+ }
1550
+ },
1551
+ "minProperties": 1,
1552
+ "additionalProperties": false
1553
+ },
1554
+ {
1555
+ "type": "number"
1556
+ }
1557
+ ]
1558
+ },
1505
1559
  "str": {
1506
1560
  "$ref": "#/$defs/abilityScore"
1507
1561
  },
@@ -2686,6 +2740,33 @@
2686
2740
  "speed": {
2687
2741
  "$ref": "../util.json#/$defs/speed"
2688
2742
  },
2743
+ "initiative": {
2744
+ "oneOf": [
2745
+ {
2746
+ "type": "object",
2747
+ "properties": {
2748
+ "initiative": {
2749
+ "type": "number"
2750
+ },
2751
+ "proficient": {
2752
+ "const": true
2753
+ },
2754
+ "advantageMode": {
2755
+ "type": "string",
2756
+ "enum": [
2757
+ "adv",
2758
+ "dis"
2759
+ ]
2760
+ }
2761
+ },
2762
+ "minProperties": 1,
2763
+ "additionalProperties": false
2764
+ },
2765
+ {
2766
+ "type": "number"
2767
+ }
2768
+ ]
2769
+ },
2689
2770
  "str": {
2690
2771
  "$ref": "#/$defs/abilityScore"
2691
2772
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "variantrules.json",
4
- "version": "1.1.6",
4
+ "version": "1.1.7",
5
5
  "title": "RulesArray",
6
6
  "type": "object",
7
7
  "properties": {
@@ -41,9 +41,10 @@
41
41
  "$ref": "util.json#/$defs/page"
42
42
  },
43
43
  "ruleType": {
44
- "description": "O: Optional\n P: Prerelease\n V: Variant\n VO: Variant Optional\n VV: Variant Variant",
44
+ "description": "C: Core\n O: Optional\n P: Prerelease\n V: Variant\n VO: Variant Optional\n VV: Variant Variant",
45
45
  "type": "string",
46
46
  "enum": [
47
+ "C",
47
48
  "O",
48
49
  "P",
49
50
  "V",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.32",
3
+ "version": "1.21.33",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -323,6 +323,33 @@
323
323
  "speed": {
324
324
  "$ref": "../util.json#/$defs/speed"
325
325
  },
326
+ "initiative": {
327
+ "oneOf": [
328
+ {
329
+ "type": "object",
330
+ "properties": {
331
+ "initiative": {
332
+ "type": "number"
333
+ },
334
+ "proficient": {
335
+ "const": true
336
+ },
337
+ "advantageMode": {
338
+ "type": "string",
339
+ "enum": [
340
+ "adv",
341
+ "dis"
342
+ ]
343
+ }
344
+ },
345
+ "minProperties": 1,
346
+ "additionalProperties": false
347
+ },
348
+ {
349
+ "type": "number"
350
+ }
351
+ ]
352
+ },
326
353
  "str": {
327
354
  "$ref": "#/$defs/abilityScore"
328
355
  },
@@ -1402,6 +1429,33 @@
1402
1429
  "speed": {
1403
1430
  "$ref": "../util.json#/$defs/speed"
1404
1431
  },
1432
+ "initiative": {
1433
+ "oneOf": [
1434
+ {
1435
+ "type": "object",
1436
+ "properties": {
1437
+ "initiative": {
1438
+ "type": "number"
1439
+ },
1440
+ "proficient": {
1441
+ "const": true
1442
+ },
1443
+ "advantageMode": {
1444
+ "type": "string",
1445
+ "enum": [
1446
+ "adv",
1447
+ "dis"
1448
+ ]
1449
+ }
1450
+ },
1451
+ "minProperties": 1,
1452
+ "additionalProperties": false
1453
+ },
1454
+ {
1455
+ "type": "number"
1456
+ }
1457
+ ]
1458
+ },
1405
1459
  "str": {
1406
1460
  "$ref": "#/$defs/abilityScore"
1407
1461
  },
@@ -2486,6 +2540,33 @@
2486
2540
  "speed": {
2487
2541
  "$ref": "../util.json#/$defs/speed"
2488
2542
  },
2543
+ "initiative": {
2544
+ "oneOf": [
2545
+ {
2546
+ "type": "object",
2547
+ "properties": {
2548
+ "initiative": {
2549
+ "type": "number"
2550
+ },
2551
+ "proficient": {
2552
+ "const": true
2553
+ },
2554
+ "advantageMode": {
2555
+ "type": "string",
2556
+ "enum": [
2557
+ "adv",
2558
+ "dis"
2559
+ ]
2560
+ }
2561
+ },
2562
+ "minProperties": 1,
2563
+ "additionalProperties": false
2564
+ },
2565
+ {
2566
+ "type": "number"
2567
+ }
2568
+ ]
2569
+ },
2489
2570
  "str": {
2490
2571
  "$ref": "#/$defs/abilityScore"
2491
2572
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "variantrules.json",
4
- "version": "1.1.6",
4
+ "version": "1.1.7",
5
5
  "title": "RulesArray",
6
6
  "type": "object",
7
7
  "properties": {
@@ -41,9 +41,10 @@
41
41
  "$ref": "util.json#/$defs/page"
42
42
  },
43
43
  "ruleType": {
44
- "description": "O: Optional\n P: Prerelease\n V: Variant\n VO: Variant Optional\n VV: Variant Variant",
44
+ "description": "C: Core\n O: Optional\n P: Prerelease\n V: Variant\n VO: Variant Optional\n VV: Variant Variant",
45
45
  "type": "string",
46
46
  "enum": [
47
+ "C",
47
48
  "O",
48
49
  "V",
49
50
  "VO",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.32",
3
+ "version": "1.21.33",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -323,6 +323,33 @@
323
323
  "speed": {
324
324
  "$ref": "../util.json#/$defs/speed"
325
325
  },
326
+ "initiative": {
327
+ "oneOf": [
328
+ {
329
+ "type": "object",
330
+ "properties": {
331
+ "initiative": {
332
+ "type": "number"
333
+ },
334
+ "proficient": {
335
+ "const": true
336
+ },
337
+ "advantageMode": {
338
+ "type": "string",
339
+ "enum": [
340
+ "adv",
341
+ "dis"
342
+ ]
343
+ }
344
+ },
345
+ "minProperties": 1,
346
+ "additionalProperties": false
347
+ },
348
+ {
349
+ "type": "number"
350
+ }
351
+ ]
352
+ },
326
353
  "str": {
327
354
  "$ref": "#/$defs/abilityScore"
328
355
  },
@@ -1402,6 +1429,33 @@
1402
1429
  "speed": {
1403
1430
  "$ref": "../util.json#/$defs/speed"
1404
1431
  },
1432
+ "initiative": {
1433
+ "oneOf": [
1434
+ {
1435
+ "type": "object",
1436
+ "properties": {
1437
+ "initiative": {
1438
+ "type": "number"
1439
+ },
1440
+ "proficient": {
1441
+ "const": true
1442
+ },
1443
+ "advantageMode": {
1444
+ "type": "string",
1445
+ "enum": [
1446
+ "adv",
1447
+ "dis"
1448
+ ]
1449
+ }
1450
+ },
1451
+ "minProperties": 1,
1452
+ "additionalProperties": false
1453
+ },
1454
+ {
1455
+ "type": "number"
1456
+ }
1457
+ ]
1458
+ },
1405
1459
  "str": {
1406
1460
  "$ref": "#/$defs/abilityScore"
1407
1461
  },
@@ -2486,6 +2540,33 @@
2486
2540
  "speed": {
2487
2541
  "$ref": "../util.json#/$defs/speed"
2488
2542
  },
2543
+ "initiative": {
2544
+ "oneOf": [
2545
+ {
2546
+ "type": "object",
2547
+ "properties": {
2548
+ "initiative": {
2549
+ "type": "number"
2550
+ },
2551
+ "proficient": {
2552
+ "const": true
2553
+ },
2554
+ "advantageMode": {
2555
+ "type": "string",
2556
+ "enum": [
2557
+ "adv",
2558
+ "dis"
2559
+ ]
2560
+ }
2561
+ },
2562
+ "minProperties": 1,
2563
+ "additionalProperties": false
2564
+ },
2565
+ {
2566
+ "type": "number"
2567
+ }
2568
+ ]
2569
+ },
2489
2570
  "str": {
2490
2571
  "$ref": "#/$defs/abilityScore"
2491
2572
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "variantrules.json",
4
- "version": "1.1.6",
4
+ "version": "1.1.7",
5
5
  "title": "RulesArray",
6
6
  "type": "object",
7
7
  "properties": {
@@ -41,9 +41,10 @@
41
41
  "$ref": "util.json#/$defs/page"
42
42
  },
43
43
  "ruleType": {
44
- "description": "O: Optional\n P: Prerelease\n V: Variant\n VO: Variant Optional\n VV: Variant Variant",
44
+ "description": "C: Core\n O: Optional\n P: Prerelease\n V: Variant\n VO: Variant Optional\n VV: Variant Variant",
45
45
  "type": "string",
46
46
  "enum": [
47
+ "C",
47
48
  "O",
48
49
  "V",
49
50
  "VO",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.32",
3
+ "version": "1.21.33",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -323,6 +323,33 @@
323
323
  "speed": {
324
324
  "$ref": "../util.json#/$defs/speed"
325
325
  },
326
+ "initiative": {
327
+ "oneOf": [
328
+ {
329
+ "type": "object",
330
+ "properties": {
331
+ "initiative": {
332
+ "type": "number"
333
+ },
334
+ "proficient": {
335
+ "const": true
336
+ },
337
+ "advantageMode": {
338
+ "type": "string",
339
+ "enum": [
340
+ "adv",
341
+ "dis"
342
+ ]
343
+ }
344
+ },
345
+ "minProperties": 1,
346
+ "additionalProperties": false
347
+ },
348
+ {
349
+ "type": "number"
350
+ }
351
+ ]
352
+ },
326
353
  "str": {
327
354
  "$ref": "#/$defs/abilityScore"
328
355
  },
@@ -1411,6 +1438,33 @@
1411
1438
  "speed": {
1412
1439
  "$ref": "../util.json#/$defs/speed"
1413
1440
  },
1441
+ "initiative": {
1442
+ "oneOf": [
1443
+ {
1444
+ "type": "object",
1445
+ "properties": {
1446
+ "initiative": {
1447
+ "type": "number"
1448
+ },
1449
+ "proficient": {
1450
+ "const": true
1451
+ },
1452
+ "advantageMode": {
1453
+ "type": "string",
1454
+ "enum": [
1455
+ "adv",
1456
+ "dis"
1457
+ ]
1458
+ }
1459
+ },
1460
+ "minProperties": 1,
1461
+ "additionalProperties": false
1462
+ },
1463
+ {
1464
+ "type": "number"
1465
+ }
1466
+ ]
1467
+ },
1414
1468
  "str": {
1415
1469
  "$ref": "#/$defs/abilityScore"
1416
1470
  },
@@ -2504,6 +2558,33 @@
2504
2558
  "speed": {
2505
2559
  "$ref": "../util.json#/$defs/speed"
2506
2560
  },
2561
+ "initiative": {
2562
+ "oneOf": [
2563
+ {
2564
+ "type": "object",
2565
+ "properties": {
2566
+ "initiative": {
2567
+ "type": "number"
2568
+ },
2569
+ "proficient": {
2570
+ "const": true
2571
+ },
2572
+ "advantageMode": {
2573
+ "type": "string",
2574
+ "enum": [
2575
+ "adv",
2576
+ "dis"
2577
+ ]
2578
+ }
2579
+ },
2580
+ "minProperties": 1,
2581
+ "additionalProperties": false
2582
+ },
2583
+ {
2584
+ "type": "number"
2585
+ }
2586
+ ]
2587
+ },
2507
2588
  "str": {
2508
2589
  "$ref": "#/$defs/abilityScore"
2509
2590
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "variantrules.json",
4
- "version": "1.1.6",
4
+ "version": "1.1.7",
5
5
  "title": "RulesArray",
6
6
  "type": "object",
7
7
  "properties": {
@@ -41,9 +41,10 @@
41
41
  "$ref": "util.json#/$defs/page"
42
42
  },
43
43
  "ruleType": {
44
- "description": "O: Optional\n P: Prerelease\n V: Variant\n VO: Variant Optional\n VV: Variant Variant",
44
+ "description": "C: Core\n O: Optional\n P: Prerelease\n V: Variant\n VO: Variant Optional\n VV: Variant Variant",
45
45
  "type": "string",
46
46
  "enum": [
47
+ "C",
47
48
  "O",
48
49
  "P",
49
50
  "V",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.32",
3
+ "version": "1.21.33",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -323,6 +323,33 @@
323
323
  "speed": {
324
324
  "$ref": "../util.json#/$defs/speed"
325
325
  },
326
+ "initiative": {
327
+ "oneOf": [
328
+ {
329
+ "type": "object",
330
+ "properties": {
331
+ "initiative": {
332
+ "type": "number"
333
+ },
334
+ "proficient": {
335
+ "const": true
336
+ },
337
+ "advantageMode": {
338
+ "type": "string",
339
+ "enum": [
340
+ "adv",
341
+ "dis"
342
+ ]
343
+ }
344
+ },
345
+ "minProperties": 1,
346
+ "additionalProperties": false
347
+ },
348
+ {
349
+ "type": "number"
350
+ }
351
+ ]
352
+ },
326
353
  "str": {
327
354
  "$ref": "#/$defs/abilityScore"
328
355
  },
@@ -1411,6 +1438,33 @@
1411
1438
  "speed": {
1412
1439
  "$ref": "../util.json#/$defs/speed"
1413
1440
  },
1441
+ "initiative": {
1442
+ "oneOf": [
1443
+ {
1444
+ "type": "object",
1445
+ "properties": {
1446
+ "initiative": {
1447
+ "type": "number"
1448
+ },
1449
+ "proficient": {
1450
+ "const": true
1451
+ },
1452
+ "advantageMode": {
1453
+ "type": "string",
1454
+ "enum": [
1455
+ "adv",
1456
+ "dis"
1457
+ ]
1458
+ }
1459
+ },
1460
+ "minProperties": 1,
1461
+ "additionalProperties": false
1462
+ },
1463
+ {
1464
+ "type": "number"
1465
+ }
1466
+ ]
1467
+ },
1414
1468
  "str": {
1415
1469
  "$ref": "#/$defs/abilityScore"
1416
1470
  },
@@ -2504,6 +2558,33 @@
2504
2558
  "speed": {
2505
2559
  "$ref": "../util.json#/$defs/speed"
2506
2560
  },
2561
+ "initiative": {
2562
+ "oneOf": [
2563
+ {
2564
+ "type": "object",
2565
+ "properties": {
2566
+ "initiative": {
2567
+ "type": "number"
2568
+ },
2569
+ "proficient": {
2570
+ "const": true
2571
+ },
2572
+ "advantageMode": {
2573
+ "type": "string",
2574
+ "enum": [
2575
+ "adv",
2576
+ "dis"
2577
+ ]
2578
+ }
2579
+ },
2580
+ "minProperties": 1,
2581
+ "additionalProperties": false
2582
+ },
2583
+ {
2584
+ "type": "number"
2585
+ }
2586
+ ]
2587
+ },
2507
2588
  "str": {
2508
2589
  "$ref": "#/$defs/abilityScore"
2509
2590
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "variantrules.json",
4
- "version": "1.1.6",
4
+ "version": "1.1.7",
5
5
  "title": "RulesArray",
6
6
  "type": "object",
7
7
  "properties": {
@@ -41,9 +41,10 @@
41
41
  "$ref": "util.json#/$defs/page"
42
42
  },
43
43
  "ruleType": {
44
- "description": "O: Optional\n P: Prerelease\n V: Variant\n VO: Variant Optional\n VV: Variant Variant",
44
+ "description": "C: Core\n O: Optional\n P: Prerelease\n V: Variant\n VO: Variant Optional\n VV: Variant Variant",
45
45
  "type": "string",
46
46
  "enum": [
47
+ "C",
47
48
  "O",
48
49
  "P",
49
50
  "V",