optolith-database-schema 0.28.0 → 0.28.2
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/CHANGELOG.md +16 -0
- package/gen/types.d.ts +5 -0
- package/lib/main.d.ts +1 -1
- package/lib/types/Advantage.d.ts +1055 -1053
- package/lib/types/Advantage.js +12 -12
- package/lib/types/AnimalDisease.d.ts +70 -69
- package/lib/types/AnimalDisease.js +8 -8
- package/lib/types/AnimalType.d.ts +4 -4
- package/lib/types/AnimalType.js +6 -6
- package/lib/types/ArcaneBardTradition.d.ts +23 -23
- package/lib/types/ArcaneBardTradition.js +2 -2
- package/lib/types/ArcaneDancerTradition.d.ts +23 -23
- package/lib/types/ArcaneDancerTradition.js +2 -2
- package/lib/types/Aspect.d.ts +5 -5
- package/lib/types/Aspect.js +8 -8
- package/lib/types/Attribute.d.ts +7 -7
- package/lib/types/Attribute.js +12 -12
- package/lib/types/Blessing.d.ts +79 -78
- package/lib/types/Blessing.js +43 -43
- package/lib/types/Cantrip.d.ts +98 -97
- package/lib/types/Cantrip.js +69 -69
- package/lib/types/Ceremony.d.ts +501 -499
- package/lib/types/Ceremony.js +38 -38
- package/lib/types/CombatTechnique.d.ts +113 -111
- package/lib/types/CombatTechnique.js +52 -50
- package/lib/types/Condition.d.ts +38 -37
- package/lib/types/Condition.js +12 -12
- package/lib/types/Continent.d.ts +4 -4
- package/lib/types/Continent.js +6 -6
- package/lib/types/Culture.d.ts +119 -118
- package/lib/types/Culture.js +157 -157
- package/lib/types/DerivedCharacteristic.d.ts +58 -57
- package/lib/types/DerivedCharacteristic.js +22 -22
- package/lib/types/Disadvantage.d.ts +989 -987
- package/lib/types/Disadvantage.js +14 -14
- package/lib/types/Disease.d.ts +84 -83
- package/lib/types/Disease.js +6 -6
- package/lib/types/Element.d.ts +4 -4
- package/lib/types/Element.js +6 -6
- package/lib/types/ExperienceLevel.d.ts +11 -11
- package/lib/types/ExperienceLevel.js +20 -20
- package/lib/types/EyeColor.d.ts +4 -4
- package/lib/types/EyeColor.js +6 -6
- package/lib/types/FamiliarsTrick.d.ts +141 -140
- package/lib/types/FamiliarsTrick.js +92 -88
- package/lib/types/HairColor.d.ts +4 -4
- package/lib/types/HairColor.js +6 -6
- package/lib/types/HomunculusType.d.ts +4 -4
- package/lib/types/HomunculusType.js +6 -6
- package/lib/types/Lessons.d.ts +129 -128
- package/lib/types/Lessons.js +98 -92
- package/lib/types/LiturgicalChant.d.ts +501 -499
- package/lib/types/LiturgicalChant.js +38 -38
- package/lib/types/Locale.d.ts +10 -10
- package/lib/types/Locale.js +16 -15
- package/lib/types/MetaCondition.d.ts +38 -37
- package/lib/types/MetaCondition.js +12 -12
- package/lib/types/PactCategory.d.ts +52 -51
- package/lib/types/PactCategory.js +24 -24
- package/lib/types/Patron.d.ts +74 -73
- package/lib/types/Patron.js +86 -83
- package/lib/types/PatronCategory.d.ts +5 -5
- package/lib/types/PatronCategory.js +8 -8
- package/lib/types/PersonalityTrait.d.ts +60 -59
- package/lib/types/PersonalityTrait.js +22 -22
- package/lib/types/Profession.d.ts +1835 -1833
- package/lib/types/Profession.js +259 -255
- package/lib/types/Property.d.ts +5 -5
- package/lib/types/Property.js +8 -8
- package/lib/types/Race.d.ts +156 -155
- package/lib/types/Race.js +130 -129
- package/lib/types/Region.d.ts +4 -4
- package/lib/types/Region.js +6 -6
- package/lib/types/Ritual.d.ts +503 -501
- package/lib/types/Ritual.js +37 -37
- package/lib/types/Service.d.ts +40 -39
- package/lib/types/Service.js +15 -15
- package/lib/types/SexPractice.d.ts +37 -36
- package/lib/types/SexPractice.js +14 -14
- package/lib/types/Skill.d.ts +84 -83
- package/lib/types/Skill.js +51 -51
- package/lib/types/SkillGroup.d.ts +7 -7
- package/lib/types/SkillGroup.js +12 -12
- package/lib/types/SkillModificationLevel.d.ts +22 -22
- package/lib/types/SkillModificationLevel.js +41 -41
- package/lib/types/SocialStatus.d.ts +5 -5
- package/lib/types/SocialStatus.js +8 -8
- package/lib/types/Spell.d.ts +503 -501
- package/lib/types/Spell.js +37 -37
- package/lib/types/State.d.ts +37 -36
- package/lib/types/State.js +10 -10
- package/lib/types/Talisman.d.ts +81 -80
- package/lib/types/Talisman.js +50 -48
- package/lib/types/TargetCategory.d.ts +5 -5
- package/lib/types/TargetCategory.js +7 -7
- package/lib/types/_Activatable.d.ts +9 -9
- package/lib/types/_Activatable.js +17 -17
- package/lib/types/_ActivatableAdvanced.d.ts +41 -41
- package/lib/types/_ActivatableAdvanced.js +48 -44
- package/lib/types/_ActivatableAdventurePointsValue.d.ts +146 -146
- package/lib/types/_ActivatableAdventurePointsValue.js +62 -62
- package/lib/types/_ActivatableAutomatic.d.ts +67 -67
- package/lib/types/_ActivatableAutomatic.js +30 -30
- package/lib/types/_ActivatableCombat.d.ts +94 -94
- package/lib/types/_ActivatableCombat.js +180 -174
- package/lib/types/_ActivatableNonMundane.d.ts +301 -301
- package/lib/types/_ActivatableNonMundane.js +204 -202
- package/lib/types/_ActivatableSelectOptionCategory.d.ts +1256 -1256
- package/lib/types/_ActivatableSelectOptionCategory.js +250 -226
- package/lib/types/_ActivatableSelectOptions.d.ts +960 -958
- package/lib/types/_ActivatableSelectOptions.js +34 -34
- package/lib/types/_ActivatableSkill.d.ts +880 -880
- package/lib/types/_ActivatableSkill.js +47 -43
- package/lib/types/_ActivatableSkillApplicationsAndUses.d.ts +97 -97
- package/lib/types/_ActivatableSkillApplicationsAndUses.js +27 -27
- package/lib/types/_ActivatableSkillCastingTime.d.ts +52 -52
- package/lib/types/_ActivatableSkillCastingTime.js +40 -40
- package/lib/types/_ActivatableSkillCheckResultBased.d.ts +18 -18
- package/lib/types/_ActivatableSkillCheckResultBased.js +19 -19
- package/lib/types/_ActivatableSkillCost.d.ts +208 -208
- package/lib/types/_ActivatableSkillCost.js +113 -113
- package/lib/types/_ActivatableSkillDuration.d.ts +159 -159
- package/lib/types/_ActivatableSkillDuration.js +69 -69
- package/lib/types/_ActivatableSkillEffect.d.ts +12 -12
- package/lib/types/_ActivatableSkillEffect.js +28 -28
- package/lib/types/_ActivatableSkillRange.d.ts +46 -46
- package/lib/types/_ActivatableSkillRange.js +50 -50
- package/lib/types/_ActivatableSkillTargetCategory.d.ts +11 -11
- package/lib/types/_ActivatableSkillTargetCategory.js +15 -15
- package/lib/types/_AlternativeNames.d.ts +4 -4
- package/lib/types/_AlternativeNames.js +7 -7
- package/lib/types/_ArcaneTradition.d.ts +23 -23
- package/lib/types/_ArcaneTradition.js +7 -7
- package/lib/types/_Blessed.d.ts +6 -6
- package/lib/types/_Blessed.js +9 -9
- package/lib/types/_CommonnessRatedAdvantageDisadvantage.d.ts +6 -6
- package/lib/types/_CommonnessRatedAdvantageDisadvantage.js +9 -9
- package/lib/types/_Dice.d.ts +5 -5
- package/lib/types/_Dice.js +9 -9
- package/lib/types/_DiseasePoison.d.ts +47 -47
- package/lib/types/_DiseasePoison.js +50 -50
- package/lib/types/_Enhancements.d.ts +125 -123
- package/lib/types/_Enhancements.js +22 -22
- package/lib/types/_Identifier.d.ts +1 -1
- package/lib/types/_Identifier.js +1 -1
- package/lib/types/_IdentifierGroup.d.ts +328 -328
- package/lib/types/_IdentifierGroup.js +328 -328
- package/lib/types/_ImprovementCost.d.ts +6 -6
- package/lib/types/_ImprovementCost.js +6 -6
- package/lib/types/_Influence.d.ts +58 -57
- package/lib/types/_Influence.js +18 -18
- package/lib/types/_MathExpression.d.ts +5 -5
- package/lib/types/_MathExpression.js +12 -12
- package/lib/types/_Prerequisite.d.ts +333 -333
- package/lib/types/_Prerequisite.js +89 -73
- package/lib/types/_ResponsiveText.d.ts +10 -10
- package/lib/types/_ResponsiveText.js +23 -17
- package/lib/types/_Sex.d.ts +4 -4
- package/lib/types/_Sex.js +4 -4
- package/lib/types/_SizeCategory.d.ts +14 -14
- package/lib/types/_SizeCategory.js +15 -15
- package/lib/types/_SkillCheck.d.ts +10 -10
- package/lib/types/_SkillCheck.js +11 -11
- package/lib/types/_Spellwork.d.ts +12 -12
- package/lib/types/_Spellwork.js +15 -15
- package/lib/types/equipment/EquipmentPackage.d.ts +68 -67
- package/lib/types/equipment/EquipmentPackage.js +14 -14
- package/lib/types/equipment/item/Ammunition.d.ts +52 -51
- package/lib/types/equipment/item/Ammunition.js +16 -16
- package/lib/types/equipment/item/Animal.d.ts +52 -51
- package/lib/types/equipment/item/Animal.js +5 -5
- package/lib/types/equipment/item/AnimalCare.d.ts +61 -60
- package/lib/types/equipment/item/AnimalCare.js +20 -20
- package/lib/types/equipment/item/Armor.d.ts +122 -121
- package/lib/types/equipment/item/Armor.js +79 -79
- package/lib/types/equipment/item/BandageOrRemedy.d.ts +143 -142
- package/lib/types/equipment/item/BandageOrRemedy.js +13 -13
- package/lib/types/equipment/item/Book.d.ts +103 -102
- package/lib/types/equipment/item/Book.js +65 -65
- package/lib/types/equipment/item/CeremonialItem.d.ts +144 -143
- package/lib/types/equipment/item/CeremonialItem.js +14 -14
- package/lib/types/equipment/item/Clothes.d.ts +143 -142
- package/lib/types/equipment/item/Clothes.js +13 -13
- package/lib/types/equipment/item/ClothingPackage.d.ts +45 -44
- package/lib/types/equipment/item/ClothingPackage.js +6 -6
- package/lib/types/equipment/item/Container.d.ts +143 -142
- package/lib/types/equipment/item/Container.js +13 -13
- package/lib/types/equipment/item/Elixir.d.ts +80 -79
- package/lib/types/equipment/item/Elixir.js +35 -32
- package/lib/types/equipment/item/EquipmentOfBlessedOnes.d.ts +152 -151
- package/lib/types/equipment/item/EquipmentOfBlessedOnes.js +11 -11
- package/lib/types/equipment/item/GemOrPreciousStone.d.ts +54 -53
- package/lib/types/equipment/item/GemOrPreciousStone.js +20 -20
- package/lib/types/equipment/item/IlluminationLightSource.d.ts +149 -148
- package/lib/types/equipment/item/IlluminationLightSource.js +26 -26
- package/lib/types/equipment/item/IlluminationRefillOrSupply.d.ts +143 -142
- package/lib/types/equipment/item/IlluminationRefillOrSupply.js +13 -13
- package/lib/types/equipment/item/Jewelry.d.ts +56 -55
- package/lib/types/equipment/item/Jewelry.js +17 -17
- package/lib/types/equipment/item/Laboratory.d.ts +59 -58
- package/lib/types/equipment/item/Laboratory.js +11 -11
- package/lib/types/equipment/item/Liebesspielzeug.d.ts +143 -142
- package/lib/types/equipment/item/Liebesspielzeug.js +13 -13
- package/lib/types/equipment/item/LuxuryGood.d.ts +143 -142
- package/lib/types/equipment/item/LuxuryGood.js +13 -13
- package/lib/types/equipment/item/MagicalArtifact.d.ts +146 -145
- package/lib/types/equipment/item/MagicalArtifact.js +30 -30
- package/lib/types/equipment/item/MusicalInstrument.d.ts +143 -142
- package/lib/types/equipment/item/MusicalInstrument.js +13 -13
- package/lib/types/equipment/item/Newspaper.d.ts +48 -47
- package/lib/types/equipment/item/Newspaper.js +12 -12
- package/lib/types/equipment/item/OrienteeringAid.d.ts +142 -141
- package/lib/types/equipment/item/Poison.d.ts +428 -427
- package/lib/types/equipment/item/Poison.js +215 -210
- package/lib/types/equipment/item/RopeOrChain.d.ts +142 -141
- package/lib/types/equipment/item/Stationery.d.ts +142 -141
- package/lib/types/equipment/item/ThievesTool.d.ts +142 -141
- package/lib/types/equipment/item/ToolOfTheTrade.d.ts +60 -59
- package/lib/types/equipment/item/ToolOfTheTrade.js +11 -11
- package/lib/types/equipment/item/TravelGearOrTool.d.ts +143 -142
- package/lib/types/equipment/item/TravelGearOrTool.js +13 -13
- package/lib/types/equipment/item/Vehicle.d.ts +58 -57
- package/lib/types/equipment/item/Vehicle.js +9 -9
- package/lib/types/equipment/item/Weapon.d.ts +160 -159
- package/lib/types/equipment/item/Weapon.js +53 -49
- package/lib/types/equipment/item/WeaponAccessory.d.ts +143 -142
- package/lib/types/equipment/item/WeaponAccessory.js +13 -13
- package/lib/types/equipment/item/_Herbary.d.ts +34 -34
- package/lib/types/equipment/item/_Herbary.js +19 -19
- package/lib/types/equipment/item/_Item.d.ts +294 -293
- package/lib/types/equipment/item/_Item.js +102 -102
- package/lib/types/equipment/item/_MeleeWeapon.d.ts +47 -47
- package/lib/types/equipment/item/_MeleeWeapon.js +43 -43
- package/lib/types/equipment/item/_RangedWeapon.d.ts +25 -25
- package/lib/types/equipment/item/_RangedWeapon.js +39 -39
- package/lib/types/equipment/item/_Weapon.d.ts +10 -9
- package/lib/types/equipment/item/_Weapon.js +19 -19
- package/lib/types/equipment/item/sub/ArmorType.d.ts +5 -5
- package/lib/types/equipment/item/sub/ArmorType.js +8 -8
- package/lib/types/equipment/item/sub/Reach.d.ts +4 -4
- package/lib/types/equipment/item/sub/Reach.js +6 -6
- package/lib/types/magicalActions/AnimistPower.d.ts +228 -226
- package/lib/types/magicalActions/AnimistPower.js +79 -77
- package/lib/types/magicalActions/AnimistPower_Tribe.d.ts +23 -23
- package/lib/types/magicalActions/AnimistPower_Tribe.js +8 -8
- package/lib/types/magicalActions/Curse.d.ts +163 -162
- package/lib/types/magicalActions/Curse.js +54 -54
- package/lib/types/magicalActions/DominationRitual.d.ts +153 -152
- package/lib/types/magicalActions/DominationRitual.js +53 -53
- package/lib/types/magicalActions/ElvenMagicalSong.d.ts +92 -91
- package/lib/types/magicalActions/ElvenMagicalSong.js +45 -45
- package/lib/types/magicalActions/GeodeRitual.d.ts +165 -164
- package/lib/types/magicalActions/GeodeRitual.js +57 -57
- package/lib/types/magicalActions/JesterTrick.d.ts +231 -230
- package/lib/types/magicalActions/JesterTrick.js +67 -67
- package/lib/types/magicalActions/MagicalDance.d.ts +89 -88
- package/lib/types/magicalActions/MagicalDance.js +46 -46
- package/lib/types/magicalActions/MagicalMelody.d.ts +86 -85
- package/lib/types/magicalActions/MagicalMelody.js +44 -44
- package/lib/types/magicalActions/MagicalRune.d.ts +213 -212
- package/lib/types/magicalActions/MagicalRune.js +122 -117
- package/lib/types/magicalActions/ZibiljaRitual.d.ts +301 -300
- package/lib/types/magicalActions/ZibiljaRitual.js +36 -34
- package/lib/types/magicalActions/_MusicTradition.d.ts +12 -12
- package/lib/types/magicalActions/_MusicTradition.js +19 -19
- package/lib/types/prerequisites/ConditionalPrerequisites.d.ts +16 -16
- package/lib/types/prerequisites/ConditionalPrerequisites.js +3 -3
- package/lib/types/prerequisites/DisplayOption.d.ts +9 -9
- package/lib/types/prerequisites/DisplayOption.js +11 -11
- package/lib/types/prerequisites/PrerequisiteGroups.d.ts +1099 -1099
- package/lib/types/prerequisites/PrerequisiteGroups.js +94 -86
- package/lib/types/prerequisites/single/ActivatablePrerequisite.d.ts +100 -100
- package/lib/types/prerequisites/single/ActivatablePrerequisite.js +15 -15
- package/lib/types/prerequisites/single/AnimistPowerPrerequisite.d.ts +13 -13
- package/lib/types/prerequisites/single/AnimistPowerPrerequisite.js +10 -10
- package/lib/types/prerequisites/single/CulturePrerequisite.d.ts +11 -11
- package/lib/types/prerequisites/single/CulturePrerequisite.js +6 -6
- package/lib/types/prerequisites/single/EnhancementPrerequisite.d.ts +3 -3
- package/lib/types/prerequisites/single/EnhancementPrerequisite.js +4 -4
- package/lib/types/prerequisites/single/InfluencePrerequisite.d.ts +12 -12
- package/lib/types/prerequisites/single/InfluencePrerequisite.js +8 -8
- package/lib/types/prerequisites/single/PactPrerequisite.d.ts +13 -13
- package/lib/types/prerequisites/single/PactPrerequisite.js +10 -10
- package/lib/types/prerequisites/single/PersonalityTraitPrerequisite.d.ts +12 -12
- package/lib/types/prerequisites/single/PersonalityTraitPrerequisite.js +8 -8
- package/lib/types/prerequisites/single/PrimaryAttributePrerequisite.d.ts +14 -14
- package/lib/types/prerequisites/single/PrimaryAttributePrerequisite.js +12 -12
- package/lib/types/prerequisites/single/PublicationPrerequisite.d.ts +11 -11
- package/lib/types/prerequisites/single/PublicationPrerequisite.js +6 -6
- package/lib/types/prerequisites/single/RacePrerequisite.d.ts +12 -12
- package/lib/types/prerequisites/single/RacePrerequisite.js +8 -8
- package/lib/types/prerequisites/single/RatedMinimumNumberPrerequisite.d.ts +35 -35
- package/lib/types/prerequisites/single/RatedMinimumNumberPrerequisite.js +38 -36
- package/lib/types/prerequisites/single/RatedPrerequisite.d.ts +20 -20
- package/lib/types/prerequisites/single/RatedPrerequisite.js +9 -9
- package/lib/types/prerequisites/single/RatedSumPrerequisite.d.ts +12 -12
- package/lib/types/prerequisites/single/RatedSumPrerequisite.js +9 -9
- package/lib/types/prerequisites/single/RulePrerequisite.d.ts +13 -13
- package/lib/types/prerequisites/single/RulePrerequisite.js +7 -7
- package/lib/types/prerequisites/single/SexPrerequisite.d.ts +13 -13
- package/lib/types/prerequisites/single/SexPrerequisite.js +7 -7
- package/lib/types/prerequisites/single/SexualCharacteristicPrerequisite.d.ts +5 -5
- package/lib/types/prerequisites/single/SexualCharacteristicPrerequisite.js +8 -8
- package/lib/types/prerequisites/single/SocialStatusPrerequisite.d.ts +11 -11
- package/lib/types/prerequisites/single/SocialStatusPrerequisite.js +6 -6
- package/lib/types/prerequisites/single/StatePrerequisite.d.ts +11 -11
- package/lib/types/prerequisites/single/StatePrerequisite.js +6 -6
- package/lib/types/prerequisites/single/TextPrerequisite.d.ts +14 -14
- package/lib/types/prerequisites/single/TextPrerequisite.js +18 -18
- package/lib/types/prerequisites/single/TraditionPrerequisite.d.ts +25 -25
- package/lib/types/prerequisites/single/TraditionPrerequisite.js +19 -19
- package/lib/types/rule/AlternativeRule.d.ts +39 -38
- package/lib/types/rule/AlternativeRule.js +14 -14
- package/lib/types/rule/AlternativeRule_PlayerType.d.ts +4 -4
- package/lib/types/rule/AlternativeRule_PlayerType.js +6 -6
- package/lib/types/rule/CoreRule.d.ts +117 -116
- package/lib/types/rule/CoreRule.js +108 -106
- package/lib/types/rule/FocusRule.d.ts +59 -58
- package/lib/types/rule/FocusRule.js +17 -17
- package/lib/types/rule/FocusRule_Subject.d.ts +4 -4
- package/lib/types/rule/FocusRule_Subject.js +6 -6
- package/lib/types/rule/OptionalRule.d.ts +58 -57
- package/lib/types/rule/OptionalRule.js +16 -16
- package/lib/types/source/Publication.d.ts +41 -41
- package/lib/types/source/Publication.js +28 -28
- package/lib/types/source/_Erratum.d.ts +7 -7
- package/lib/types/source/_Erratum.js +9 -9
- package/lib/types/source/_PublicationRef.d.ts +117 -113
- package/lib/types/source/_PublicationRef.js +62 -58
- package/lib/types/specialAbility/AdvancedCombatSpecialAbility.d.ts +1075 -1073
- package/lib/types/specialAbility/AdvancedCombatSpecialAbility.js +8 -8
- package/lib/types/specialAbility/AdvancedKarmaSpecialAbility.d.ts +985 -983
- package/lib/types/specialAbility/AdvancedKarmaSpecialAbility.js +8 -8
- package/lib/types/specialAbility/AdvancedMagicalSpecialAbility.d.ts +985 -983
- package/lib/types/specialAbility/AdvancedMagicalSpecialAbility.js +8 -8
- package/lib/types/specialAbility/AdvancedSkillSpecialAbility.d.ts +985 -983
- package/lib/types/specialAbility/AdvancedSkillSpecialAbility.js +8 -8
- package/lib/types/specialAbility/AncestorGlyph.d.ts +938 -936
- package/lib/types/specialAbility/AncestorGlyph.js +10 -10
- package/lib/types/specialAbility/BlessedTradition.d.ts +1008 -1006
- package/lib/types/specialAbility/BlessedTradition.js +52 -52
- package/lib/types/specialAbility/BrawlingSpecialAbility.d.ts +990 -988
- package/lib/types/specialAbility/BrawlingSpecialAbility.js +8 -8
- package/lib/types/specialAbility/CeremonialItemSpecialAbility.d.ts +986 -984
- package/lib/types/specialAbility/CeremonialItemSpecialAbility.js +8 -8
- package/lib/types/specialAbility/CombatSpecialAbility.d.ts +1076 -1074
- package/lib/types/specialAbility/CombatSpecialAbility.js +8 -8
- package/lib/types/specialAbility/CombatStyleSpecialAbility.d.ts +1117 -1115
- package/lib/types/specialAbility/CombatStyleSpecialAbility.js +8 -8
- package/lib/types/specialAbility/CommandSpecialAbility.d.ts +990 -988
- package/lib/types/specialAbility/CommandSpecialAbility.js +8 -8
- package/lib/types/specialAbility/FamiliarSpecialAbility.d.ts +937 -935
- package/lib/types/specialAbility/FamiliarSpecialAbility.js +8 -8
- package/lib/types/specialAbility/FatePointSexSpecialAbility.d.ts +937 -935
- package/lib/types/specialAbility/FatePointSexSpecialAbility.js +8 -8
- package/lib/types/specialAbility/FatePointSpecialAbility.d.ts +985 -983
- package/lib/types/specialAbility/FatePointSpecialAbility.js +8 -8
- package/lib/types/specialAbility/GeneralSpecialAbility.d.ts +986 -984
- package/lib/types/specialAbility/GeneralSpecialAbility.js +8 -8
- package/lib/types/specialAbility/KarmaSpecialAbility.d.ts +937 -935
- package/lib/types/specialAbility/KarmaSpecialAbility.js +8 -8
- package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.d.ts +1025 -1023
- package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.js +8 -8
- package/lib/types/specialAbility/LycantropicGift.d.ts +937 -935
- package/lib/types/specialAbility/LycantropicGift.js +8 -8
- package/lib/types/specialAbility/MagicStyleSpecialAbility.d.ts +1025 -1023
- package/lib/types/specialAbility/MagicStyleSpecialAbility.js +8 -8
- package/lib/types/specialAbility/MagicalSign.d.ts +91 -90
- package/lib/types/specialAbility/MagicalSign.js +21 -21
- package/lib/types/specialAbility/MagicalSpecialAbility.d.ts +986 -984
- package/lib/types/specialAbility/MagicalSpecialAbility.js +8 -8
- package/lib/types/specialAbility/MagicalTradition.d.ts +1004 -1002
- package/lib/types/specialAbility/MagicalTradition.js +40 -40
- package/lib/types/specialAbility/PactGift.d.ts +1008 -1006
- package/lib/types/specialAbility/PactGift.js +23 -21
- package/lib/types/specialAbility/ProtectiveWardingCircleSpecialAbility.d.ts +939 -937
- package/lib/types/specialAbility/ProtectiveWardingCircleSpecialAbility.js +14 -14
- package/lib/types/specialAbility/Sermon.d.ts +937 -935
- package/lib/types/specialAbility/Sermon.js +8 -8
- package/lib/types/specialAbility/SexSpecialAbility.d.ts +985 -983
- package/lib/types/specialAbility/SexSpecialAbility.js +8 -8
- package/lib/types/specialAbility/SikaryanDrainSpecialAbility.d.ts +937 -935
- package/lib/types/specialAbility/SikaryanDrainSpecialAbility.js +8 -8
- package/lib/types/specialAbility/SkillStyleSpecialAbility.d.ts +977 -975
- package/lib/types/specialAbility/SkillStyleSpecialAbility.js +8 -8
- package/lib/types/specialAbility/VampiricGift.d.ts +937 -935
- package/lib/types/specialAbility/VampiricGift.js +8 -8
- package/lib/types/specialAbility/Vision.d.ts +937 -935
- package/lib/types/specialAbility/Vision.js +8 -8
- package/lib/types/specialAbility/_Tradition.d.ts +4 -4
- package/lib/types/specialAbility/_Tradition.js +7 -7
- package/lib/types/specialAbility/sub/Language.d.ts +80 -79
- package/lib/types/specialAbility/sub/Language.js +37 -37
- package/lib/types/specialAbility/sub/Script.d.ts +45 -44
- package/lib/types/specialAbility/sub/Script.js +18 -18
- package/lib/types/specialAbility/sub/TradeSecret.d.ts +859 -857
- package/lib/types/specialAbility/sub/TradeSecret.js +26 -26
- package/lib/types/specialAbility/sub/_LanguageScript.d.ts +4 -4
- package/lib/types/specialAbility/sub/_LanguageScript.js +6 -6
- package/lib/types/traditionArtifacts/ArcaneOrbEnchantment.d.ts +1105 -1103
- package/lib/types/traditionArtifacts/ArcaneOrbEnchantment.js +8 -8
- package/lib/types/traditionArtifacts/AttireEnchantment.d.ts +1105 -1103
- package/lib/types/traditionArtifacts/AttireEnchantment.js +8 -8
- package/lib/types/traditionArtifacts/Beutelzauber.d.ts +1105 -1103
- package/lib/types/traditionArtifacts/Beutelzauber.js +8 -8
- package/lib/types/traditionArtifacts/BowlEnchantment.d.ts +1105 -1103
- package/lib/types/traditionArtifacts/BowlEnchantment.js +8 -8
- package/lib/types/traditionArtifacts/CauldronEnchantment.d.ts +1106 -1104
- package/lib/types/traditionArtifacts/CauldronEnchantment.js +9 -9
- package/lib/types/traditionArtifacts/ChronicleEnchantment.d.ts +1105 -1103
- package/lib/types/traditionArtifacts/ChronicleEnchantment.js +8 -8
- package/lib/types/traditionArtifacts/DaggerRitual.d.ts +1112 -1110
- package/lib/types/traditionArtifacts/DaggerRitual.js +25 -25
- package/lib/types/traditionArtifacts/FoolsHatEnchantment.d.ts +1105 -1103
- package/lib/types/traditionArtifacts/FoolsHatEnchantment.js +8 -8
- package/lib/types/traditionArtifacts/Haubenzauber.d.ts +1105 -1103
- package/lib/types/traditionArtifacts/Haubenzauber.js +8 -8
- package/lib/types/traditionArtifacts/InstrumentEnchantment.d.ts +1105 -1103
- package/lib/types/traditionArtifacts/InstrumentEnchantment.js +8 -8
- package/lib/types/traditionArtifacts/Krallenkettenzauber.d.ts +1105 -1103
- package/lib/types/traditionArtifacts/Krallenkettenzauber.js +8 -8
- package/lib/types/traditionArtifacts/Kristallkugelzauber.d.ts +1105 -1103
- package/lib/types/traditionArtifacts/Kristallkugelzauber.js +8 -8
- package/lib/types/traditionArtifacts/OrbEnchantment.d.ts +1105 -1103
- package/lib/types/traditionArtifacts/OrbEnchantment.js +8 -8
- package/lib/types/traditionArtifacts/RingEnchantment.d.ts +1105 -1103
- package/lib/types/traditionArtifacts/RingEnchantment.js +8 -8
- package/lib/types/traditionArtifacts/SickleRitual.d.ts +1105 -1103
- package/lib/types/traditionArtifacts/SickleRitual.js +8 -8
- package/lib/types/traditionArtifacts/SpellSwordEnchantment.d.ts +1105 -1103
- package/lib/types/traditionArtifacts/SpellSwordEnchantment.js +8 -8
- package/lib/types/traditionArtifacts/StaffEnchantment.d.ts +1108 -1106
- package/lib/types/traditionArtifacts/StaffEnchantment.js +10 -10
- package/lib/types/traditionArtifacts/ToyEnchantment.d.ts +1105 -1103
- package/lib/types/traditionArtifacts/ToyEnchantment.js +8 -8
- package/lib/types/traditionArtifacts/Trinkhornzauber.d.ts +1105 -1103
- package/lib/types/traditionArtifacts/Trinkhornzauber.js +8 -8
- package/lib/types/traditionArtifacts/WandEnchantment.d.ts +1071 -1069
- package/lib/types/traditionArtifacts/WandEnchantment.js +8 -8
- package/lib/types/traditionArtifacts/WeaponEnchantment.d.ts +1105 -1103
- package/lib/types/traditionArtifacts/WeaponEnchantment.js +8 -8
- package/lib/types/traditionArtifacts/sub/AnimalShape.d.ts +6 -6
- package/lib/types/traditionArtifacts/sub/AnimalShape.js +8 -8
- package/lib/types/traditionArtifacts/sub/AnimalShapePath.d.ts +4 -4
- package/lib/types/traditionArtifacts/sub/AnimalShapePath.js +6 -6
- package/lib/types/traditionArtifacts/sub/AnimalShapeSize.d.ts +6 -6
- package/lib/types/traditionArtifacts/sub/AnimalShapeSize.js +10 -10
- package/lib/types/traditionArtifacts/sub/Brew.d.ts +4 -4
- package/lib/types/traditionArtifacts/sub/Brew.js +6 -6
- package/package.json +2 -2
- package/lib/types/_I18n.d.ts +0 -14
- package/lib/types/_I18n.js +0 -55
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const TargetCategory: Entity<"TargetCategory", {
|
|
3
|
-
parent:
|
|
4
|
-
translations:
|
|
5
|
-
name:
|
|
1
|
+
import * as DB from "tsondb/schema/dsl";
|
|
2
|
+
export declare const TargetCategory: DB.Entity<"TargetCategory", {
|
|
3
|
+
parent: DB.MemberDecl<DB.ReferenceIdentifier, false>;
|
|
4
|
+
translations: DB.MemberDecl<DB.NestedEntityMap<"TargetCategoryTranslation", {
|
|
5
|
+
name: DB.MemberDecl<DB.String, true>;
|
|
6
6
|
}>, true>;
|
|
7
7
|
}, undefined>;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as DB from "tsondb/schema/dsl";
|
|
2
2
|
import { NestedTranslationMap } from "./Locale.js";
|
|
3
3
|
import { TargetCategoryIdentifier } from "./_Identifier.js";
|
|
4
|
-
export const TargetCategory = Entity(import.meta.url, {
|
|
4
|
+
export const TargetCategory = DB.Entity(import.meta.url, {
|
|
5
5
|
name: "TargetCategory",
|
|
6
6
|
namePlural: "TargetCategories",
|
|
7
|
-
type: () =>
|
|
8
|
-
parent: Optional({
|
|
7
|
+
type: () => DB.Object({
|
|
8
|
+
parent: DB.Optional({
|
|
9
9
|
comment: "A superordinate target category, if present.",
|
|
10
10
|
type: TargetCategoryIdentifier(),
|
|
11
11
|
}),
|
|
12
|
-
translations: NestedTranslationMap(Required, "TargetCategory",
|
|
13
|
-
name: Required({
|
|
12
|
+
translations: NestedTranslationMap(DB.Required, "TargetCategory", DB.Object({
|
|
13
|
+
name: DB.Required({
|
|
14
14
|
comment: "The target category’s name.",
|
|
15
|
-
type: String({ minLength: 1 }),
|
|
15
|
+
type: DB.String({ minLength: 1 }),
|
|
16
16
|
}),
|
|
17
17
|
})),
|
|
18
18
|
}),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* General type specifications used by multiple activatable entries.
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
5
|
-
export declare const name:
|
|
6
|
-
export declare const name_in_library:
|
|
7
|
-
export declare const levels:
|
|
8
|
-
export declare const maximum:
|
|
9
|
-
export declare const rules:
|
|
10
|
-
export declare const effect:
|
|
11
|
-
export declare const range_l10n:
|
|
12
|
-
export declare const input:
|
|
4
|
+
import * as DB from "tsondb/schema/dsl";
|
|
5
|
+
export declare const name: DB.MemberDecl<DB.String, true>;
|
|
6
|
+
export declare const name_in_library: DB.MemberDecl<DB.String, false>;
|
|
7
|
+
export declare const levels: DB.MemberDecl<DB.Integer, false>;
|
|
8
|
+
export declare const maximum: DB.MemberDecl<DB.Integer, false>;
|
|
9
|
+
export declare const rules: DB.MemberDecl<DB.String, true>;
|
|
10
|
+
export declare const effect: DB.MemberDecl<DB.String, true>;
|
|
11
|
+
export declare const range_l10n: DB.MemberDecl<DB.String, false>;
|
|
12
|
+
export declare const input: DB.MemberDecl<DB.String, false>;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* General type specifications used by multiple activatable entries.
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
5
|
-
export const name = Required({
|
|
4
|
+
import * as DB from "tsondb/schema/dsl";
|
|
5
|
+
export const name = DB.Required({
|
|
6
6
|
comment: "Name of the activatable entry.",
|
|
7
|
-
type: String({ minLength: 1 }),
|
|
7
|
+
type: DB.String({ minLength: 1 }),
|
|
8
8
|
});
|
|
9
|
-
export const name_in_library = Optional({
|
|
9
|
+
export const name_in_library = DB.Optional({
|
|
10
10
|
comment: "The full name of the entry as stated in the sources. Only use when `name` needs to be different from full name for text generation purposes.",
|
|
11
|
-
type: String({ minLength: 1 }),
|
|
11
|
+
type: DB.String({ minLength: 1 }),
|
|
12
12
|
});
|
|
13
|
-
export const levels = Optional({
|
|
13
|
+
export const levels = DB.Optional({
|
|
14
14
|
comment: "Number of available levels.",
|
|
15
|
-
type: Integer({ minimum: 2 }),
|
|
15
|
+
type: DB.Integer({ minimum: 2 }),
|
|
16
16
|
});
|
|
17
|
-
export const maximum = Optional({
|
|
17
|
+
export const maximum = DB.Optional({
|
|
18
18
|
comment: `The number stating how often you can buy the entry. The **default** depends on the entry type:
|
|
19
19
|
|
|
20
20
|
- **Advantage:** \`1\` in all cases (as specified in the **Core Rules**)
|
|
@@ -22,22 +22,22 @@ export const maximum = Optional({
|
|
|
22
22
|
- **Special Abilities:** \`1\` if no options can be selected, otherwise the number of possible options
|
|
23
23
|
|
|
24
24
|
The maximum is only set if it differs from the defaults specified above.`,
|
|
25
|
-
type: Integer({ minimum: 1 }),
|
|
25
|
+
type: DB.Integer({ minimum: 1 }),
|
|
26
26
|
});
|
|
27
|
-
export const rules = Required({
|
|
27
|
+
export const rules = DB.Required({
|
|
28
28
|
comment: "The rule text.",
|
|
29
|
-
type: String({ minLength: 1, isMarkdown: true }),
|
|
29
|
+
type: DB.String({ minLength: 1, isMarkdown: true }),
|
|
30
30
|
});
|
|
31
|
-
export const effect = Required({
|
|
31
|
+
export const effect = DB.Required({
|
|
32
32
|
comment: "The effect description.",
|
|
33
|
-
type: String({ minLength: 1, isMarkdown: true }),
|
|
33
|
+
type: DB.String({ minLength: 1, isMarkdown: true }),
|
|
34
34
|
});
|
|
35
|
-
export const range_l10n = Optional({
|
|
35
|
+
export const range_l10n = DB.Optional({
|
|
36
36
|
comment: "The range of the advantage.",
|
|
37
37
|
isDeprecated: true,
|
|
38
|
-
type: String({ minLength: 1 }),
|
|
38
|
+
type: DB.String({ minLength: 1 }),
|
|
39
39
|
});
|
|
40
|
-
export const input = Optional({
|
|
40
|
+
export const input = DB.Optional({
|
|
41
41
|
comment: "A string that is used as a label for an input field.",
|
|
42
|
-
type: String({ minLength: 1 }),
|
|
42
|
+
type: DB.String({ minLength: 1 }),
|
|
43
43
|
});
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const advanced: (identifier: Type) =>
|
|
3
|
-
General: EnumCase<TypeArgument<
|
|
4
|
-
RestrictOptions: EnumCase<IncludeIdentifier<
|
|
5
|
-
id:
|
|
6
|
-
option:
|
|
7
|
-
General: EnumCase<
|
|
8
|
-
Skill: EnumCase<
|
|
9
|
-
CloseCombatTechnique: EnumCase<
|
|
10
|
-
RangedCombatTechnique: EnumCase<
|
|
11
|
-
Element: EnumCase<
|
|
12
|
-
Aspect: EnumCase<
|
|
1
|
+
import * as DB from "tsondb/schema/dsl";
|
|
2
|
+
export declare const advanced: (identifier: DB.Type) => DB.MemberDecl<DB.Array<DB.IncludeIdentifier<DB.Param<string, DB.Type>[], DB.Enum<"AdvancedSpecialAbility", {
|
|
3
|
+
General: DB.EnumCase<DB.TypeArgument<DB.Param<"Identifier", DB.Type>>>;
|
|
4
|
+
RestrictOptions: DB.EnumCase<DB.IncludeIdentifier<DB.Param<string, DB.Type>[], DB.TypeAlias<"RestrictAdvancedSpecialAbilityOptions", DB.Object<{
|
|
5
|
+
id: DB.MemberDecl<DB.TypeArgument<DB.Param<"Identifier", DB.Type>>, true>;
|
|
6
|
+
option: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.Enum<"AdvancedSpecialAbilityRestrictedOptionIdentifier", {
|
|
7
|
+
General: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
8
|
+
Skill: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
9
|
+
CloseCombatTechnique: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
10
|
+
RangedCombatTechnique: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
11
|
+
Element: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
12
|
+
Aspect: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
13
13
|
}, []>>>, true>;
|
|
14
|
-
}>, [Identifier:
|
|
15
|
-
OneOf: EnumCase<IncludeIdentifier<
|
|
16
|
-
options:
|
|
17
|
-
is_selection_required_on_purchase:
|
|
18
|
-
display_option:
|
|
19
|
-
Hide: EnumCase<null>;
|
|
20
|
-
ReplaceWith: EnumCase<IncludeIdentifier<[],
|
|
21
|
-
sentence_type:
|
|
22
|
-
Standalone: EnumCase<null>;
|
|
23
|
-
Connected: EnumCase<null>;
|
|
14
|
+
}>, [Identifier: DB.Param<"Identifier", DB.Type>]>>>;
|
|
15
|
+
OneOf: DB.EnumCase<DB.IncludeIdentifier<DB.Param<string, DB.Type>[], DB.TypeAlias<"OneOfAdvancedSpecialAbilityOptions", DB.Object<{
|
|
16
|
+
options: DB.MemberDecl<DB.Array<DB.TypeArgument<DB.Param<"Identifier", DB.Type>>>, true>;
|
|
17
|
+
is_selection_required_on_purchase: DB.MemberDecl<DB.Boolean, true>;
|
|
18
|
+
display_option: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"DisplayOption", {
|
|
19
|
+
Hide: DB.EnumCase<null>;
|
|
20
|
+
ReplaceWith: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ReplacementDisplayOption", DB.Object<{
|
|
21
|
+
sentence_type: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SentenceType", {
|
|
22
|
+
Standalone: DB.EnumCase<null>;
|
|
23
|
+
Connected: DB.EnumCase<null>;
|
|
24
24
|
}, []>>, false>;
|
|
25
|
-
translations:
|
|
26
|
-
replacement:
|
|
25
|
+
translations: DB.MemberDecl<DB.NestedEntityMap<"ReplacementDisplayOptionTranslation", {
|
|
26
|
+
replacement: DB.MemberDecl<DB.String, true>;
|
|
27
27
|
}>, true>;
|
|
28
28
|
}>, []>>>;
|
|
29
29
|
}, []>>, false>;
|
|
30
|
-
}>, [Identifier:
|
|
31
|
-
DeriveFromExternalOption: EnumCase<IncludeIdentifier<
|
|
32
|
-
external_entry:
|
|
33
|
-
map:
|
|
34
|
-
from_option:
|
|
35
|
-
to_advanced:
|
|
36
|
-
}>, [Identifier:
|
|
37
|
-
display_option:
|
|
38
|
-
Hide: EnumCase<null>;
|
|
39
|
-
ReplaceWith: EnumCase<IncludeIdentifier<[],
|
|
40
|
-
sentence_type:
|
|
41
|
-
Standalone: EnumCase<null>;
|
|
42
|
-
Connected: EnumCase<null>;
|
|
30
|
+
}>, [Identifier: DB.Param<"Identifier", DB.Type>]>>>;
|
|
31
|
+
DeriveFromExternalOption: DB.EnumCase<DB.IncludeIdentifier<DB.Param<string, DB.Type>[], DB.TypeAlias<"AdvancedSpecialAbilityDerivedFromExternalOption", DB.Object<{
|
|
32
|
+
external_entry: DB.MemberDecl<DB.ReferenceIdentifier, true>;
|
|
33
|
+
map: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<DB.Param<string, DB.Type>[], DB.TypeAlias<"AdvancedSpecialAbilityDerivedFromExternalOptionMapping", DB.Object<{
|
|
34
|
+
from_option: DB.MemberDecl<DB.ReferenceIdentifier, true>;
|
|
35
|
+
to_advanced: DB.MemberDecl<DB.TypeArgument<DB.Param<"Identifier", DB.Type>>, true>;
|
|
36
|
+
}>, [Identifier: DB.Param<"Identifier", DB.Type>]>>>, true>;
|
|
37
|
+
display_option: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"DisplayOption", {
|
|
38
|
+
Hide: DB.EnumCase<null>;
|
|
39
|
+
ReplaceWith: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ReplacementDisplayOption", DB.Object<{
|
|
40
|
+
sentence_type: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SentenceType", {
|
|
41
|
+
Standalone: DB.EnumCase<null>;
|
|
42
|
+
Connected: DB.EnumCase<null>;
|
|
43
43
|
}, []>>, false>;
|
|
44
|
-
translations:
|
|
45
|
-
replacement:
|
|
44
|
+
translations: DB.MemberDecl<DB.NestedEntityMap<"ReplacementDisplayOptionTranslation", {
|
|
45
|
+
replacement: DB.MemberDecl<DB.String, true>;
|
|
46
46
|
}>, true>;
|
|
47
47
|
}>, []>>>;
|
|
48
48
|
}, []>>, false>;
|
|
49
|
-
}>, [Identifier:
|
|
50
|
-
}, [Identifier:
|
|
49
|
+
}>, [Identifier: DB.Param<"Identifier", DB.Type>]>>>;
|
|
50
|
+
}, [Identifier: DB.Param<"Identifier", DB.Type>]>>>, true>;
|
|
@@ -1,96 +1,100 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as DB from "tsondb/schema/dsl";
|
|
2
2
|
import { MagicalTraditionIdentifier, PatronIdentifier } from "./_Identifier.js";
|
|
3
3
|
import { AdvancedSpecialAbilityRestrictedOptionIdentifier } from "./_IdentifierGroup.js";
|
|
4
4
|
import { DisplayOption } from "./prerequisites/DisplayOption.js";
|
|
5
|
-
const AdvancedSpecialAbility = GenEnum(import.meta.url, {
|
|
5
|
+
const AdvancedSpecialAbility = DB.GenEnum(import.meta.url, {
|
|
6
6
|
name: "AdvancedSpecialAbility",
|
|
7
7
|
comment: "A reference to an advanced special ability.",
|
|
8
|
-
parameters: [Param("Identifier")],
|
|
8
|
+
parameters: [DB.Param("Identifier")],
|
|
9
9
|
values: Identifier => ({
|
|
10
|
-
General: EnumCase({ type: TypeArgument(Identifier) }),
|
|
11
|
-
RestrictOptions: EnumCase({
|
|
12
|
-
type: GenIncludeIdentifier(RestrictAdvancedSpecialAbilityOptions, [
|
|
10
|
+
General: DB.EnumCase({ type: DB.TypeArgument(Identifier) }),
|
|
11
|
+
RestrictOptions: DB.EnumCase({
|
|
12
|
+
type: DB.GenIncludeIdentifier(RestrictAdvancedSpecialAbilityOptions, [
|
|
13
|
+
DB.TypeArgument(Identifier),
|
|
14
|
+
]),
|
|
13
15
|
}),
|
|
14
|
-
OneOf: EnumCase({
|
|
15
|
-
type: GenIncludeIdentifier(OneOfAdvancedSpecialAbilityOptions, [
|
|
16
|
+
OneOf: DB.EnumCase({
|
|
17
|
+
type: DB.GenIncludeIdentifier(OneOfAdvancedSpecialAbilityOptions, [
|
|
18
|
+
DB.TypeArgument(Identifier),
|
|
19
|
+
]),
|
|
16
20
|
}),
|
|
17
|
-
DeriveFromExternalOption: EnumCase({
|
|
18
|
-
type: GenIncludeIdentifier(AdvancedSpecialAbilityDerivedFromExternalOption, [
|
|
19
|
-
TypeArgument(Identifier),
|
|
21
|
+
DeriveFromExternalOption: DB.EnumCase({
|
|
22
|
+
type: DB.GenIncludeIdentifier(AdvancedSpecialAbilityDerivedFromExternalOption, [
|
|
23
|
+
DB.TypeArgument(Identifier),
|
|
20
24
|
]),
|
|
21
25
|
}),
|
|
22
26
|
}),
|
|
23
27
|
});
|
|
24
|
-
const RestrictAdvancedSpecialAbilityOptions = GenTypeAlias(import.meta.url, {
|
|
28
|
+
const RestrictAdvancedSpecialAbilityOptions = DB.GenTypeAlias(import.meta.url, {
|
|
25
29
|
name: "RestrictAdvancedSpecialAbilityOptions",
|
|
26
|
-
parameters: [Param("Identifier")],
|
|
27
|
-
type: Identifier => Object({
|
|
28
|
-
id: Required({
|
|
30
|
+
parameters: [DB.Param("Identifier")],
|
|
31
|
+
type: Identifier => DB.Object({
|
|
32
|
+
id: DB.Required({
|
|
29
33
|
comment: "The advanced special ability’s identifier.",
|
|
30
|
-
type: TypeArgument(Identifier),
|
|
34
|
+
type: DB.TypeArgument(Identifier),
|
|
31
35
|
}),
|
|
32
|
-
option: Required({
|
|
36
|
+
option: DB.Required({
|
|
33
37
|
comment: "Specify the select option(s) that only are allowed for the referenced advanced special ability; others are disallowed.",
|
|
34
|
-
type: Array(IncludeIdentifier(AdvancedSpecialAbilityRestrictedOptionIdentifier), {
|
|
38
|
+
type: DB.Array(DB.IncludeIdentifier(AdvancedSpecialAbilityRestrictedOptionIdentifier), {
|
|
35
39
|
minItems: 1,
|
|
36
40
|
}),
|
|
37
41
|
}),
|
|
38
42
|
}),
|
|
39
43
|
});
|
|
40
|
-
const OneOfAdvancedSpecialAbilityOptions = GenTypeAlias(import.meta.url, {
|
|
44
|
+
const OneOfAdvancedSpecialAbilityOptions = DB.GenTypeAlias(import.meta.url, {
|
|
41
45
|
name: "OneOfAdvancedSpecialAbilityOptions",
|
|
42
|
-
parameters: [Param("Identifier")],
|
|
43
|
-
type: Identifier => Object({
|
|
44
|
-
options: Required({
|
|
46
|
+
parameters: [DB.Param("Identifier")],
|
|
47
|
+
type: Identifier => DB.Object({
|
|
48
|
+
options: DB.Required({
|
|
45
49
|
comment: "The possible advanced special abilities.",
|
|
46
|
-
type: Array(TypeArgument(Identifier), { minItems: 2 }),
|
|
50
|
+
type: DB.Array(DB.TypeArgument(Identifier), { minItems: 2 }),
|
|
47
51
|
}),
|
|
48
|
-
is_selection_required_on_purchase: Required({
|
|
52
|
+
is_selection_required_on_purchase: DB.Required({
|
|
49
53
|
comment: "Do have to choose the advanced special ability when buying the style special ability? Otherwise the decision can be made later.",
|
|
50
|
-
type: Boolean(),
|
|
54
|
+
type: DB.Boolean(),
|
|
51
55
|
}),
|
|
52
|
-
display_option: Optional({
|
|
53
|
-
type: IncludeIdentifier(DisplayOption),
|
|
56
|
+
display_option: DB.Optional({
|
|
57
|
+
type: DB.IncludeIdentifier(DisplayOption),
|
|
54
58
|
}),
|
|
55
59
|
}),
|
|
56
60
|
});
|
|
57
|
-
const AdvancedSpecialAbilityDerivedFromExternalOption = GenTypeAlias(import.meta.url, {
|
|
61
|
+
const AdvancedSpecialAbilityDerivedFromExternalOption = DB.GenTypeAlias(import.meta.url, {
|
|
58
62
|
name: "AdvancedSpecialAbilityDerivedFromExternalOption",
|
|
59
|
-
parameters: [Param("Identifier")],
|
|
60
|
-
type: Identifier => Object({
|
|
61
|
-
external_entry: Required({
|
|
63
|
+
parameters: [DB.Param("Identifier")],
|
|
64
|
+
type: Identifier => DB.Object({
|
|
65
|
+
external_entry: DB.Required({
|
|
62
66
|
comment: "The possible advanced special abilities.",
|
|
63
67
|
type: MagicalTraditionIdentifier(),
|
|
64
68
|
}),
|
|
65
|
-
map: Required({
|
|
69
|
+
map: DB.Required({
|
|
66
70
|
comment: "Map options from the external entry to allowed advanced special abilities.",
|
|
67
|
-
type: Array(GenIncludeIdentifier(AdvancedSpecialAbilityDerivedFromExternalOptionMapping, [
|
|
68
|
-
TypeArgument(Identifier),
|
|
71
|
+
type: DB.Array(DB.GenIncludeIdentifier(AdvancedSpecialAbilityDerivedFromExternalOptionMapping, [
|
|
72
|
+
DB.TypeArgument(Identifier),
|
|
69
73
|
]), { minItems: 1 }),
|
|
70
74
|
}),
|
|
71
|
-
display_option: Optional({
|
|
72
|
-
type: IncludeIdentifier(DisplayOption),
|
|
75
|
+
display_option: DB.Optional({
|
|
76
|
+
type: DB.IncludeIdentifier(DisplayOption),
|
|
73
77
|
}),
|
|
74
78
|
}),
|
|
75
79
|
});
|
|
76
|
-
const AdvancedSpecialAbilityDerivedFromExternalOptionMapping = GenTypeAlias(import.meta.url, {
|
|
80
|
+
const AdvancedSpecialAbilityDerivedFromExternalOptionMapping = DB.GenTypeAlias(import.meta.url, {
|
|
77
81
|
name: "AdvancedSpecialAbilityDerivedFromExternalOptionMapping",
|
|
78
|
-
parameters: [Param("Identifier")],
|
|
82
|
+
parameters: [DB.Param("Identifier")],
|
|
79
83
|
comment: "Mapping from an option of the external entry to an allowed advanced special ability.",
|
|
80
|
-
type: Identifier => Object({
|
|
81
|
-
from_option: Required({
|
|
84
|
+
type: Identifier => DB.Object({
|
|
85
|
+
from_option: DB.Required({
|
|
82
86
|
comment: "The select option’s identifier.",
|
|
83
87
|
type: PatronIdentifier(),
|
|
84
88
|
}),
|
|
85
|
-
to_advanced: Required({
|
|
89
|
+
to_advanced: DB.Required({
|
|
86
90
|
comment: "The advanced special ability’s identifier.",
|
|
87
|
-
type: TypeArgument(Identifier),
|
|
91
|
+
type: DB.TypeArgument(Identifier),
|
|
88
92
|
}),
|
|
89
93
|
}),
|
|
90
94
|
});
|
|
91
|
-
export const advanced = (identifier) => Required({
|
|
95
|
+
export const advanced = (identifier) => DB.Required({
|
|
92
96
|
comment: "The Advanced Special Abilities for the respective Style Special Ability. Sometimes, only a specific select option or a set of select options of an entry is allowed, which can be modelled by the option property. It can also be that you can choose from a set of special abilities, but then you can’t specify an option.",
|
|
93
|
-
type: Array(GenIncludeIdentifier(AdvancedSpecialAbility, [identifier]), {
|
|
97
|
+
type: DB.Array(DB.GenIncludeIdentifier(AdvancedSpecialAbility, [identifier]), {
|
|
94
98
|
minItems: 3,
|
|
95
99
|
maxItems: 3,
|
|
96
100
|
}),
|