5etools-utils 0.8.12 → 0.8.13

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.8.12",
3
+ "version": "0.8.13",
4
4
  "description": "Shared utilities for the 5etools ecosystem.",
5
5
  "type": "module",
6
6
  "main": "lib/Api.js",
@@ -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.13.14",
6
+ "version": "1.13.15",
7
7
  "$defs": {
8
8
  "metaBlock": {
9
9
  "type": "object",
@@ -2262,30 +2262,81 @@
2262
2262
  },
2263
2263
  "uniqueItems": true
2264
2264
  },
2265
- "consumesObject": {
2265
+ "_consumesObjectBase": {
2266
2266
  "type": "object",
2267
2267
  "properties": {
2268
2268
  "name": {
2269
2269
  "type": "string",
2270
2270
  "examples": [
2271
- "Superiority Dice",
2271
+ "Superiority Die",
2272
2272
  "Ki",
2273
2273
  "Channel Divinity",
2274
- "Psionic Energy Dice",
2274
+ "Psionic Energy Die",
2275
2275
  "Wild Shape",
2276
- "Sorcery Points",
2276
+ "Sorcery Point",
2277
2277
  "Arcane Shot"
2278
2278
  ]
2279
- },
2280
- "amount": {
2281
- "type": "integer"
2282
2279
  }
2283
2280
  },
2284
- "required": [
2285
- "name"
2286
- ],
2287
2281
  "additionalProperties": false
2288
2282
  },
2283
+ "consumesObject": {
2284
+ "oneOf": [
2285
+ {
2286
+ "type": "object",
2287
+ "properties": {
2288
+ "name": {
2289
+ "type": "string",
2290
+ "examples": [
2291
+ "Superiority Die",
2292
+ "Ki",
2293
+ "Channel Divinity",
2294
+ "Psionic Energy Die",
2295
+ "Wild Shape",
2296
+ "Sorcery Point",
2297
+ "Arcane Shot"
2298
+ ]
2299
+ },
2300
+ "amount": {
2301
+ "type": "integer"
2302
+ }
2303
+ },
2304
+ "additionalProperties": false,
2305
+ "required": [
2306
+ "name"
2307
+ ]
2308
+ },
2309
+ {
2310
+ "type": "object",
2311
+ "properties": {
2312
+ "name": {
2313
+ "type": "string",
2314
+ "examples": [
2315
+ "Superiority Die",
2316
+ "Ki",
2317
+ "Channel Divinity",
2318
+ "Psionic Energy Die",
2319
+ "Wild Shape",
2320
+ "Sorcery Point",
2321
+ "Arcane Shot"
2322
+ ]
2323
+ },
2324
+ "amountMin": {
2325
+ "type": "integer"
2326
+ },
2327
+ "amountMax": {
2328
+ "type": "integer"
2329
+ }
2330
+ },
2331
+ "additionalProperties": false,
2332
+ "required": [
2333
+ "name",
2334
+ "amountMin",
2335
+ "amountMax"
2336
+ ]
2337
+ }
2338
+ ]
2339
+ },
2289
2340
  "dataDamageTags": {
2290
2341
  "type": "string",
2291
2342
  "description": "A: Acid\n B: Bludgeoning\n C: Cold\n F: Fire\n O: Force\n L: Lightning\n N: Necrotic\n P: Piercing\n I: Poison\n Y: Psychic\n R: Radiant\n S: Slashing\n T: Thunder",
@@ -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.13.14",
6
+ "version": "1.13.15",
7
7
  "$defs": {
8
8
  "metaBlock": {
9
9
  "type": "object",
@@ -2262,30 +2262,81 @@
2262
2262
  },
2263
2263
  "uniqueItems": true
2264
2264
  },
2265
- "consumesObject": {
2265
+ "_consumesObjectBase": {
2266
2266
  "type": "object",
2267
2267
  "properties": {
2268
2268
  "name": {
2269
2269
  "type": "string",
2270
2270
  "examples": [
2271
- "Superiority Dice",
2271
+ "Superiority Die",
2272
2272
  "Ki",
2273
2273
  "Channel Divinity",
2274
- "Psionic Energy Dice",
2274
+ "Psionic Energy Die",
2275
2275
  "Wild Shape",
2276
- "Sorcery Points",
2276
+ "Sorcery Point",
2277
2277
  "Arcane Shot"
2278
2278
  ]
2279
- },
2280
- "amount": {
2281
- "type": "integer"
2282
2279
  }
2283
2280
  },
2284
- "required": [
2285
- "name"
2286
- ],
2287
2281
  "additionalProperties": false
2288
2282
  },
2283
+ "consumesObject": {
2284
+ "oneOf": [
2285
+ {
2286
+ "type": "object",
2287
+ "properties": {
2288
+ "name": {
2289
+ "type": "string",
2290
+ "examples": [
2291
+ "Superiority Die",
2292
+ "Ki",
2293
+ "Channel Divinity",
2294
+ "Psionic Energy Die",
2295
+ "Wild Shape",
2296
+ "Sorcery Point",
2297
+ "Arcane Shot"
2298
+ ]
2299
+ },
2300
+ "amount": {
2301
+ "type": "integer"
2302
+ }
2303
+ },
2304
+ "additionalProperties": false,
2305
+ "required": [
2306
+ "name"
2307
+ ]
2308
+ },
2309
+ {
2310
+ "type": "object",
2311
+ "properties": {
2312
+ "name": {
2313
+ "type": "string",
2314
+ "examples": [
2315
+ "Superiority Die",
2316
+ "Ki",
2317
+ "Channel Divinity",
2318
+ "Psionic Energy Die",
2319
+ "Wild Shape",
2320
+ "Sorcery Point",
2321
+ "Arcane Shot"
2322
+ ]
2323
+ },
2324
+ "amountMin": {
2325
+ "type": "integer"
2326
+ },
2327
+ "amountMax": {
2328
+ "type": "integer"
2329
+ }
2330
+ },
2331
+ "additionalProperties": false,
2332
+ "required": [
2333
+ "name",
2334
+ "amountMin",
2335
+ "amountMax"
2336
+ ]
2337
+ }
2338
+ ]
2339
+ },
2289
2340
  "dataDamageTags": {
2290
2341
  "type": "string",
2291
2342
  "description": "A: Acid\n B: Bludgeoning\n C: Cold\n F: Fire\n O: Force\n L: Lightning\n N: Necrotic\n P: Piercing\n I: Poison\n Y: Psychic\n R: Radiant\n S: Slashing\n T: Thunder",
@@ -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.13.14",
6
+ "version": "1.13.15",
7
7
  "$defs": {
8
8
  "metaBlock": {
9
9
  "type": "object",
@@ -2242,30 +2242,81 @@
2242
2242
  },
2243
2243
  "uniqueItems": true
2244
2244
  },
2245
- "consumesObject": {
2245
+ "_consumesObjectBase": {
2246
2246
  "type": "object",
2247
2247
  "properties": {
2248
2248
  "name": {
2249
2249
  "type": "string",
2250
2250
  "enum": [
2251
- "Superiority Dice",
2251
+ "Superiority Die",
2252
2252
  "Ki",
2253
2253
  "Channel Divinity",
2254
- "Psionic Energy Dice",
2254
+ "Psionic Energy Die",
2255
2255
  "Wild Shape",
2256
- "Sorcery Points",
2256
+ "Sorcery Point",
2257
2257
  "Arcane Shot"
2258
2258
  ]
2259
- },
2260
- "amount": {
2261
- "type": "integer"
2262
2259
  }
2263
2260
  },
2264
- "required": [
2265
- "name"
2266
- ],
2267
2261
  "additionalProperties": false
2268
2262
  },
2263
+ "consumesObject": {
2264
+ "oneOf": [
2265
+ {
2266
+ "type": "object",
2267
+ "properties": {
2268
+ "name": {
2269
+ "type": "string",
2270
+ "enum": [
2271
+ "Superiority Die",
2272
+ "Ki",
2273
+ "Channel Divinity",
2274
+ "Psionic Energy Die",
2275
+ "Wild Shape",
2276
+ "Sorcery Point",
2277
+ "Arcane Shot"
2278
+ ]
2279
+ },
2280
+ "amount": {
2281
+ "type": "integer"
2282
+ }
2283
+ },
2284
+ "additionalProperties": false,
2285
+ "required": [
2286
+ "name"
2287
+ ]
2288
+ },
2289
+ {
2290
+ "type": "object",
2291
+ "properties": {
2292
+ "name": {
2293
+ "type": "string",
2294
+ "enum": [
2295
+ "Superiority Die",
2296
+ "Ki",
2297
+ "Channel Divinity",
2298
+ "Psionic Energy Die",
2299
+ "Wild Shape",
2300
+ "Sorcery Point",
2301
+ "Arcane Shot"
2302
+ ]
2303
+ },
2304
+ "amountMin": {
2305
+ "type": "integer"
2306
+ },
2307
+ "amountMax": {
2308
+ "type": "integer"
2309
+ }
2310
+ },
2311
+ "additionalProperties": false,
2312
+ "required": [
2313
+ "name",
2314
+ "amountMin",
2315
+ "amountMax"
2316
+ ]
2317
+ }
2318
+ ]
2319
+ },
2269
2320
  "dataDamageTags": {
2270
2321
  "type": "string",
2271
2322
  "description": "A: Acid\n B: Bludgeoning\n C: Cold\n F: Fire\n O: Force\n L: Lightning\n N: Necrotic\n P: Piercing\n I: Poison\n Y: Psychic\n R: Radiant\n S: Slashing\n T: Thunder",
@@ -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.13.14",
6
+ "version": "1.13.15",
7
7
  "$defs": {
8
8
  "metaBlock": {
9
9
  "type": "object",
@@ -2242,30 +2242,81 @@
2242
2242
  },
2243
2243
  "uniqueItems": true
2244
2244
  },
2245
- "consumesObject": {
2245
+ "_consumesObjectBase": {
2246
2246
  "type": "object",
2247
2247
  "properties": {
2248
2248
  "name": {
2249
2249
  "type": "string",
2250
2250
  "enum": [
2251
- "Superiority Dice",
2251
+ "Superiority Die",
2252
2252
  "Ki",
2253
2253
  "Channel Divinity",
2254
- "Psionic Energy Dice",
2254
+ "Psionic Energy Die",
2255
2255
  "Wild Shape",
2256
- "Sorcery Points",
2256
+ "Sorcery Point",
2257
2257
  "Arcane Shot"
2258
2258
  ]
2259
- },
2260
- "amount": {
2261
- "type": "integer"
2262
2259
  }
2263
2260
  },
2264
- "required": [
2265
- "name"
2266
- ],
2267
2261
  "additionalProperties": false
2268
2262
  },
2263
+ "consumesObject": {
2264
+ "oneOf": [
2265
+ {
2266
+ "type": "object",
2267
+ "properties": {
2268
+ "name": {
2269
+ "type": "string",
2270
+ "enum": [
2271
+ "Superiority Die",
2272
+ "Ki",
2273
+ "Channel Divinity",
2274
+ "Psionic Energy Die",
2275
+ "Wild Shape",
2276
+ "Sorcery Point",
2277
+ "Arcane Shot"
2278
+ ]
2279
+ },
2280
+ "amount": {
2281
+ "type": "integer"
2282
+ }
2283
+ },
2284
+ "additionalProperties": false,
2285
+ "required": [
2286
+ "name"
2287
+ ]
2288
+ },
2289
+ {
2290
+ "type": "object",
2291
+ "properties": {
2292
+ "name": {
2293
+ "type": "string",
2294
+ "enum": [
2295
+ "Superiority Die",
2296
+ "Ki",
2297
+ "Channel Divinity",
2298
+ "Psionic Energy Die",
2299
+ "Wild Shape",
2300
+ "Sorcery Point",
2301
+ "Arcane Shot"
2302
+ ]
2303
+ },
2304
+ "amountMin": {
2305
+ "type": "integer"
2306
+ },
2307
+ "amountMax": {
2308
+ "type": "integer"
2309
+ }
2310
+ },
2311
+ "additionalProperties": false,
2312
+ "required": [
2313
+ "name",
2314
+ "amountMin",
2315
+ "amountMax"
2316
+ ]
2317
+ }
2318
+ ]
2319
+ },
2269
2320
  "dataDamageTags": {
2270
2321
  "type": "string",
2271
2322
  "description": "A: Acid\n B: Bludgeoning\n C: Cold\n F: Fire\n O: Force\n L: Lightning\n N: Necrotic\n P: Piercing\n I: Poison\n Y: Psychic\n R: Radiant\n S: Slashing\n T: Thunder",