optolith-database-schema 0.1.1 → 0.1.4

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.
Files changed (111) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/lib/types/Advantage.d.ts +1 -0
  3. package/lib/types/Disadvantage.d.ts +1 -0
  4. package/lib/types/FamiliarsTrick.d.ts +2 -1
  5. package/lib/types/_Activatable.d.ts +685 -5
  6. package/lib/types/_ActivatableSkill.d.ts +4 -0
  7. package/lib/types/_Identifier.d.ts +12 -1
  8. package/lib/types/_Identifier.js +12 -0
  9. package/lib/types/magicalActions/Curse.d.ts +1 -1
  10. package/lib/types/magicalActions/ElvenMagicalSong.d.ts +1 -1
  11. package/lib/types/specialAbility/AdvancedCombatSpecialAbility.d.ts +2 -0
  12. package/lib/types/specialAbility/AdvancedKarmaSpecialAbility.d.ts +1 -0
  13. package/lib/types/specialAbility/AdvancedMagicalSpecialAbility.d.ts +1 -0
  14. package/lib/types/specialAbility/AdvancedSkillSpecialAbility.d.ts +1 -0
  15. package/lib/types/specialAbility/AncestorGlyph.d.ts +1 -0
  16. package/lib/types/specialAbility/BrawlingSpecialAbility.d.ts +1 -0
  17. package/lib/types/specialAbility/CeremonialItemSpecialAbility.d.ts +1 -0
  18. package/lib/types/specialAbility/CombatSpecialAbility.d.ts +2 -0
  19. package/lib/types/specialAbility/CombatStyleSpecialAbility.d.ts +1 -0
  20. package/lib/types/specialAbility/CommandSpecialAbility.d.ts +1 -0
  21. package/lib/types/specialAbility/FamiliarSpecialAbility.d.ts +1 -0
  22. package/lib/types/specialAbility/FatePointSexSpecialAbility.d.ts +1 -0
  23. package/lib/types/specialAbility/FatePointSpecialAbility.d.ts +1 -0
  24. package/lib/types/specialAbility/GeneralSpecialAbility.d.ts +1 -0
  25. package/lib/types/specialAbility/KarmaSpecialAbility.d.ts +1 -0
  26. package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.d.ts +1 -0
  27. package/lib/types/specialAbility/LycantropicGift.d.ts +1 -0
  28. package/lib/types/specialAbility/MagicStyleSpecialAbility.d.ts +1 -0
  29. package/lib/types/specialAbility/MagicalSpecialAbility.d.ts +1 -0
  30. package/lib/types/specialAbility/PactGift.d.ts +1 -0
  31. package/lib/types/specialAbility/ProtectiveWardingCircleSpecialAbility.d.ts +1 -0
  32. package/lib/types/specialAbility/Sermon.d.ts +1 -0
  33. package/lib/types/specialAbility/SexSpecialAbility.d.ts +1 -0
  34. package/lib/types/specialAbility/SikaryanDrainSpecialAbility.d.ts +1 -0
  35. package/lib/types/specialAbility/SkillStyleSpecialAbility.d.ts +1 -0
  36. package/lib/types/specialAbility/VampiricGift.d.ts +1 -0
  37. package/lib/types/specialAbility/Vision.d.ts +1 -0
  38. package/lib/types/traditionArtifacts/ArcaneOrbEnchantment.d.ts +3 -0
  39. package/lib/types/traditionArtifacts/AttireEnchantment.d.ts +3 -0
  40. package/lib/types/traditionArtifacts/BowlEnchantment.d.ts +3 -0
  41. package/lib/types/traditionArtifacts/CauldronEnchantment.d.ts +4 -1
  42. package/lib/types/traditionArtifacts/ChronicleEnchantment.d.ts +3 -0
  43. package/lib/types/traditionArtifacts/DaggerRitual.d.ts +3 -0
  44. package/lib/types/traditionArtifacts/FoolsHatEnchantment.d.ts +3 -0
  45. package/lib/types/traditionArtifacts/InstrumentEnchantment.d.ts +3 -0
  46. package/lib/types/traditionArtifacts/Krallenkettenzauber.d.ts +3 -0
  47. package/lib/types/traditionArtifacts/OrbEnchantment.d.ts +3 -0
  48. package/lib/types/traditionArtifacts/RingEnchantment.d.ts +3 -0
  49. package/lib/types/traditionArtifacts/SickleRitual.d.ts +3 -0
  50. package/lib/types/traditionArtifacts/SpellSwordEnchantment.d.ts +3 -0
  51. package/lib/types/traditionArtifacts/StaffEnchantment.d.ts +3 -0
  52. package/lib/types/traditionArtifacts/ToyEnchantment.d.ts +3 -0
  53. package/lib/types/traditionArtifacts/Trinkhornzauber.d.ts +3 -0
  54. package/lib/types/traditionArtifacts/WandEnchantment.d.ts +3 -0
  55. package/lib/types/traditionArtifacts/WeaponEnchantment.d.ts +3 -0
  56. package/package.json +2 -2
  57. package/schema/Advantage.schema.json +11 -8
  58. package/schema/Disadvantage.schema.json +9 -6
  59. package/schema/FamiliarsTrick.schema.json +1 -0
  60. package/schema/_Activatable.schema.json +1068 -13
  61. package/schema/_ActivatableSkill.schema.json +1 -0
  62. package/schema/_Identifier.schema.json +50 -4
  63. package/schema/magicalActions/Curse.schema.json +1 -1
  64. package/schema/magicalActions/ElvenMagicalSong.schema.json +1 -1
  65. package/schema/specialAbility/AdvancedCombatSpecialAbility.schema.json +16 -10
  66. package/schema/specialAbility/AdvancedKarmaSpecialAbility.schema.json +11 -8
  67. package/schema/specialAbility/AdvancedMagicalSpecialAbility.schema.json +11 -8
  68. package/schema/specialAbility/AdvancedSkillSpecialAbility.schema.json +11 -8
  69. package/schema/specialAbility/AncestorGlyph.schema.json +9 -6
  70. package/schema/specialAbility/BlessedTradition.schema.json +6 -6
  71. package/schema/specialAbility/BrawlingSpecialAbility.schema.json +11 -8
  72. package/schema/specialAbility/CeremonialItemSpecialAbility.schema.json +12 -9
  73. package/schema/specialAbility/CombatSpecialAbility.schema.json +16 -10
  74. package/schema/specialAbility/CombatStyleSpecialAbility.schema.json +14 -11
  75. package/schema/specialAbility/CommandSpecialAbility.schema.json +11 -8
  76. package/schema/specialAbility/FamiliarSpecialAbility.schema.json +9 -6
  77. package/schema/specialAbility/FatePointSexSpecialAbility.schema.json +9 -6
  78. package/schema/specialAbility/FatePointSpecialAbility.schema.json +11 -8
  79. package/schema/specialAbility/GeneralSpecialAbility.schema.json +11 -8
  80. package/schema/specialAbility/KarmaSpecialAbility.schema.json +9 -6
  81. package/schema/specialAbility/LiturgicalStyleSpecialAbility.schema.json +12 -9
  82. package/schema/specialAbility/LycantropicGift.schema.json +9 -6
  83. package/schema/specialAbility/MagicStyleSpecialAbility.schema.json +12 -9
  84. package/schema/specialAbility/MagicalSpecialAbility.schema.json +11 -8
  85. package/schema/specialAbility/MagicalTradition.schema.json +7 -7
  86. package/schema/specialAbility/PactGift.schema.json +9 -6
  87. package/schema/specialAbility/ProtectiveWardingCircleSpecialAbility.schema.json +8 -5
  88. package/schema/specialAbility/Sermon.schema.json +9 -6
  89. package/schema/specialAbility/SexSpecialAbility.schema.json +11 -8
  90. package/schema/specialAbility/SikaryanDrainSpecialAbility.schema.json +9 -6
  91. package/schema/specialAbility/SkillStyleSpecialAbility.schema.json +10 -7
  92. package/schema/specialAbility/VampiricGift.schema.json +9 -6
  93. package/schema/specialAbility/Vision.schema.json +9 -6
  94. package/schema/traditionArtifacts/ArcaneOrbEnchantment.schema.json +17 -7
  95. package/schema/traditionArtifacts/AttireEnchantment.schema.json +17 -7
  96. package/schema/traditionArtifacts/BowlEnchantment.schema.json +17 -7
  97. package/schema/traditionArtifacts/CauldronEnchantment.schema.json +19 -9
  98. package/schema/traditionArtifacts/ChronicleEnchantment.schema.json +17 -7
  99. package/schema/traditionArtifacts/DaggerRitual.schema.json +17 -7
  100. package/schema/traditionArtifacts/FoolsHatEnchantment.schema.json +17 -7
  101. package/schema/traditionArtifacts/InstrumentEnchantment.schema.json +17 -7
  102. package/schema/traditionArtifacts/Krallenkettenzauber.schema.json +17 -7
  103. package/schema/traditionArtifacts/OrbEnchantment.schema.json +17 -7
  104. package/schema/traditionArtifacts/RingEnchantment.schema.json +17 -7
  105. package/schema/traditionArtifacts/SickleRitual.schema.json +17 -7
  106. package/schema/traditionArtifacts/SpellSwordEnchantment.schema.json +17 -7
  107. package/schema/traditionArtifacts/StaffEnchantment.schema.json +17 -7
  108. package/schema/traditionArtifacts/ToyEnchantment.schema.json +17 -7
  109. package/schema/traditionArtifacts/Trinkhornzauber.schema.json +17 -7
  110. package/schema/traditionArtifacts/WandEnchantment.schema.json +17 -7
  111. package/schema/traditionArtifacts/WeaponEnchantment.schema.json +17 -7
