5etools-utils 0.16.35 → 0.16.37

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.
@@ -1,9 +1,124 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "decks.json",
4
- "version": "1.0.7",
4
+ "version": "1.1.0",
5
5
  "type": "object",
6
6
  "$defs": {
7
+ "_deckSpreadOutcomesCardMap": {
8
+ "type": "object",
9
+ "propertyNames": {
10
+ "pattern": "^[^A-Z|]+\\|[^A-Z|]+\\|[^A-Z|]+$"
11
+ },
12
+ "additionalProperties": {
13
+ "type": "string"
14
+ },
15
+ "minProperties": 1
16
+ },
17
+ "_deckSpreadOutcomesCorpusMap": {
18
+ "type": "object",
19
+ "additionalProperties": {
20
+ "$ref": "#/$defs/_deckSpreadOutcomesCardMap"
21
+ },
22
+ "minProperties": 1
23
+ },
24
+ "_deckSpreadOutcomes": {
25
+ "type": "object",
26
+ "properties": {
27
+ "adventure": {
28
+ "$ref": "#/$defs/_deckSpreadOutcomesCorpusMap"
29
+ },
30
+ "book": {
31
+ "$ref": "#/$defs/_deckSpreadOutcomesCorpusMap"
32
+ }
33
+ },
34
+ "minProperties": 1,
35
+ "additionalProperties": false
36
+ },
37
+ "_deckSpreadSeeAlsoHeader": {
38
+ "type": "array",
39
+ "items": {
40
+ "type": "string",
41
+ "description": "UIDs of adventure/book headers to be linked as a footnote.\n\nE.g. \"Fortunes of Ravenloft|CoS|2|Fortunes of Ravenloft\".",
42
+ "markdownDescription": "UIDs of adventure/book headers to be linked as a footnote.\n\nE.g. "Fortunes of Ravenloft|CoS|2|Fortunes of Ravenloft"."
43
+ },
44
+ "minItems": 1,
45
+ "uniqueItems": true
46
+ },
47
+ "_deckSpreadPosition": {
48
+ "type": "object",
49
+ "properties": {
50
+ "name": {
51
+ "type": "string"
52
+ },
53
+ "entries": {
54
+ "type": "array",
55
+ "items": {
56
+ "$ref": "entry.json"
57
+ },
58
+ "minItems": 1
59
+ },
60
+ "suits": {
61
+ "$comment": "The suits this position may draw from; \"None\" matches cards which have no suit. Omit to draw from the whole deck.",
62
+ "type": "array",
63
+ "items": {
64
+ "type": "string"
65
+ },
66
+ "minItems": 1,
67
+ "uniqueItems": true
68
+ },
69
+ "outcomes": {
70
+ "$comment": "Card outcomes specific to this position. These override spread-level outcomes.",
71
+ "$ref": "#/$defs/_deckSpreadOutcomes"
72
+ }
73
+ },
74
+ "required": [
75
+ "entries"
76
+ ],
77
+ "additionalProperties": false
78
+ },
79
+ "_deckSpread": {
80
+ "type": "object",
81
+ "properties": {
82
+ "name": {
83
+ "type": "string"
84
+ },
85
+ "source": {
86
+ "$ref": "util.json#/$defs/source"
87
+ },
88
+ "page": {
89
+ "$ref": "util.json#/$defs/page"
90
+ },
91
+ "entries": {
92
+ "type": "array",
93
+ "items": {
94
+ "$ref": "entry.json"
95
+ }
96
+ },
97
+ "seeAlsoAdventureHeader": {
98
+ "$ref": "#/$defs/_deckSpreadSeeAlsoHeader"
99
+ },
100
+ "seeAlsoBookHeader": {
101
+ "$ref": "#/$defs/_deckSpreadSeeAlsoHeader"
102
+ },
103
+ "positions": {
104
+ "type": "array",
105
+ "items": {
106
+ "$ref": "#/$defs/_deckSpreadPosition"
107
+ },
108
+ "minItems": 1
109
+ },
110
+ "outcomes": {
111
+ "$comment": "Card outcomes shared by all positions.",
112
+ "$ref": "#/$defs/_deckSpreadOutcomes"
113
+ }
114
+ },
115
+ "required": [
116
+ "name",
117
+ "source",
118
+ "positions"
119
+ ],
120
+ "additionalProperties": false
121
+ },
7
122
  "deckData": {
8
123
  "type": "object",
9
124
  "properties": {
@@ -65,6 +180,14 @@
65
180
  "$ref": "entry.json"
66
181
  }
67
182
  },
183
+ "spreads": {
184
+ "type": "array",
185
+ "items": {
186
+ "$ref": "#/$defs/_deckSpread"
187
+ },
188
+ "minItems": 1,
189
+ "uniqueItems": true
190
+ },
68
191
  "back": {
69
192
  "$ref": "entry.json#/$defs/entryImage"
70
193
  },
@@ -151,6 +274,14 @@
151
274
  "$ref": "entry.json"
152
275
  }
