5etools-utils 0.16.34 → 0.16.36

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,112 @@
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.0.9",
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
+ "_deckSpreadPosition": {
38
+ "type": "object",
39
+ "properties": {
40
+ "name": {
41
+ "type": "string"
42
+ },
43
+ "entries": {
44
+ "type": "array",
45
+ "items": {
46
+ "$ref": "entry.json"
47
+ },
48
+ "minItems": 1
49
+ },
50
+ "suits": {
51
+ "$comment": "The suits this position may draw from; `null` matches cards which have no suit. Omit to draw from the whole deck.",
52
+ "type": "array",
53
+ "items": {
54
+ "type": [
55
+ "string",
56
+ "null"
57
+ ]
58
+ },
59
+ "minItems": 1,
60
+ "uniqueItems": true
61
+ },
62
+ "outcomes": {
63
+ "$comment": "Card outcomes specific to this position. These override spread-level outcomes.",
64
+ "$ref": "#/$defs/_deckSpreadOutcomes"
65
+ }
66
+ },
67
+ "required": [
68
+ "name",
69
+ "entries"
70
+ ],
71
+ "additionalProperties": false
72
+ },
73
+ "_deckSpread": {
74
+ "type": "object",
75
+ "properties": {
76
+ "name": {
77
+ "type": "string"
78
+ },
79
+ "source": {
80
+ "$ref": "util.json#/$defs/source"
81
+ },
82
+ "page": {
83
+ "$ref": "util.json#/$defs/page"
84
+ },
85
+ "entries": {
86
+ "type": "array",
87
+ "items": {
88
+ "$ref": "entry.json"
89
+ }
90
+ },
91
+ "positions": {
92
+ "type": "array",
93
+ "items": {
94
+ "$ref": "#/$defs/_deckSpreadPosition"
95
+ },
96
+ "minItems": 1
97
+ },
98
+ "outcomes": {
99
+ "$comment": "Card outcomes shared by all positions.",
100
+ "$ref": "#/$defs/_deckSpreadOutcomes"
101
+ }
102
+ },
103
+ "required": [
104
+ "name",
105
+ "source",
106
+ "positions"
107
+ ],
108
+ "additionalProperties": false
109
+ },
7
110
  "deckData": {
8
111
  "type": "object",
9
112
  "properties": {
@@ -65,6 +168,14 @@
65
168
  "$ref": "entry.json"
66
169
  }
67
170
  },
171
+ "spreads": {
172
+ "type": "array",
173
+ "items": {
174
+ "$ref": "#/$defs/_deckSpread"
175
+ },
176
+ "minItems": 1,
177
+ "uniqueItems": true
178
+ },
68
179
  "back": {
69
180
  "$ref": "entry.json#/$defs/entryImage"
70
181
  },
@@ -151,6 +262,14 @@
151
262
  "$ref": "entry.json"
152
263
  }
153
264
  },
265
+ "spreads": {
266
+ "type": "array",
267
+ "items": {
268
+ "$ref": "#/$defs/_deckSpread"
269
+ },
270
+ "minItems": 1,
271
+ "uniqueItems": true
272
+ },
154
273
  "back": {
155
274
  "$ref": "entry.json#/$defs/entryImage"
156
275
  },
@@ -240,6 +359,14 @@
240
359
  "$ref": "entry.json"
241
360
  }
242
361
  },
362
+ "spreads": {
363
+ "type": "array",
364
+ "items": {
365
+ "$ref": "#/$defs/_deckSpread"
366
+ },
367
+ "minItems": 1,
368
+ "uniqueItems": true
369
+ },
243
370
  "back": {
244
371
  "$ref": "entry.json#/$defs/entryImage"
245
372
  },
@@ -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,112 @@
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.0.9",
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
+ "_deckSpreadPosition": {
38
+ "type": "object",
39
+ "properties": {
40
+ "name": {
41
+ "type": "string"
42
+ },
43
+ "entries": {
44
+ "type": "array",
45
+ "items": {
46
+ "$ref": "entry.json"
47
+ },
48
+ "minItems": 1
49
+ },
50
+ "suits": {
51
+ "$comment": "The suits this position may draw from; `null` matches cards which have no suit. Omit to draw from the whole deck.",
52
+ "type": "array",
53
+ "items": {
54
+ "type": [
55
+ "string",
56
+ "null"
57
+ ]
58
+ },
59
+ "minItems": 1,
60
+ "uniqueItems": true
61
+ },
62
+ "outcomes": {
63
+ "$comment": "Card outcomes specific to this position. These override spread-level outcomes.",
64
+ "$ref": "#/$defs/_deckSpreadOutcomes"
65
+ }
66
+ },
67
+ "required": [
68
+ "name",
69
+ "entries"
70
+ ],
71
+ "additionalProperties": false
72
+ },
73
+ "_deckSpread": {
74
+ "type": "object",
75
+ "properties": {
76
+ "name": {
77
+ "type": "string"
78
+ },
79
+ "source": {
80
+ "$ref": "util.json#/$defs/source"
81
+ },
82
+ "page": {
83
+ "$ref": "util.json#/$defs/page"
84
+ },
85
+ "entries": {
86
+ "type": "array",
87
+ "items": {
88
+ "$ref": "entry.json"
89
+ }
90
+ },
91
+ "positions": {
92
+ "type": "array",
93
+ "items": {
94
+ "$ref": "#/$defs/_deckSpreadPosition"
95
+ },
96
+ "minItems": 1
97
+ },
98
+ "outcomes": {
99
+ "$comment": "Card outcomes shared by all positions.",
100
+ "$ref": "#/$defs/_deckSpreadOutcomes"
101
+ }
102
+ },
103
+ "required": [
104
+ "name",
105
+ "source",
106
+ "positions"
107
+ ],
108
+ "additionalProperties": false
109
+ },
7
110
  "deckData": {
8
111
  "type": "object",
9
112
  "properties": {
@@ -65,6 +168,14 @@
65
168
  "$ref": "entry.json"
66
169
  }
67
170
  },
171
+ "spreads": {
172
+ "type": "array",
173
+ "items": {
174
+ "$ref": "#/$defs/_deckSpread"
175
+ },
176
+ "minItems": 1,
177
+ "uniqueItems": true
178
+ },
68
179
  "back": {
69
180
  "$ref": "entry.json#/$defs/entryImage"
70
181
  },
@@ -151,6 +262,14 @@
151
262
  "$ref": "entry.json"
152
263
  }
153
264
  },
265
+ "spreads": {
266
+ "type": "array",
267
+ "items": {
268
+ "$ref": "#/$defs/_deckSpread"
269
+ },
270
+ "minItems": 1,
271
+ "uniqueItems": true
272
+ },
154
273
  "back": {
155
274
  "$ref": "entry.json#/$defs/entryImage"
156
275
  },
@@ -240,6 +359,14 @@
240
359
  "$ref": "entry.json"
241
360
  }
242
361
  },
362
+ "spreads": {
363
+ "type": "array",
364
+ "items": {
365
+ "$ref": "#/$defs/_deckSpread"
366
+ },
367
+ "minItems": 1,
368
+ "uniqueItems": true
369
+ },
243
370
  "back": {
244
371
  "$ref": "entry.json#/$defs/entryImage"
245
372
  },
@@ -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": [