@@ -2,6 +2,7 @@
2
2
  * General type specifications used by multiple activatable entries.
3
3
  * @title Activatable
4
4
  */
5
+ import { Duration } from "./_ActivatableSkill";
5
6
  import { Identifier } from "./_Identifier";
6
7
  import { Prerequisite } from "./_Prerequisite";
7
8
  /**
@@ -28,9 +29,19 @@ export declare type NameInLibrary = string;
28
29
  */
29
30
  export declare type Levels = number;
30
31
  /**
32
+ * The number stating how often you can buy the entry. The **default** depends on
33
+ * the entry type:
31
34
  *
35
+ * - **Advantage:** `1` in all cases (as specified in the **Core Rules**)
36
+ * - **Disadvantage:** `1` in all cases (as specified in the **Core Rules**)
37
+ * - **Special Abilities:** `1` if no options can be selected, otherwise the
38
+ * number of possible options
39
+ *
40
+ * The maximum is only set if it differs from the defaults specified above.
41
+ * @integer
42
+ * @minimum 1
32
43
  */
33
- export declare type Maximum = "";
44
+ export declare type Maximum = number;
34
45
  /**
35
46
  *
36
47
  */
@@ -182,19 +193,688 @@ export declare type SkillUses = {
182
193
  /**
183
194
  * The penalty the special ability gives when used.
184
195
  */
185
- export declare type Penalty = "";
196
+ export declare type Penalty = {
197
+ tag: "Single";
198
+ /**
199
+ * The penalty value.
200
+ * @integer
201
+ */
202
+ value: number;
203
+ /**
204
+ * Set to `true` if the penalty applies to the parry instead of the attack.
205
+ */
206
+ applies_to_parry?: true;
207
+ } | {
208
+ tag: "ByHandedness";
209
+ /**
210
+ * The penalty value for one-handed weapons.
211
+ * @integer
212
+ */
213
+ one_handed: number;
214
+ /**
215
+ * The penalty value for two-handed weapons.
216
+ * @integer
217
+ */
218
+ two_handed: number;
219
+ /**
220
+ * Set to `true` if the penalty applies to the parry instead of the attack.
221
+ */
222
+ applies_to_parry?: true;
223
+ } | {
224
+ tag: "ByActivation";
225
+ /**
226
+ * The penalty value if the entry has been bought by the character.
227
+ * @integer
228
+ */
229
+ active: number;
230
+ /**
231
+ * The penalty value if the entry has not been bought by the character.
232
+ * @integer
233
+ */
234
+ inactive: number;
235
+ /**
236
+ * Set to `true` if the penalty applies to the parry instead of the attack.
237
+ */
238
+ applies_to_parry?: true;
239
+ } | {
240
+ tag: "Selection";
241
+ options: {
242
+ tag: "Specific";
243
+ /**
244
+ * The list of specific penalty options.
245
+ * @minItems 2
246
+ * @uniqueItems
247
+ */
248
+ list: {
249
+ /**
250
+ * The penalty value.
251
+ * @integer
252
+ */
253
+ value: number;
254
+ }[];
255
+ } | {
256
+ tag: "Range";
257
+ /**
258
+ * The minimum penalty value.
259
+ * @integer
260
+ */
261
+ minimum: number;
262
+ /**
263
+ * The maximum penalty value.
264
+ * @integer
265
+ */
266
+ maximum: number;
267
+ };
268
+ } | {
269
+ tag: "ByLevel";
270
+ /**
271
+ * A continuous range of penalties for each level. The first element is the
272
+ * penalty for the first level, the second element is the penalty for the
273
+ * second level, and so on.
274
+ * @minItems 2
275
+ */
276
+ levels: {
277
+ /**
278
+ * The penalty value for this level.
279
+ * @integer
280
+ */
281
+ value: number;
282
+ }[];
283
+ /**
284
+ * The identifier of the combat-related special ability of which the level
285
+ * defines the penalty instead.
286
+ */
287
+ external_id?: Identifier.Group.CombatRelatedSpecialAbility;
288
+ } | {
289
+ tag: "ByAttack";
290
+ /**
291
+ * A list of penalties for subsequent attacks. The first element is the
292
+ * penalty for the first attack, the second element is the penalty for the
293
+ * second attack, and so on. The order of the first element may be changed
294
+ * using `initial_order`, so that e.g. if set to `2`, the first element is
295
+ * the penalty for the second attack, the second element is the penalty for
296
+ * the third attack, and so on.
297
+ * @minItems 1
298
+ */
299
+ list: {
300
+ /**
301
+ * The penalty value for this order.
302
+ * @integer
303
+ */
304
+ value: number;
305
+ }[];
306
+ /**
307
+ * The order of the first element in the `list` of penalties.
308
+ */
309
+ initial_order?: number;
310
+ /**
311
+ * Set if a predefined different word should be used instead of the word
312
+ * `attack` for display purposes.
313
+ */
314
+ attack_replacement?: {
315
+ tag: "Throw";
316
+ };
317
+ } | {
318
+ tag: "DependsOnHitZone";
319
+ };
320
+ export declare type EnchantmentCost = {
321
+ tag: "ArcaneEnergyCost";
322
+ ae_cost: ArcaneEnergyCost;
323
+ } | {
324
+ tag: "BindingCost";
325
+ binding_cost: BindingCost;
326
+ };
186
327
  /**
187
328
  * The AE Cost.
188
329
  */
189
- export declare type ArcaneEnergyCost = "";
330
+ export declare type ArcaneEnergyCost = {
331
+ tag: "Fixed";
332
+ /**
333
+ * The AE cost value.
334
+ * @integer
335
+ * @minimum 1
336
+ */
337
+ value: number;
338
+ /**
339
+ * Set to `true` if the AE costs are permanent.
340
+ * @integer
341
+ * @minimum 1
342
+ */
343
+ is_permanent?: true;
344
+ /**
345
+ * Specified if the AE cost `value` has to be paid for each time interval.
346
+ */
347
+ interval?: Duration.UnitValue;
348
+ /**
349
+ * The AE cost are per level of the enchantment. It may either be displayed
350
+ * in a compressed way (e.g. `1 AE per level`) or in a verbose way (e.g. `1
351
+ * AE for level I; 2 AE for level II`).
352
+ */
353
+ per_level?: {
354
+ tag: "Compressed";
355
+ } | {
356
+ tag: "Verbose";
357
+ };
358
+ /**
359
+ * All translations for the entry, identified by IETF language tag
360
+ * (BCP47).
361
+ * @minProperties 1
362
+ */
363
+ translations?: {
364
+ /**
365
+ * @patternProperties ^[a-z]{2}-[A-Z]{2}$
366
+ * @minProperties 1
367
+ */
368
+ [localeId: string]: {
369
+ /**
370
+ * A note, appended to the generated string in parenthesis.
371
+ */
372
+ note?: {
373
+ /**
374
+ * The full note.
375
+ * @minLength 1
376
+ */
377
+ default: string;
378
+ /**
379
+ * A compressed note, if applicable. If not specified it should not
380
+ * be displayed in small location.
381
+ * @minLength 1
382
+ */
383
+ compressed?: string;
384
+ };
385
+ };
386
+ };
387
+ } | {
388
+ tag: "PerCountable";
389
+ /**
390
+ * The AE cost value that has to be per a specific countable entity.
391
+ * @integer
392
+ * @minimum 1
393
+ */
394
+ value: number;
395
+ /**
396
+ * If defined, in addition to the cost per entity you have to pay a flat
397
+ * amount, regardless of the entity count.
398
+ * @integer
399
+ * @minimum 1
400
+ */
401
+ base_value?: number;
402
+ /**
403
+ * All translations for the entry, identified by IETF language tag
404
+ * (BCP47).
405
+ * @minProperties 1
406
+ */
407
+ translations?: {
408
+ /**
409
+ * @patternProperties ^[a-z]{2}-[A-Z]{2}$
410
+ * @minProperties 1
411
+ */
412
+ [localeId: string]: {
413
+ /**
414
+ * The cost have to be per a specific countable entity, e.g. `8 AE per
415
+ * person`.
416
+ */
417
+ per: {
418
+ /**
419
+ * The full countable entity name.
420
+ * @minLength 1
421
+ */
422
+ default: string;
423
+ /**
424
+ * The compressed countable entity name.
425
+ * @minLength 1
426
+ */
427
+ compressed: string;
428
+ };
429
+ /**
430
+ * A note, appended to the generated string in parenthesis.
431
+ */
432
+ note?: {
433
+ /**
434
+ * The full note.
435
+ * @minLength 1
436
+ */
437
+ default: string;
438
+ /**
439
+ * A compressed note, if applicable. If not specified it should not
440
+ * be displayed in small location.
441
+ * @minLength 1
442
+ */
443
+ compressed?: string;
444
+ };
445
+ };
446
+ };
447
+ } | {
448
+ tag: "ActivationAndHalfInterval";
449
+ /**
450
+ * The AE cost value that has to be payed for activation. Half of this value
451
+ * has to be payed each interval.
452
+ * @integer
453
+ * @minimum 2
454
+ * @multipleOf 2
455
+ */
456
+ value: number;
457
+ /**
458
+ * The time interval for which the AE cost `value` has to be paid.
459
+ */
460
+ interval: Duration.UnitValue;
461
+ } | {
462
+ tag: "Indefinite";
463
+ /**
464
+ * The indefinite AE cost may be modified by a certain value.
465
+ */
466
+ modifier: {
467
+ /**
468
+ * The arithmetic how to apply the `value` to the indefinite base value.
469
+ */
470
+ arithmetic: {
471
+ tag: "Add";
472
+ } | {
473
+ tag: "Multiply";
474
+ };
475
+ /**
476
+ * The value that is applied to the indefinite base value using the
477
+ * defined `arithmetic`.
478
+ * @integer
479
+ * @minimum 1
480
+ */
481
+ value: number;
482
+ };
483
+ /**
484
+ * All translations for the entry, identified by IETF language tag (BCP47).
485
+ * @minProperties 1
486
+ */
487
+ translations: {
488
+ /**
489
+ * @patternProperties ^[a-z]{2}-[A-Z]{2}$
490
+ */
491
+ [localeId: string]: {
492
+ /**
493
+ * A description of where the cost come from.
494
+ */
495
+ description: {
496
+ /**
497
+ * The full description of where the cost come from.
498
+ * @minLength 1
499
+ */
500
+ default: string;
501
+ /**
502
+ * A compressed description of where the cost come from for use in
503
+ * small areas (e.g. on character sheet).
504
+ * @minLength 1
505
+ */
506
+ compressed: string;
507
+ };
508
+ };
509
+ };
510
+ } | {
511
+ tag: "Disjunction";
512
+ /**
513
+ * Specified if the selected AE cost option has to be paid for each time
514
+ * interval.
515
+ */
516
+ interval?: {
517
+ /**
518
+ * The interval itself.
519
+ */
520
+ value: Duration.UnitValue;
521
+ /**
522
+ * The AE cost value for activation.
523
+ * @integer
524
+ * @minimum 1
525
+ */
526
+ activation_value: number;
527
+ /**
528
+ * Set to `true` if the action where the enchantment is casted does
529
+ * **not** as a part of the first interval that has to be payed, so that
530
+ * the first interval payment needs to be done after the activation.
531
+ *
532
+ * This works different than other sustained spells, since for them the
533
+ * end of the cast usually already counts as part of the first interval.
534
+ */
535
+ after_activation: boolean;
536
+ };
537
+ /**
538
+ * The possible AE cost values.
539
+ */
540
+ options: {
541
+ /**
542
+ * A possible AE cost value.
543
+ * @integer
544
+ * @minimum 1
545
+ */
546
+ value: number;
547
+ /**
548
+ * All translations for the entry, identified by IETF language tag
549
+ * (BCP47).
550
+ * @minProperties 1
551
+ */
552
+ translations?: {
553
+ /**
554
+ * @patternProperties ^[a-z]{2}-[A-Z]{2}$
555
+ * @minProperties 1
556
+ */
557
+ [localeId: string]: {
558
+ /**
559
+ * A note, appended to the generated option string in parenthesis.
560
+ */
561
+ note?: {
562
+ /**
563
+ * The full note.
564
+ * @minLength 1
565
+ */
566
+ default: string;
567
+ /**
568
+ * A compressed note, if applicable. If not specified it should not
569
+ * be displayed in small location.
570
+ * @minLength 1
571
+ */
572
+ compressed?: string;
573
+ };
574
+ };
575
+ };
576
+ }[];
577
+ } | {
578
+ tag: "None";
579
+ /**
580
+ * All translations for the entry, identified by IETF language tag
581
+ * (BCP47).
582
+ * @minProperties 1
583
+ */
584
+ translations?: {
585
+ /**
586
+ * @patternProperties ^[a-z]{2}-[A-Z]{2}$
587
+ * @minProperties 1
588
+ */
589
+ [localeId: string]: {
590
+ /**
591
+ * A note, appended to the generated string in parenthesis.
592
+ */
593
+ note?: {
594
+ /**
595
+ * The full note.
596
+ * @minLength 1
597
+ */
598
+ default: string;
599
+ /**
600
+ * A compressed note, if applicable. If not specified it should not
601
+ * be displayed in small location.
602
+ * @minLength 1
603
+ */
604
+ compressed?: string;
605
+ };
606
+ };
607
+ };
608
+ } | {
609
+ tag: "Variable";
610
+ };
190
611
  /**
191
612
  * The volume points the enchantment needs.
192
613
  */
193
- export declare type Volume = "";
614
+ export declare type Volume = {
615
+ tag: "Fixed";
616
+ /**
617
+ * The volume points.
618
+ * @integer
619
+ * @minimum 0
620
+ */
621
+ points: number;
622
+ } | {
623
+ tag: "PerLevel";
624
+ /**
625
+ * The volume points per level.
626
+ * @integer
627
+ * @minimum 1
628
+ */
629
+ points: number;
630
+ } | {
631
+ tag: "ByLevel";
632
+ /**
633
+ * The volume points for each level. The first element is the volume points
634
+ * for the first level, the second element is the volume points for the
635
+ * second level, and so on.
636
+ * @minItems 2
637
+ */
638
+ list: {
639
+ /**
640
+ * The volume points for this level.
641
+ * @integer
642
+ * @minimum 0
643
+ */
644
+ points: number;
645
+ }[];
646
+ } | {
647
+ tag: "Map";
648
+ map: VolumeMap;
649
+ };
650
+ /**
651
+ * A content that is `3/4/5 Points for Chimera, Daimonid, Golems, Undead /
652
+ * Fairies, Ghosts / Demons, Elementals` may be respresented as the following
653
+ * map:
654
+ *
655
+ * ```yaml
656
+ * options:
657
+ * - points: 3
658
+ * associated_options:
659
+ * - id:
660
+ * tag: General
661
+ * value: # ...
662
+ * # ...
663
+ * translations:
664
+ * en-US:
665
+ * label: "Chimera, Daimonid, Golems, Undead"
666
+ * label_standalone: "Chimera/Daimonid/Golems/Undead"
667
+ * - points: 4
668
+ * associated_options:
669
+ * - id:
670
+ * tag: General
671
+ * value: # ...
672
+ * # ...
673
+ * translations:
674
+ * en-US:
675
+ * label: "Fairies, Ghosts"
676
+ * label_standalone: "Fairies/Ghosts"
677
+ * - points: 5
678
+ * associated_options:
679
+ * - id:
680
+ * tag: General
681
+ * value: # ...
682
+ * # ...
683
+ * translations:
684
+ * en-US:
685
+ * label: "Demons, Elementals"
686
+ * label_standalone: "Demons/Elementals"
687
+ * ```
688
+ *
689
+ * This will generate the exact same string as seen above. The associated
690
+ * options are not present in the example, but they link to the options the
691
+ * volume specification is meant for.
692
+ */
693
+ export declare type VolumeMap = {
694
+ /**
695
+ * The possible costs and associated labels.
696
+ * @minItems 2
697
+ */
698
+ options: VolumeMapOption[];
699
+ /**
700
+ * All translations for the entry, identified by IETF language tag (BCP47).
701
+ * @minProperties 1
702
+ */
703
+ translations?: {
704
+ /**
705
+ * @patternProperties ^[a-z]{2}-[A-Z]{2}$
706
+ */
707
+ [localeId: string]: {
708
+ /**
709
+ * Place a string between the `for` and the grouped map option labels.
710
+ */
711
+ list_prepend?: string;
712
+ /**
713
+ * Place a string after the grouped map option labels.
714
+ */
715
+ list_append?: string;
716
+ /**
717
+ * If the string from the book cannot be generated using the default
718
+ * generation technique, use this string. All options still need to be
719
+ * inserted propertly, since it may be used by in-game tools to provide a
720
+ * selection to players.
721
+ */
722
+ replacement?: string;
723
+ };
724
+ };
725
+ };
726
+ export declare type VolumeMapOption = {
727
+ /**
728
+ * The full permanent AE cost value for this option.
729
+ * @integer
730
+ * @minimum 1
731
+ */
732
+ points: number;
733
+ /**
734
+ * Links to the options this volume specification is meant for.
735
+ */
736
+ associated_options: {
737
+ /**
738
+ * The option's identifier.
739
+ */
740
+ id: Identifier.Group.VolumePointsOptionReference;
741
+ }[];
742
+ /**
743
+ * All translations for the entry, identified by IETF language tag (BCP47).
744
+ * @minProperties 1
745
+ */
746
+ translations?: {
747
+ /**
748
+ * @patternProperties ^[a-z]{2}-[A-Z]{2}$
749
+ */
750
+ [localeId: string]: {
751
+ /**
752
+ * The description of the option for cost string generation.
753
+ * @minLength 1
754
+ */
755
+ label: string;
756
+ /**
757
+ * The description of the option if used standalone. Only used if
758
+ * different from `label`.
759
+ * @minLength 1
760
+ */
761
+ label_standalone?: string;
762
+ };
763
+ };
764
+ };
194
765
  /**
195
766
  * The binding cost for an enchantment.
196
767
  */
197
- export declare type BindingCost = "";
768
+ export declare type BindingCost = {
769
+ tag: "Fixed";
770
+ /**
771
+ * The permanent AE cost.
772
+ * @integer
773
+ * @minimum 1
774
+ */
775
+ permanent_value: number;
776
+ } | {
777
+ tag: "PerLevel";
778
+ /**
779
+ * The permanent AE cost per level.
780
+ * @integer
781
+ * @minimum 1
782
+ */
783
+ permanent_value: number;
784
+ } | {
785
+ tag: "Map";
786
+ map: BindingCostMap;
787
+ };
788
+ /**
789
+ * A content that is `2/4/8 permanent AE for spell-swords with the combat
790
+ * technique Daggers, Swords, or Two-Handed Swords` may be respresented as the
791
+ * following map:
792
+ *
793
+ * ```yaml
794
+ * options:
795
+ * - permanent_value: 2
796
+ * translations:
797
+ * en-US:
798
+ * label: "Daggers"
799
+ * label_standalone: "Dagger"
800
+ * - permanent_value: 4
801
+ * translations:
802
+ * en-US:
803
+ * label: "Swords"
804
+ * label_standalone: "Sword"
805
+ * - permanent_value: 8
806
+ * translations:
807
+ * en-US:
808
+ * label: "Two-Handed Swords"
809
+ * label_standalone: "Two-Handed Sword"
810
+ * list_prepend: "spell-swords with the combat technique"
811
+ * ```
812
+ *
813
+ * This will generate the exact same string as seen above.
814
+ */
815
+ export declare type BindingCostMap = {
816
+ /**
817
+ * The possible costs and associated labels.
818
+ * @minItems 2
819
+ */
820
+ options: VolumeMapOption[];
821
+ /**
822
+ * All translations for the entry, identified by IETF language tag (BCP47).
823
+ * @minProperties 1
824
+ */
825
+ translations?: {
826
+ /**
827
+ * @patternProperties ^[a-z]{2}-[A-Z]{2}$
828
+ */
829
+ [localeId: string]: {
830
+ /**
831
+ * Place a string between the `for` and the grouped map option labels.
832
+ */
833
+ list_prepend?: string;
834
+ /**
835
+ * Place a string after the grouped map option labels.
836
+ */
837
+ list_append?: string;
838
+ /**
839
+ * If the string from the book cannot be generated using the default
840
+ * generation technique, use this string. All options still need to be
841
+ * inserted propertly, since it may be used by in-game tools to provide a
842
+ * selection to players.
843
+ */
844
+ replacement?: string;
845
+ };
846
+ };
847
+ };
848
+ export declare type BindingCostMapOption = {
849
+ /**
850
+ * The full permanent AE cost value for this option.
851
+ * @integer
852
+ * @minimum 1
853
+ */
854
+ permanent_value: number;
855
+ /**
856
+ * All translations for the entry, identified by IETF language tag (BCP47).
857
+ * @minProperties 1
858
+ */
859
+ translations?: {
860
+ /**
861
+ * @patternProperties ^[a-z]{2}-[A-Z]{2}$
862
+ */
863
+ [localeId: string]: {
864
+ /**
865
+ * The description of the option for cost string generation.
866
+ * @minLength 1
867
+ */
868
+ label: string;
869
+ /**
870
+ * The description of the option if used standalone. Only used if
871
+ * different from `label`.
872
+ * @minLength 1
873
+ */
874
+ label_standalone?: string;
875
+ };
876
+ };
877
+ };
198
878
  /**
199
879
  * The magic property's identifier. `DependingOnProperty` can only be used if
200
880
  * the special ability has an option to select a property.