153
276
  },
277
+ "spreads": {
278
+ "type": "array",
279
+ "items": {
280
+ "$ref": "#/$defs/_deckSpread"
281
+ },
282
+ "minItems": 1,
283
+ "uniqueItems": true
284
+ },
154
285
  "back": {
155
286
  "$ref": "entry.json#/$defs/entryImage"
156
287
  },
@@ -240,6 +371,14 @@
240
371
  "$ref": "entry.json"
241
372
  }
242
373
  },
374
+ "spreads": {
375
+ "type": "array",
376
+ "items": {
377
+ "$ref": "#/$defs/_deckSpread"
378
+ },
379
+ "minItems": 1,
380
+ "uniqueItems": true
381
+ },
243
382
  "back": {
244
383
  "$ref": "entry.json#/$defs/entryImage"
245
384
  },
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.10.00",
6
+ "version": "1.10.1",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -4306,46 +4306,100 @@
4306
4306
  "additionalProperties": false
4307
4307
  },
4308
4308
  "entryWrapped": {
4309
- "type": "object",
4310
- "properties": {
4311
- "name": {
4312
- "type": "string"
4313
- },
4314
- "type": {
4315
- "type": "string",
4316
- "const": "wrapper"
4317
- },
4318
- "source": {
4319
- "$ref": "util.json#/$defs/source"
4320
- },
4321
- "page": {
4322
- "$ref": "util.json#/$defs/page"
4323
- },
4324
- "data": {
4325
- "$ref": "#/$defs/_entryDataData"
4326
- },
4327
- "id": {
4328
- "type": "string"
4329
- },
4330
- "srd": {
4331
- "$ref": "util.json#/$defs/srd"
4332
- },
4333
- "srd52": {
4334
- "$ref": "util.json#/$defs/srd"
4335
- },
4336
- "basicRules": {
4337
- "$ref": "util.json#/$defs/basicRules"
4338
- },
4339
- "basicRules2024": {
4340
- "$ref": "util.json#/$defs/basicRules"
4309
+ "oneOf": [
4310
+ {
4311
+ "type": "object",
4312
+ "properties": {
4313
+ "name": {
4314
+ "type": "string"
4315
+ },
4316
+ "type": {
4317
+ "type": "string",
4318
+ "const": "wrapper"
4319
+ },
4320
+ "source": {
4321
+ "$ref": "util.json#/$defs/source"
4322
+ },
4323
+ "page": {
4324
+ "$ref": "util.json#/$defs/page"
4325
+ },
4326
+ "data": {
4327
+ "$ref": "#/$defs/_entryDataData"
4328
+ },
4329
+ "id": {
4330
+ "type": "string"
4331
+ },
4332
+ "srd": {
4333
+ "$ref": "util.json#/$defs/srd"
4334
+ },
4335
+ "srd52": {
4336
+ "$ref": "util.json#/$defs/srd"
4337
+ },
4338
+ "basicRules": {
4339
+ "$ref": "util.json#/$defs/basicRules"
4340
+ },
4341
+ "basicRules2024": {
4342
+ "$ref": "util.json#/$defs/basicRules"
4343
+ },
4344
+ "wrapped": {
4345
+ "$ref": "#"
4346
+ }
4347
+ },
4348
+ "required": [
4349
+ "type",
4350
+ "wrapped"
4351
+ ],
4352
+ "additionalProperties": false
4341
4353
  },
4342
- "wrapped": {}
4343
- },
4344
- "required": [
4345
- "type",
4346
- "wrapped"
4347
- ],
4348
- "additionalProperties": false
4354
+ {
4355
+ "type": "object",
4356
+ "properties": {
4357
+ "name": {
4358
+ "type": "string"
4359
+ },
4360
+ "type": {
4361
+ "type": "string",
4362
+ "const": "wrapper"
4363
+ },
4364
+ "source": {
4365
+ "$ref": "util.json#/$defs/source"
4366
+ },
4367
+ "page": {
4368
+ "$ref": "util.json#/$defs/page"
4369
+ },
4370
+ "data": {
4371
+ "$ref": "#/$defs/_entryDataData"
4372
+ },
4373
+ "id": {
4374
+ "type": "string"
4375
+ },
4376
+ "srd": {
4377
+ "$ref": "util.json#/$defs/srd"
4378
+ },
4379
+ "srd52": {
4380
+ "$ref": "util.json#/$defs/srd"
4381
+ },
4382
+ "basicRules": {
4383
+ "$ref": "util.json#/$defs/basicRules"
4384
+ },
4385
+ "basicRules2024": {
4386
+ "$ref": "util.json#/$defs/basicRules"
4387
+ },
4388
+ "wrappeds": {
4389
+ "type": "array",
4390
+ "items": {
4391
+ "$ref": "#"
4392
+ },
4393
+ "minItems": 1
4394
+ }
4395
+ },
4396
+ "required": [
4397
+ "type",
4398
+ "wrappeds"
4399
+ ],
4400
+ "additionalProperties": false
4401
+ }
4402
+ ]
4349
4403
  },
4350
4404
  "dataDamImmune": {
4351
4405
  "oneOf": [
@@ -1,9 +1,124 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "decks.json",
4
- "version": "1.0.7",
4
+ "version": "1.1.0",
5
5
  "type": "object",
6
6
  "$defs": {
7
+ "_deckSpreadOutcomesCardMap": {
8
+ "type": "object",
9
+ "propertyNames": {
10
+ "pattern": "^[^A-Z|]+\\|[^A-Z|]+\\|[^A-Z|]+$"
11
+ },
12
+ "additionalProperties": {
13
+ "type": "string"
14
+ },
15
+ "minProperties": 1
16
+ },
17
+ "_deckSpreadOutcomesCorpusMap": {
18
+ "type": "object",
19
+ "additionalProperties": {
20
+ "$ref": "#/$defs/_deckSpreadOutcomesCardMap"
21
+ },
22
+ "minProperties": 1
23
+ },
24
+ "_deckSpreadOutcomes": {
25
+ "type": "object",
26
+ "properties": {
27
+ "adventure": {
28
+ "$ref": "#/$defs/_deckSpreadOutcomesCorpusMap"
29
+ },
30
+ "book": {
31
+ "$ref": "#/$defs/_deckSpreadOutcomesCorpusMap"
32
+ }
33
+ },
34
+ "minProperties": 1,
35
+ "additionalProperties": false
36
+ },
37
+ "_deckSpreadSeeAlsoHeader": {
38
+ "type": "array",
39
+ "items": {
40
+ "type": "string",
41
+ "description": "UIDs of adventure/book headers to be linked as a footnote.\n\nE.g. \"Fortunes of Ravenloft|CoS|2|Fortunes of Ravenloft\".",
42
+ "markdownDescription": "UIDs of adventure/book headers to be linked as a footnote.\n\nE.g. "Fortunes of Ravenloft|CoS|2|Fortunes of Ravenloft"."
43
+ },
44
+ "minItems": 1,
45
+ "uniqueItems": true
46
+ },
47
+ "_deckSpreadPosition": {
48
+ "type": "object",
49
+ "properties": {
50
+ "name": {
51
+ "type": "string"
52
+ },
53
+ "entries": {
54
+ "type": "array",
55
+ "items": {
56
+ "$ref": "entry.json"
57
+ },
58
+ "minItems": 1
59
+ },
60
+ "suits": {
61
+ "$comment": "The suits this position may draw from; \"None\" matches cards which have no suit. Omit to draw from the whole deck.",
62
+ "type": "array",
63
+ "items": {
64
+ "type": "string"
65
+ },
66
+ "minItems": 1,
67
+ "uniqueItems": true
68
+ },
69
+ "outcomes": {
70
+ "$comment": "Card outcomes specific to this position. These override spread-level outcomes.",
71
+ "$ref": "#/$defs/_deckSpreadOutcomes"
72
+ }
73
+ },
74
+ "required": [
75
+ "entries"
76
+ ],
77
+ "additionalProperties": false
78
+ },
79
+ "_deckSpread": {
80
+ "type": "object",
81
+ "properties": {
82
+ "name": {
83
+ "type": "string"
84
+ },
85
+ "source": {
86
+ "$ref": "util.json#/$defs/source"
87
+ },
88
+ "page": {
89
+ "$ref": "util.json#/$defs/page"
90
+ },
91
+ "entries": {
92
+ "type": "array",
93
+ "items": {
94
+ "$ref": "entry.json"
95
+ }
96
+ },
97
+ "seeAlsoAdventureHeader": {
98
+ "$ref": "#/$defs/_deckSpreadSeeAlsoHeader"
99
+ },
100
+ "seeAlsoBookHeader": {
101
+ "$ref": "#/$defs/_deckSpreadSeeAlsoHeader"
102
+ },
103
+ "positions": {
104
+ "type": "array",
105
+ "items": {
106
+ "$ref": "#/$defs/_deckSpreadPosition"
107
+ },
108
+ "minItems": 1
109
+ },
110
+ "outcomes": {
111
+ "$comment": "Card outcomes shared by all positions.",
112
+ "$ref": "#/$defs/_deckSpreadOutcomes"
113
+ }
114
+ },
115
+ "required": [
116
+ "name",
117
+ "source",
118
+ "positions"
119
+ ],
120
+ "additionalProperties": false
121
+ },
7
122
  "deckData": {
8
123
  "type": "object",
9
124
  "properties": {
@@ -65,6 +180,14 @@
65
180
  "$ref": "entry.json"
66
181
  }
67
182
  },
183
+ "spreads": {
184
+ "type": "array",
185
+ "items": {
186
+ "$ref": "#/$defs/_deckSpread"
187
+ },
188
+ "minItems": 1,
189
+ "uniqueItems": true
190
+ },
68
191
  "back": {
69
192
  "$ref": "entry.json#/$defs/entryImage"
70
193
  },
@@ -151,6 +274,14 @@
151
274
  "$ref": "entry.json"
152
275
  }
153
276
  },
277
+ "spreads": {
278
+ "type": "array",
279
+ "items": {
280
+ "$ref": "#/$defs/_deckSpread"
281
+ },
282
+ "minItems": 1,
283
+ "uniqueItems": true
284
+ },
154
285
  "back": {
155
286
  "$ref": "entry.json#/$defs/entryImage"
156
287
  },
@@ -240,6 +371,14 @@
240
371
  "$ref": "entry.json"
241
372
  }
242
373
  },
374
+ "spreads": {
375
+ "type": "array",
376
+ "items": {
377
+ "$ref": "#/$defs/_deckSpread"
378
+ },
379
+ "minItems": 1,
380
+ "uniqueItems": true
381
+ },
243
382
  "back": {
244
383
  "$ref": "entry.json#/$defs/entryImage"
245
384
  },
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.10.00",
6
+ "version": "1.10.1",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -4306,46 +4306,100 @@
4306
4306
  "additionalProperties": false
4307
4307
  },
4308
4308
  "entryWrapped": {
4309
- "type": "object",
4310
- "properties": {
4311
- "name": {
4312
- "type": "string"
4313
- },
4314
- "type": {
4315
- "type": "string",
4316
- "const": "wrapper"
4317
- },
4318
- "source": {
4319
- "$ref": "util.json#/$defs/source"
4320
- },
4321
- "page": {
4322
- "$ref": "util.json#/$defs/page"
4323
- },
4324
- "data": {
4325
- "$ref": "#/$defs/_entryDataData"
4326
- },
4327
- "id": {
4328
- "type": "string"
4329
- },
4330
- "srd": {
4331
- "$ref": "util.json#/$defs/srd"
4332
- },
4333
- "srd52": {
4334
- "$ref": "util.json#/$defs/srd"
4335
- },
4336
- "basicRules": {
4337
- "$ref": "util.json#/$defs/basicRules"
4338
- },
4339
- "basicRules2024": {
4340
- "$ref": "util.json#/$defs/basicRules"
4309
+ "oneOf": [
4310
+ {
4311
+ "type": "object",
4312
+ "properties": {
4313
+ "name": {
4314
+ "type": "string"
4315
+ },
4316
+ "type": {
4317
+ "type": "string",
4318
+ "const": "wrapper"
4319
+ },
4320
+ "source": {
4321
+ "$ref": "util.json#/$defs/source"
4322
+ },
4323
+ "page": {
4324
+ "$ref": "util.json#/$defs/page"
4325
+ },
4326
+ "data": {
4327
+ "$ref": "#/$defs/_entryDataData"
4328
+ },
4329
+ "id": {
4330
+ "type": "string"
4331
+ },
4332
+ "srd": {
4333
+ "$ref": "util.json#/$defs/srd"
4334
+ },
4335
+ "srd52": {
4336
+ "$ref": "util.json#/$defs/srd"
4337
+ },
4338
+ "basicRules": {
4339
+ "$ref": "util.json#/$defs/basicRules"
4340
+ },
4341
+ "basicRules2024": {
4342
+ "$ref": "util.json#/$defs/basicRules"
4343
+ },
4344
+ "wrapped": {
4345
+ "$ref": "#"
4346
+ }
4347
+ },
4348
+ "required": [
4349
+ "type",
4350
+ "wrapped"
4351
+ ],
4352
+ "additionalProperties": false
4341
4353
  },
4342
- "wrapped": {}
4343
- },
4344
- "required": [
4345
- "type",
4346
- "wrapped"
4347
- ],
4348
- "additionalProperties": false
4354
+ {
4355
+ "type": "object",
4356
+ "properties": {
4357
+ "name": {
4358
+ "type": "string"
4359
+ },
4360
+ "type": {
4361
+ "type": "string",
4362
+ "const": "wrapper"
4363
+ },
4364
+ "source": {
4365
+ "$ref": "util.json#/$defs/source"
4366
+ },
4367
+ "page": {
4368
+ "$ref": "util.json#/$defs/page"
4369
+ },
4370
+ "data": {
4371
+ "$ref": "#/$defs/_entryDataData"
4372
+ },
4373
+ "id": {
4374
+ "type": "string"
4375
+ },
4376
+ "srd": {
4377
+ "$ref": "util.json#/$defs/srd"
4378
+ },
4379
+ "srd52": {
4380
+ "$ref": "util.json#/$defs/srd"
4381
+ },
4382
+ "basicRules": {
4383
+ "$ref": "util.json#/$defs/basicRules"
4384
+ },
4385
+ "basicRules2024": {
4386
+ "$ref": "util.json#/$defs/basicRules"
4387
+ },
4388
+ "wrappeds": {
4389
+ "type": "array",
4390
+ "items": {
4391
+ "$ref": "#"
4392
+ },
4393
+ "minItems": 1
4394
+ }
4395
+ },
4396
+ "required": [
4397
+ "type",
4398
+ "wrappeds"
4399
+ ],
4400
+ "additionalProperties": false
4401
+ }
4402
+ ]
4349
4403
  },
4350
4404
  "dataDamImmune": {
4351
4405
  "oneOf": [