@optolith/database-schema 0.42.1
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/AUTHORS +1 -0
- package/CHANGELOG.md +1789 -0
- package/LICENSE +378 -0
- package/README.md +34 -0
- package/gen/types.d.ts +24682 -0
- package/lib/cache/activatableSelectOptions.d.ts +18 -0
- package/lib/cache/activatableSelectOptions.js +762 -0
- package/lib/cache/ancestorBloodAdvantages.d.ts +4 -0
- package/lib/cache/ancestorBloodAdvantages.js +13 -0
- package/lib/cache/index.d.ts +31 -0
- package/lib/cache/index.js +22 -0
- package/lib/cache/internal.d.ts +4 -0
- package/lib/cache/internal.js +1 -0
- package/lib/cache/magicalAndBlessedAdvantagesAndDisadvantages.d.ts +3 -0
- package/lib/cache/magicalAndBlessedAdvantagesAndDisadvantages.js +103 -0
- package/lib/cache/newApplicationsAndUses.d.ts +22 -0
- package/lib/cache/newApplicationsAndUses.js +12 -0
- package/lib/main.d.ts +17 -0
- package/lib/main.js +226 -0
- package/lib/test.d.ts +1 -0
- package/lib/test.js +11 -0
- package/lib/types/Advantage.d.ts +1193 -0
- package/lib/types/Advantage.js +58 -0
- package/lib/types/AnimalDisease.d.ts +91 -0
- package/lib/types/AnimalDisease.js +35 -0
- package/lib/types/AnimalType.d.ts +6 -0
- package/lib/types/AnimalType.js +21 -0
- package/lib/types/ArcaneBardTradition.d.ts +30 -0
- package/lib/types/ArcaneBardTradition.js +14 -0
- package/lib/types/ArcaneDancerTradition.d.ts +30 -0
- package/lib/types/ArcaneDancerTradition.js +14 -0
- package/lib/types/Aspect.d.ts +7 -0
- package/lib/types/Aspect.js +27 -0
- package/lib/types/Attribute.d.ts +19 -0
- package/lib/types/Attribute.js +49 -0
- package/lib/types/Blessing.d.ts +106 -0
- package/lib/types/Blessing.js +102 -0
- package/lib/types/Cantrip.d.ts +134 -0
- package/lib/types/Cantrip.js +166 -0
- package/lib/types/Ceremony.d.ts +685 -0
- package/lib/types/Ceremony.js +94 -0
- package/lib/types/CombatTechnique.d.ts +153 -0
- package/lib/types/CombatTechnique.js +133 -0
- package/lib/types/Condition.d.ts +53 -0
- package/lib/types/Condition.js +38 -0
- package/lib/types/Continent.d.ts +6 -0
- package/lib/types/Continent.js +22 -0
- package/lib/types/Culture.d.ts +158 -0
- package/lib/types/Culture.js +374 -0
- package/lib/types/DerivedCharacteristic.d.ts +267 -0
- package/lib/types/DerivedCharacteristic.js +227 -0
- package/lib/types/Disadvantage.d.ts +1120 -0
- package/lib/types/Disadvantage.js +59 -0
- package/lib/types/Disease.d.ts +111 -0
- package/lib/types/Disease.js +35 -0
- package/lib/types/Element.d.ts +6 -0
- package/lib/types/Element.js +21 -0
- package/lib/types/ExperienceLevel.d.ts +13 -0
- package/lib/types/ExperienceLevel.js +56 -0
- package/lib/types/EyeColor.d.ts +6 -0
- package/lib/types/EyeColor.js +21 -0
- package/lib/types/FamiliarsTrick.d.ts +192 -0
- package/lib/types/FamiliarsTrick.js +202 -0
- package/lib/types/HairColor.d.ts +6 -0
- package/lib/types/HairColor.js +21 -0
- package/lib/types/HomunculusType.d.ts +6 -0
- package/lib/types/HomunculusType.js +15 -0
- package/lib/types/Influence.d.ts +80 -0
- package/lib/types/Influence.js +52 -0
- package/lib/types/Lessons.d.ts +181 -0
- package/lib/types/Lessons.js +230 -0
- package/lib/types/LiturgicalChant.d.ts +685 -0
- package/lib/types/LiturgicalChant.js +94 -0
- package/lib/types/Locale.d.ts +1607 -0
- package/lib/types/Locale.js +1747 -0
- package/lib/types/MetaCondition.d.ts +53 -0
- package/lib/types/MetaCondition.js +39 -0
- package/lib/types/PactCategory.d.ts +75 -0
- package/lib/types/PactCategory.js +102 -0
- package/lib/types/Patron.d.ts +101 -0
- package/lib/types/Patron.js +203 -0
- package/lib/types/PatronCategory.d.ts +7 -0
- package/lib/types/PatronCategory.js +26 -0
- package/lib/types/PersonalityTrait.d.ts +81 -0
- package/lib/types/PersonalityTrait.js +58 -0
- package/lib/types/Profession.d.ts +2120 -0
- package/lib/types/Profession.js +631 -0
- package/lib/types/Property.d.ts +7 -0
- package/lib/types/Property.js +26 -0
- package/lib/types/Race.d.ts +207 -0
- package/lib/types/Race.js +332 -0
- package/lib/types/Region.d.ts +6 -0
- package/lib/types/Region.js +21 -0
- package/lib/types/Ritual.d.ts +688 -0
- package/lib/types/Ritual.js +96 -0
- package/lib/types/Service.d.ts +56 -0
- package/lib/types/Service.js +45 -0
- package/lib/types/SexPractice.d.ts +51 -0
- package/lib/types/SexPractice.js +39 -0
- package/lib/types/Skill.d.ts +116 -0
- package/lib/types/Skill.js +139 -0
- package/lib/types/SkillGroup.d.ts +17 -0
- package/lib/types/SkillGroup.js +45 -0
- package/lib/types/SkillModificationLevel.d.ts +34 -0
- package/lib/types/SkillModificationLevel.js +116 -0
- package/lib/types/SocialStatus.d.ts +7 -0
- package/lib/types/SocialStatus.js +26 -0
- package/lib/types/Spell.d.ts +688 -0
- package/lib/types/Spell.js +96 -0
- package/lib/types/State.d.ts +52 -0
- package/lib/types/State.js +31 -0
- package/lib/types/Talisman.d.ts +135 -0
- package/lib/types/Talisman.js +168 -0
- package/lib/types/TargetCategory.d.ts +7 -0
- package/lib/types/TargetCategory.js +26 -0
- package/lib/types/_Activatable.d.ts +12 -0
- package/lib/types/_Activatable.js +43 -0
- package/lib/types/_ActivatableAdvanced.d.ts +50 -0
- package/lib/types/_ActivatableAdvanced.js +101 -0
- package/lib/types/_ActivatableAdventurePointsValue.d.ts +159 -0
- package/lib/types/_ActivatableAdventurePointsValue.js +148 -0
- package/lib/types/_ActivatableAutomatic.d.ts +74 -0
- package/lib/types/_ActivatableAutomatic.js +64 -0
- package/lib/types/_ActivatableCombat.d.ts +123 -0
- package/lib/types/_ActivatableCombat.js +350 -0
- package/lib/types/_ActivatableNames.d.ts +15 -0
- package/lib/types/_ActivatableNames.js +26 -0
- package/lib/types/_ActivatableNonMundane.d.ts +387 -0
- package/lib/types/_ActivatableNonMundane.js +536 -0
- package/lib/types/_ActivatableSelectOptionCategory.d.ts +1380 -0
- package/lib/types/_ActivatableSelectOptionCategory.js +478 -0
- package/lib/types/_ActivatableSelectOptions.d.ts +1077 -0
- package/lib/types/_ActivatableSelectOptions.js +218 -0
- package/lib/types/_ActivatableSkill.d.ts +1231 -0
- package/lib/types/_ActivatableSkill.js +89 -0
- package/lib/types/_ActivatableSkillApplicationsAndUses.d.ts +109 -0
- package/lib/types/_ActivatableSkillApplicationsAndUses.js +80 -0
- package/lib/types/_ActivatableSkillCastingTime.d.ts +66 -0
- package/lib/types/_ActivatableSkillCastingTime.js +92 -0
- package/lib/types/_ActivatableSkillCheckResultBased.d.ts +27 -0
- package/lib/types/_ActivatableSkillCheckResultBased.js +45 -0
- package/lib/types/_ActivatableSkillCost.d.ts +366 -0
- package/lib/types/_ActivatableSkillCost.js +280 -0
- package/lib/types/_ActivatableSkillDuration.d.ts +204 -0
- package/lib/types/_ActivatableSkillDuration.js +138 -0
- package/lib/types/_ActivatableSkillEffect.d.ts +16 -0
- package/lib/types/_ActivatableSkillEffect.js +65 -0
- package/lib/types/_ActivatableSkillRange.d.ts +62 -0
- package/lib/types/_ActivatableSkillRange.js +106 -0
- package/lib/types/_ActivatableSkillTargetCategory.d.ts +14 -0
- package/lib/types/_ActivatableSkillTargetCategory.js +30 -0
- package/lib/types/_AlternativeNames.d.ts +5 -0
- package/lib/types/_AlternativeNames.js +14 -0
- package/lib/types/_ArcaneTradition.d.ts +30 -0
- package/lib/types/_ArcaneTradition.js +14 -0
- package/lib/types/_Blessed.d.ts +8 -0
- package/lib/types/_Blessed.js +22 -0
- package/lib/types/_Color.d.ts +19 -0
- package/lib/types/_Color.js +27 -0
- package/lib/types/_CommonnessRatedAdvantageDisadvantage.d.ts +7 -0
- package/lib/types/_CommonnessRatedAdvantageDisadvantage.js +19 -0
- package/lib/types/_Dice.d.ts +6 -0
- package/lib/types/_Dice.js +23 -0
- package/lib/types/_DiseasePoison.d.ts +59 -0
- package/lib/types/_DiseasePoison.js +110 -0
- package/lib/types/_Enhancements.d.ts +170 -0
- package/lib/types/_Enhancements.js +80 -0
- package/lib/types/_Identifier.d.ts +170 -0
- package/lib/types/_Identifier.js +325 -0
- package/lib/types/_IdentifierGroup.d.ts +413 -0
- package/lib/types/_IdentifierGroup.js +333 -0
- package/lib/types/_ImprovementCost.d.ts +7 -0
- package/lib/types/_ImprovementCost.js +10 -0
- package/lib/types/_MathExpression.d.ts +12 -0
- package/lib/types/_MathExpression.js +36 -0
- package/lib/types/_Prerequisite.d.ts +421 -0
- package/lib/types/_Prerequisite.js +163 -0
- package/lib/types/_ResponsiveText.d.ts +13 -0
- package/lib/types/_ResponsiveText.js +43 -0
- package/lib/types/_Sex.d.ts +5 -0
- package/lib/types/_Sex.js +8 -0
- package/lib/types/_SizeCategory.d.ts +15 -0
- package/lib/types/_SizeCategory.js +24 -0
- package/lib/types/_SkillCheck.d.ts +11 -0
- package/lib/types/_SkillCheck.js +23 -0
- package/lib/types/_Spellwork.d.ts +17 -0
- package/lib/types/_Spellwork.js +39 -0
- package/lib/types/equipment/EquipmentPackage.d.ts +85 -0
- package/lib/types/equipment/EquipmentPackage.js +41 -0
- package/lib/types/equipment/item/Ammunition.d.ts +72 -0
- package/lib/types/equipment/item/Ammunition.js +44 -0
- package/lib/types/equipment/item/Animal.d.ts +72 -0
- package/lib/types/equipment/item/Animal.js +22 -0
- package/lib/types/equipment/item/AnimalCare.d.ts +87 -0
- package/lib/types/equipment/item/AnimalCare.js +58 -0
- package/lib/types/equipment/item/Armor.d.ts +166 -0
- package/lib/types/equipment/item/Armor.js +181 -0
- package/lib/types/equipment/item/BandageOrRemedy.d.ts +201 -0
- package/lib/types/equipment/item/BandageOrRemedy.js +48 -0
- package/lib/types/equipment/item/Book.d.ts +169 -0
- package/lib/types/equipment/item/Book.js +271 -0
- package/lib/types/equipment/item/CeremonialItem.d.ts +202 -0
- package/lib/types/equipment/item/CeremonialItem.js +53 -0
- package/lib/types/equipment/item/Clothes.d.ts +201 -0
- package/lib/types/equipment/item/Clothes.js +48 -0
- package/lib/types/equipment/item/ClothingPackage.d.ts +63 -0
- package/lib/types/equipment/item/ClothingPackage.js +21 -0
- package/lib/types/equipment/item/Container.d.ts +201 -0
- package/lib/types/equipment/item/Container.js +48 -0
- package/lib/types/equipment/item/Elixir.d.ts +119 -0
- package/lib/types/equipment/item/Elixir.js +110 -0
- package/lib/types/equipment/item/EquipmentOfBlessedOnes.d.ts +215 -0
- package/lib/types/equipment/item/EquipmentOfBlessedOnes.js +44 -0
- package/lib/types/equipment/item/GemOrPreciousStone.d.ts +74 -0
- package/lib/types/equipment/item/GemOrPreciousStone.js +52 -0
- package/lib/types/equipment/item/IlluminationLightSource.d.ts +210 -0
- package/lib/types/equipment/item/IlluminationLightSource.js +78 -0
- package/lib/types/equipment/item/IlluminationRefillOrSupply.d.ts +201 -0
- package/lib/types/equipment/item/IlluminationRefillOrSupply.js +48 -0
- package/lib/types/equipment/item/Jewelry.d.ts +74 -0
- package/lib/types/equipment/item/Jewelry.js +46 -0
- package/lib/types/equipment/item/Laboratory.d.ts +81 -0
- package/lib/types/equipment/item/Laboratory.js +34 -0
- package/lib/types/equipment/item/Liebesspielzeug.d.ts +201 -0
- package/lib/types/equipment/item/Liebesspielzeug.js +48 -0
- package/lib/types/equipment/item/LuxuryGood.d.ts +201 -0
- package/lib/types/equipment/item/LuxuryGood.js +48 -0
- package/lib/types/equipment/item/MagicalArtifact.d.ts +204 -0
- package/lib/types/equipment/item/MagicalArtifact.js +82 -0
- package/lib/types/equipment/item/MusicalInstrument.d.ts +201 -0
- package/lib/types/equipment/item/MusicalInstrument.js +48 -0
- package/lib/types/equipment/item/Newspaper.d.ts +67 -0
- package/lib/types/equipment/item/Newspaper.js +36 -0
- package/lib/types/equipment/item/OrienteeringAid.d.ts +200 -0
- package/lib/types/equipment/item/OrienteeringAid.js +2 -0
- package/lib/types/equipment/item/Poison.d.ts +621 -0
- package/lib/types/equipment/item/Poison.js +486 -0
- package/lib/types/equipment/item/RopeOrChain.d.ts +200 -0
- package/lib/types/equipment/item/RopeOrChain.js +2 -0
- package/lib/types/equipment/item/Stationery.d.ts +200 -0
- package/lib/types/equipment/item/Stationery.js +2 -0
- package/lib/types/equipment/item/ThievesTool.d.ts +200 -0
- package/lib/types/equipment/item/ThievesTool.js +2 -0
- package/lib/types/equipment/item/ToolOfTheTrade.d.ts +83 -0
- package/lib/types/equipment/item/ToolOfTheTrade.js +34 -0
- package/lib/types/equipment/item/TravelGearOrTool.d.ts +201 -0
- package/lib/types/equipment/item/TravelGearOrTool.js +48 -0
- package/lib/types/equipment/item/Vehicle.d.ts +80 -0
- package/lib/types/equipment/item/Vehicle.js +30 -0
- package/lib/types/equipment/item/Weapon.d.ts +225 -0
- package/lib/types/equipment/item/Weapon.js +132 -0
- package/lib/types/equipment/item/WeaponAccessory.d.ts +201 -0
- package/lib/types/equipment/item/WeaponAccessory.js +48 -0
- package/lib/types/equipment/item/WorkingSupernaturalCreature.d.ts +72 -0
- package/lib/types/equipment/item/WorkingSupernaturalCreature.js +44 -0
- package/lib/types/equipment/item/_Herbary.d.ts +76 -0
- package/lib/types/equipment/item/_Herbary.js +48 -0
- package/lib/types/equipment/item/_Item.d.ts +414 -0
- package/lib/types/equipment/item/_Item.js +254 -0
- package/lib/types/equipment/item/_MeleeWeapon.d.ts +62 -0
- package/lib/types/equipment/item/_MeleeWeapon.js +100 -0
- package/lib/types/equipment/item/_RangedWeapon.d.ts +38 -0
- package/lib/types/equipment/item/_RangedWeapon.js +93 -0
- package/lib/types/equipment/item/_Weapon.d.ts +25 -0
- package/lib/types/equipment/item/_Weapon.js +77 -0
- package/lib/types/equipment/item/sub/ArmorType.d.ts +7 -0
- package/lib/types/equipment/item/sub/ArmorType.js +25 -0
- package/lib/types/equipment/item/sub/Reach.d.ts +7 -0
- package/lib/types/equipment/item/sub/Reach.js +28 -0
- package/lib/types/index.d.ts +160 -0
- package/lib/types/index.js +160 -0
- package/lib/types/magicalActions/AnimistPower.d.ts +302 -0
- package/lib/types/magicalActions/AnimistPower.js +204 -0
- package/lib/types/magicalActions/AnimistPower_Tribe.d.ts +30 -0
- package/lib/types/magicalActions/AnimistPower_Tribe.js +26 -0
- package/lib/types/magicalActions/Bannzeichen.d.ts +244 -0
- package/lib/types/magicalActions/Bannzeichen.js +231 -0
- package/lib/types/magicalActions/Curse.d.ts +219 -0
- package/lib/types/magicalActions/Curse.js +133 -0
- package/lib/types/magicalActions/DominationRitual.d.ts +204 -0
- package/lib/types/magicalActions/DominationRitual.js +133 -0
- package/lib/types/magicalActions/ElvenMagicalSong.d.ts +126 -0
- package/lib/types/magicalActions/ElvenMagicalSong.js +117 -0
- package/lib/types/magicalActions/GeodeRitual.d.ts +227 -0
- package/lib/types/magicalActions/GeodeRitual.js +142 -0
- package/lib/types/magicalActions/GoblinRitual.d.ts +286 -0
- package/lib/types/magicalActions/GoblinRitual.js +196 -0
- package/lib/types/magicalActions/JesterTrick.d.ts +305 -0
- package/lib/types/magicalActions/JesterTrick.js +160 -0
- package/lib/types/magicalActions/MagicalDance.d.ts +129 -0
- package/lib/types/magicalActions/MagicalDance.js +119 -0
- package/lib/types/magicalActions/MagicalMelody.d.ts +133 -0
- package/lib/types/magicalActions/MagicalMelody.js +123 -0
- package/lib/types/magicalActions/MagicalRune.d.ts +279 -0
- package/lib/types/magicalActions/MagicalRune.js +292 -0
- package/lib/types/magicalActions/ZibiljaRitual.d.ts +420 -0
- package/lib/types/magicalActions/ZibiljaRitual.js +90 -0
- package/lib/types/magicalActions/_MusicTradition.d.ts +17 -0
- package/lib/types/magicalActions/_MusicTradition.js +43 -0
- package/lib/types/prerequisites/ConditionalPrerequisites.d.ts +42 -0
- package/lib/types/prerequisites/ConditionalPrerequisites.js +9 -0
- package/lib/types/prerequisites/DisplayOption.d.ts +13 -0
- package/lib/types/prerequisites/DisplayOption.js +27 -0
- package/lib/types/prerequisites/PrerequisiteGroups.d.ts +2053 -0
- package/lib/types/prerequisites/PrerequisiteGroups.js +180 -0
- package/lib/types/prerequisites/single/ActivatablePrerequisite.d.ts +133 -0
- package/lib/types/prerequisites/single/ActivatablePrerequisite.js +32 -0
- package/lib/types/prerequisites/single/AncestorBloodPrerequisite.d.ts +4 -0
- package/lib/types/prerequisites/single/AncestorBloodPrerequisite.js +4 -0
- package/lib/types/prerequisites/single/AnimistPowerPrerequisite.d.ts +18 -0
- package/lib/types/prerequisites/single/AnimistPowerPrerequisite.js +24 -0
- package/lib/types/prerequisites/single/CulturePrerequisite.d.ts +16 -0
- package/lib/types/prerequisites/single/CulturePrerequisite.js +16 -0
- package/lib/types/prerequisites/single/EnhancementPrerequisite.d.ts +4 -0
- package/lib/types/prerequisites/single/EnhancementPrerequisite.js +12 -0
- package/lib/types/prerequisites/single/InfluencePrerequisite.d.ts +17 -0
- package/lib/types/prerequisites/single/InfluencePrerequisite.js +19 -0
- package/lib/types/prerequisites/single/PactPrerequisite.d.ts +18 -0
- package/lib/types/prerequisites/single/PactPrerequisite.js +24 -0
- package/lib/types/prerequisites/single/PersonalityTraitPrerequisite.d.ts +17 -0
- package/lib/types/prerequisites/single/PersonalityTraitPrerequisite.js +19 -0
- package/lib/types/prerequisites/single/PrimaryAttributePrerequisite.d.ts +20 -0
- package/lib/types/prerequisites/single/PrimaryAttributePrerequisite.js +25 -0
- package/lib/types/prerequisites/single/ProfessionPrerequisite.d.ts +16 -0
- package/lib/types/prerequisites/single/ProfessionPrerequisite.js +16 -0
- package/lib/types/prerequisites/single/PublicationPrerequisite.d.ts +16 -0
- package/lib/types/prerequisites/single/PublicationPrerequisite.js +15 -0
- package/lib/types/prerequisites/single/RacePrerequisite.d.ts +17 -0
- package/lib/types/prerequisites/single/RacePrerequisite.js +19 -0
- package/lib/types/prerequisites/single/RatedMinimumNumberPrerequisite.d.ts +51 -0
- package/lib/types/prerequisites/single/RatedMinimumNumberPrerequisite.js +82 -0
- package/lib/types/prerequisites/single/RatedPrerequisite.d.ts +26 -0
- package/lib/types/prerequisites/single/RatedPrerequisite.js +19 -0
- package/lib/types/prerequisites/single/RatedSumPrerequisite.d.ts +17 -0
- package/lib/types/prerequisites/single/RatedSumPrerequisite.js +19 -0
- package/lib/types/prerequisites/single/RulePrerequisite.d.ts +19 -0
- package/lib/types/prerequisites/single/RulePrerequisite.js +15 -0
- package/lib/types/prerequisites/single/SexPrerequisite.d.ts +19 -0
- package/lib/types/prerequisites/single/SexPrerequisite.js +15 -0
- package/lib/types/prerequisites/single/SexualCharacteristicPrerequisite.d.ts +7 -0
- package/lib/types/prerequisites/single/SexualCharacteristicPrerequisite.js +17 -0
- package/lib/types/prerequisites/single/SocialStatusPrerequisite.d.ts +16 -0
- package/lib/types/prerequisites/single/SocialStatusPrerequisite.js +16 -0
- package/lib/types/prerequisites/single/StatePrerequisite.d.ts +16 -0
- package/lib/types/prerequisites/single/StatePrerequisite.js +15 -0
- package/lib/types/prerequisites/single/TextPrerequisite.d.ts +19 -0
- package/lib/types/prerequisites/single/TextPrerequisite.js +53 -0
- package/lib/types/prerequisites/single/TraditionPrerequisite.d.ts +37 -0
- package/lib/types/prerequisites/single/TraditionPrerequisite.js +42 -0
- package/lib/types/rule/AlternativeRule.d.ts +54 -0
- package/lib/types/rule/AlternativeRule.js +40 -0
- package/lib/types/rule/AlternativeRule_PlayerType.d.ts +6 -0
- package/lib/types/rule/AlternativeRule_PlayerType.js +16 -0
- package/lib/types/rule/CoreRule.d.ts +143 -0
- package/lib/types/rule/CoreRule.js +181 -0
- package/lib/types/rule/FocusRule.d.ts +79 -0
- package/lib/types/rule/FocusRule.js +48 -0
- package/lib/types/rule/FocusRule_Subject.d.ts +6 -0
- package/lib/types/rule/FocusRule_Subject.js +22 -0
- package/lib/types/rule/OptionalRule.d.ts +83 -0
- package/lib/types/rule/OptionalRule.js +59 -0
- package/lib/types/source/Publication.d.ts +50 -0
- package/lib/types/source/Publication.js +64 -0
- package/lib/types/source/_Erratum.d.ts +12 -0
- package/lib/types/source/_Erratum.js +22 -0
- package/lib/types/source/_PublicationRef.d.ts +168 -0
- package/lib/types/source/_PublicationRef.js +164 -0
- package/lib/types/specialAbility/AdvancedCombatSpecialAbility.d.ts +1234 -0
- package/lib/types/specialAbility/AdvancedCombatSpecialAbility.js +52 -0
- package/lib/types/specialAbility/AdvancedKarmaSpecialAbility.d.ts +1116 -0
- package/lib/types/specialAbility/AdvancedKarmaSpecialAbility.js +47 -0
- package/lib/types/specialAbility/AdvancedMagicalSpecialAbility.d.ts +1116 -0
- package/lib/types/specialAbility/AdvancedMagicalSpecialAbility.js +47 -0
- package/lib/types/specialAbility/AdvancedSkillSpecialAbility.d.ts +1116 -0
- package/lib/types/specialAbility/AdvancedSkillSpecialAbility.js +47 -0
- package/lib/types/specialAbility/AncestorGlyph.d.ts +1063 -0
- package/lib/types/specialAbility/AncestorGlyph.js +48 -0
- package/lib/types/specialAbility/BlessedTradition.d.ts +1141 -0
- package/lib/types/specialAbility/BlessedTradition.js +147 -0
- package/lib/types/specialAbility/BrawlingSpecialAbility.d.ts +1127 -0
- package/lib/types/specialAbility/BrawlingSpecialAbility.js +46 -0
- package/lib/types/specialAbility/CeremonialItemSpecialAbility.d.ts +1117 -0
- package/lib/types/specialAbility/CeremonialItemSpecialAbility.js +53 -0
- package/lib/types/specialAbility/CombatSpecialAbility.d.ts +1235 -0
- package/lib/types/specialAbility/CombatSpecialAbility.js +52 -0
- package/lib/types/specialAbility/CombatStyleSpecialAbility.d.ts +1286 -0
- package/lib/types/specialAbility/CombatStyleSpecialAbility.js +54 -0
- package/lib/types/specialAbility/CommandSpecialAbility.d.ts +1127 -0
- package/lib/types/specialAbility/CommandSpecialAbility.js +46 -0
- package/lib/types/specialAbility/FamiliarSpecialAbility.d.ts +1062 -0
- package/lib/types/specialAbility/FamiliarSpecialAbility.js +43 -0
- package/lib/types/specialAbility/FatePointSexSpecialAbility.d.ts +1062 -0
- package/lib/types/specialAbility/FatePointSexSpecialAbility.js +43 -0
- package/lib/types/specialAbility/FatePointSpecialAbility.d.ts +1116 -0
- package/lib/types/specialAbility/FatePointSpecialAbility.js +46 -0
- package/lib/types/specialAbility/GeneralSpecialAbility.d.ts +1117 -0
- package/lib/types/specialAbility/GeneralSpecialAbility.js +47 -0
- package/lib/types/specialAbility/KarmaSpecialAbility.d.ts +1062 -0
- package/lib/types/specialAbility/KarmaSpecialAbility.js +43 -0
- package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.d.ts +1165 -0
- package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.js +49 -0
- package/lib/types/specialAbility/LycantropicGift.d.ts +1062 -0
- package/lib/types/specialAbility/LycantropicGift.js +43 -0
- package/lib/types/specialAbility/MagicStyleSpecialAbility.d.ts +1165 -0
- package/lib/types/specialAbility/MagicStyleSpecialAbility.js +49 -0
- package/lib/types/specialAbility/MagicalSign.d.ts +127 -0
- package/lib/types/specialAbility/MagicalSign.js +66 -0
- package/lib/types/specialAbility/MagicalSpecialAbility.d.ts +1117 -0
- package/lib/types/specialAbility/MagicalSpecialAbility.js +47 -0
- package/lib/types/specialAbility/MagicalTradition.d.ts +1138 -0
- package/lib/types/specialAbility/MagicalTradition.js +115 -0
- package/lib/types/specialAbility/PactGift.d.ts +1143 -0
- package/lib/types/specialAbility/PactGift.js +76 -0
- package/lib/types/specialAbility/ProtectiveWardingCircleSpecialAbility.d.ts +1064 -0
- package/lib/types/specialAbility/ProtectiveWardingCircleSpecialAbility.js +54 -0
- package/lib/types/specialAbility/Sermon.d.ts +1062 -0
- package/lib/types/specialAbility/Sermon.js +43 -0
- package/lib/types/specialAbility/SexSpecialAbility.d.ts +1116 -0
- package/lib/types/specialAbility/SexSpecialAbility.js +46 -0
- package/lib/types/specialAbility/SikaryanDrainSpecialAbility.d.ts +1062 -0
- package/lib/types/specialAbility/SikaryanDrainSpecialAbility.js +43 -0
- package/lib/types/specialAbility/SkillStyleSpecialAbility.d.ts +1111 -0
- package/lib/types/specialAbility/SkillStyleSpecialAbility.js +46 -0
- package/lib/types/specialAbility/VampiricGift.d.ts +1062 -0
- package/lib/types/specialAbility/VampiricGift.js +43 -0
- package/lib/types/specialAbility/Vision.d.ts +1062 -0
- package/lib/types/specialAbility/Vision.js +43 -0
- package/lib/types/specialAbility/_Tradition.d.ts +5 -0
- package/lib/types/specialAbility/_Tradition.js +14 -0
- package/lib/types/specialAbility/sub/Language.d.ts +108 -0
- package/lib/types/specialAbility/sub/Language.js +98 -0
- package/lib/types/specialAbility/sub/Script.d.ts +62 -0
- package/lib/types/specialAbility/sub/Script.js +50 -0
- package/lib/types/specialAbility/sub/TradeSecret.d.ts +972 -0
- package/lib/types/specialAbility/sub/TradeSecret.js +76 -0
- package/lib/types/specialAbility/sub/_LanguageScript.d.ts +5 -0
- package/lib/types/specialAbility/sub/_LanguageScript.js +15 -0
- package/lib/types/traditionArtifacts/ArcaneOrbEnchantment.d.ts +1282 -0
- package/lib/types/traditionArtifacts/ArcaneOrbEnchantment.js +50 -0
- package/lib/types/traditionArtifacts/AttireEnchantment.d.ts +1282 -0
- package/lib/types/traditionArtifacts/AttireEnchantment.js +50 -0
- package/lib/types/traditionArtifacts/Beutelzauber.d.ts +1282 -0
- package/lib/types/traditionArtifacts/Beutelzauber.js +50 -0
- package/lib/types/traditionArtifacts/BowlEnchantment.d.ts +1282 -0
- package/lib/types/traditionArtifacts/BowlEnchantment.js +50 -0
- package/lib/types/traditionArtifacts/CauldronEnchantment.d.ts +1283 -0
- package/lib/types/traditionArtifacts/CauldronEnchantment.js +55 -0
- package/lib/types/traditionArtifacts/ChronicleEnchantment.d.ts +1282 -0
- package/lib/types/traditionArtifacts/ChronicleEnchantment.js +50 -0
- package/lib/types/traditionArtifacts/DaggerRitual.d.ts +1294 -0
- package/lib/types/traditionArtifacts/DaggerRitual.js +85 -0
- package/lib/types/traditionArtifacts/FoolsHatEnchantment.d.ts +1282 -0
- package/lib/types/traditionArtifacts/FoolsHatEnchantment.js +52 -0
- package/lib/types/traditionArtifacts/Haubenzauber.d.ts +1282 -0
- package/lib/types/traditionArtifacts/Haubenzauber.js +50 -0
- package/lib/types/traditionArtifacts/InstrumentEnchantment.d.ts +1282 -0
- package/lib/types/traditionArtifacts/InstrumentEnchantment.js +50 -0
- package/lib/types/traditionArtifacts/Krallenkettenzauber.d.ts +1282 -0
- package/lib/types/traditionArtifacts/Krallenkettenzauber.js +50 -0
- package/lib/types/traditionArtifacts/Kristallkugelzauber.d.ts +1282 -0
- package/lib/types/traditionArtifacts/Kristallkugelzauber.js +50 -0
- package/lib/types/traditionArtifacts/OrbEnchantment.d.ts +1282 -0
- package/lib/types/traditionArtifacts/OrbEnchantment.js +50 -0
- package/lib/types/traditionArtifacts/RingEnchantment.d.ts +1282 -0
- package/lib/types/traditionArtifacts/RingEnchantment.js +50 -0
- package/lib/types/traditionArtifacts/SickleRitual.d.ts +1282 -0
- package/lib/types/traditionArtifacts/SickleRitual.js +50 -0
- package/lib/types/traditionArtifacts/SpellSwordEnchantment.d.ts +1282 -0
- package/lib/types/traditionArtifacts/SpellSwordEnchantment.js +50 -0
- package/lib/types/traditionArtifacts/StaffEnchantment.d.ts +1286 -0
- package/lib/types/traditionArtifacts/StaffEnchantment.js +55 -0
- package/lib/types/traditionArtifacts/ToyEnchantment.d.ts +1282 -0
- package/lib/types/traditionArtifacts/ToyEnchantment.js +50 -0
- package/lib/types/traditionArtifacts/Trinkhornzauber.d.ts +1282 -0
- package/lib/types/traditionArtifacts/Trinkhornzauber.js +50 -0
- package/lib/types/traditionArtifacts/WandEnchantment.d.ts +1231 -0
- package/lib/types/traditionArtifacts/WandEnchantment.js +49 -0
- package/lib/types/traditionArtifacts/WeaponEnchantment.d.ts +1282 -0
- package/lib/types/traditionArtifacts/WeaponEnchantment.js +50 -0
- package/lib/types/traditionArtifacts/sub/AnimalShape.d.ts +8 -0
- package/lib/types/traditionArtifacts/sub/AnimalShape.js +24 -0
- package/lib/types/traditionArtifacts/sub/AnimalShapePath.d.ts +6 -0
- package/lib/types/traditionArtifacts/sub/AnimalShapePath.js +15 -0
- package/lib/types/traditionArtifacts/sub/AnimalShapeSize.d.ts +8 -0
- package/lib/types/traditionArtifacts/sub/AnimalShapeSize.js +23 -0
- package/lib/types/traditionArtifacts/sub/Brew.d.ts +6 -0
- package/lib/types/traditionArtifacts/sub/Brew.js +15 -0
- package/package.json +61 -0
|
@@ -0,0 +1,478 @@
|
|
|
1
|
+
import * as DB from "tsondb/schema/dsl";
|
|
2
|
+
import { NestedTranslationMap } from "./Locale.js";
|
|
3
|
+
import { CeremonyIdentifier, CloseCombatTechniqueIdentifier, ElementIdentifier, LiturgicalChantIdentifier, RangedCombatTechniqueIdentifier, RitualIdentifier, SkillGroupIdentifier, SkillIdentifier, SpellIdentifier, TargetCategoryIdentifier, } from "./_Identifier.js";
|
|
4
|
+
import { ActivatableIdentifier, CombatTechniqueIdentifier, SkillishIdentifier, } from "./_IdentifierGroup.js";
|
|
5
|
+
export const SelectOptionCategory = DB.Enum(import.meta.url, {
|
|
6
|
+
name: "SelectOptionCategory",
|
|
7
|
+
values: () => ({
|
|
8
|
+
Blessings: DB.EnumCase({ type: null }),
|
|
9
|
+
Cantrips: DB.EnumCase({ type: null }),
|
|
10
|
+
TradeSecrets: DB.EnumCase({ type: null }),
|
|
11
|
+
Scripts: DB.EnumCase({ type: null }),
|
|
12
|
+
AnimalShapes: DB.EnumCase({ type: null }),
|
|
13
|
+
ArcaneBardTraditions: DB.EnumCase({ type: null }),
|
|
14
|
+
ArcaneDancerTraditions: DB.EnumCase({ type: null }),
|
|
15
|
+
SexPractices: DB.EnumCase({ type: null }),
|
|
16
|
+
Races: DB.EnumCase({ type: null }),
|
|
17
|
+
Cultures: DB.EnumCase({ type: null }),
|
|
18
|
+
RacesAndCultures: DB.EnumCase({ type: null }),
|
|
19
|
+
HomunculusTypes: DB.EnumCase({ type: null }),
|
|
20
|
+
BlessedTraditions: DB.EnumCase({
|
|
21
|
+
type: DB.IncludeIdentifier(BlessedTraditionsSelectOptionCategory),
|
|
22
|
+
}),
|
|
23
|
+
Elements: DB.EnumCase({ type: DB.IncludeIdentifier(ElementsSelectOptionCategory) }),
|
|
24
|
+
Properties: DB.EnumCase({ type: DB.IncludeIdentifier(PropertiesSelectOptionCategory) }),
|
|
25
|
+
Aspects: DB.EnumCase({ type: DB.IncludeIdentifier(AspectSelectOptionCategory) }),
|
|
26
|
+
Diseases: DB.EnumCase({ type: DB.IncludeIdentifier(DiseasesPoisonsSelectOptionCategory) }),
|
|
27
|
+
Poisons: DB.EnumCase({ type: DB.IncludeIdentifier(DiseasesPoisonsSelectOptionCategory) }),
|
|
28
|
+
Languages: DB.EnumCase({ type: DB.IncludeIdentifier(LanguagesSelectOptionCategory) }),
|
|
29
|
+
Skills: DB.EnumCase({ type: DB.IncludeIdentifier(SkillsSelectOptionCategory) }),
|
|
30
|
+
CombatTechniques: DB.EnumCase({
|
|
31
|
+
type: DB.IncludeIdentifier(CombatTechniquesSelectOptionCategory),
|
|
32
|
+
}),
|
|
33
|
+
TargetCategories: DB.EnumCase({
|
|
34
|
+
type: DB.IncludeIdentifier(TargetCategoriesSelectOptionCategory),
|
|
35
|
+
}),
|
|
36
|
+
}),
|
|
37
|
+
});
|
|
38
|
+
export const TradeSecretSelectOptionCategory = DB.Enum(import.meta.url, {
|
|
39
|
+
name: "TradeSecretSelectOptionCategory",
|
|
40
|
+
values: () => ({
|
|
41
|
+
Blessings: DB.EnumCase({ type: null }),
|
|
42
|
+
Cantrips: DB.EnumCase({ type: null }),
|
|
43
|
+
Scripts: DB.EnumCase({ type: null }),
|
|
44
|
+
AnimalShapes: DB.EnumCase({ type: null }),
|
|
45
|
+
ArcaneBardTraditions: DB.EnumCase({ type: null }),
|
|
46
|
+
ArcaneDancerTraditions: DB.EnumCase({ type: null }),
|
|
47
|
+
SexPractices: DB.EnumCase({ type: null }),
|
|
48
|
+
Races: DB.EnumCase({ type: null }),
|
|
49
|
+
Cultures: DB.EnumCase({ type: null }),
|
|
50
|
+
RacesAndCultures: DB.EnumCase({ type: null }),
|
|
51
|
+
HomunculusTypes: DB.EnumCase({ type: null }),
|
|
52
|
+
BlessedTraditions: DB.EnumCase({
|
|
53
|
+
type: DB.IncludeIdentifier(BlessedTraditionsSelectOptionCategory),
|
|
54
|
+
}),
|
|
55
|
+
Elements: DB.EnumCase({ type: DB.IncludeIdentifier(ElementsSelectOptionCategory) }),
|
|
56
|
+
Properties: DB.EnumCase({ type: DB.IncludeIdentifier(PropertiesSelectOptionCategory) }),
|
|
57
|
+
Aspects: DB.EnumCase({ type: DB.IncludeIdentifier(AspectSelectOptionCategory) }),
|
|
58
|
+
Diseases: DB.EnumCase({ type: DB.IncludeIdentifier(DiseasesPoisonsSelectOptionCategory) }),
|
|
59
|
+
Poisons: DB.EnumCase({ type: DB.IncludeIdentifier(DiseasesPoisonsSelectOptionCategory) }),
|
|
60
|
+
Languages: DB.EnumCase({ type: DB.IncludeIdentifier(LanguagesSelectOptionCategory) }),
|
|
61
|
+
Skills: DB.EnumCase({ type: DB.IncludeIdentifier(SkillsSelectOptionCategory) }),
|
|
62
|
+
CombatTechniques: DB.EnumCase({
|
|
63
|
+
type: DB.IncludeIdentifier(CombatTechniquesSelectOptionCategory),
|
|
64
|
+
}),
|
|
65
|
+
TargetCategories: DB.EnumCase({
|
|
66
|
+
type: DB.IncludeIdentifier(TargetCategoriesSelectOptionCategory),
|
|
67
|
+
}),
|
|
68
|
+
}),
|
|
69
|
+
});
|
|
70
|
+
const BlessedTraditionsSelectOptionCategory = DB.TypeAlias(import.meta.url, {
|
|
71
|
+
name: "BlessedTraditionsSelectOptionCategory",
|
|
72
|
+
type: () => DB.Object({
|
|
73
|
+
require_principles: DB.Optional({
|
|
74
|
+
comment: "Should the principles (code) of the tradition be required to select the respective tradition?",
|
|
75
|
+
type: DB.Boolean(),
|
|
76
|
+
}),
|
|
77
|
+
}),
|
|
78
|
+
});
|
|
79
|
+
const ElementsSelectOptionCategory = DB.TypeAlias(import.meta.url, {
|
|
80
|
+
name: "ElementsSelectOptionCategory",
|
|
81
|
+
type: () => DB.Object({
|
|
82
|
+
specific: DB.Optional({
|
|
83
|
+
comment: "Only include entries with the listed identifiers.",
|
|
84
|
+
type: DB.Array(ElementIdentifier(), { minItems: 1, uniqueItems: true }),
|
|
85
|
+
}),
|
|
86
|
+
}),
|
|
87
|
+
});
|
|
88
|
+
const PropertiesSelectOptionCategory = DB.TypeAlias(import.meta.url, {
|
|
89
|
+
name: "PropertiesSelectOptionCategory",
|
|
90
|
+
type: () => DB.Object({
|
|
91
|
+
require_knowledge: DB.Optional({
|
|
92
|
+
comment: "Does each property require its corresponding property knowledge?",
|
|
93
|
+
type: DB.Boolean(),
|
|
94
|
+
}),
|
|
95
|
+
require_minimum_spellworks_on: DB.Optional({
|
|
96
|
+
comment: "Require a minimum number of spellworks of the respective property to be on a minimum skill rating.",
|
|
97
|
+
type: DB.IncludeIdentifier(RequiredMinimumSkillsToBeOnSkillRating),
|
|
98
|
+
}),
|
|
99
|
+
}),
|
|
100
|
+
});
|
|
101
|
+
const AspectSelectOptionCategory = DB.TypeAlias(import.meta.url, {
|
|
102
|
+
name: "AspectSelectOptionCategory",
|
|
103
|
+
type: () => DB.Object({
|
|
104
|
+
require_knowledge: DB.Optional({
|
|
105
|
+
comment: "Does each aspect require its corresponding aspect knowledge?",
|
|
106
|
+
type: DB.Boolean(),
|
|
107
|
+
}),
|
|
108
|
+
use_master_of_suffix_as_name: DB.Optional({
|
|
109
|
+
comment: "The generated name should be the *Master of (Aspect)* suffix for this aspect instead of the aspect's name. If an aspect does not provide a suffix (such as the General aspect), it is automatically excluded from the list.",
|
|
110
|
+
type: DB.Boolean(),
|
|
111
|
+
}),
|
|
112
|
+
require_minimum_liturgies_on: DB.Optional({
|
|
113
|
+
comment: "Require a minimum number of liturgies of the respective aspect to be on a minimum skill rating.",
|
|
114
|
+
type: DB.IncludeIdentifier(RequiredMinimumSkillsToBeOnSkillRating),
|
|
115
|
+
}),
|
|
116
|
+
}),
|
|
117
|
+
});
|
|
118
|
+
const RequiredMinimumSkillsToBeOnSkillRating = DB.TypeAlias(import.meta.url, {
|
|
119
|
+
name: "RequiredMinimumSkillsToBeOnSkillRating",
|
|
120
|
+
comment: "Require a minimum number of spellworks/liturgies of the respective property/aspect to be on a minimum skill rating.",
|
|
121
|
+
type: () => DB.Object({
|
|
122
|
+
number: DB.Required({
|
|
123
|
+
comment: "The minimum number of liturgies that need to be on the defined minimum skill rating.",
|
|
124
|
+
type: DB.Integer({ minimum: 1 }),
|
|
125
|
+
}),
|
|
126
|
+
rating: DB.Required({
|
|
127
|
+
comment: "The minimum skill rating the defined minimum number of liturgies need to be on.",
|
|
128
|
+
type: DB.Integer({ minimum: 1 }),
|
|
129
|
+
}),
|
|
130
|
+
}),
|
|
131
|
+
});
|
|
132
|
+
const DiseasesPoisonsSelectOptionCategory = DB.TypeAlias(import.meta.url, {
|
|
133
|
+
name: "DiseasesPoisonsSelectOptionCategory",
|
|
134
|
+
type: () => DB.Object({
|
|
135
|
+
use_half_level_as_ap_value: DB.Optional({
|
|
136
|
+
comment: "Only convert half the disease/poison level into the AP value.",
|
|
137
|
+
type: DB.Boolean(),
|
|
138
|
+
}),
|
|
139
|
+
}),
|
|
140
|
+
});
|
|
141
|
+
const LanguagesSelectOptionCategory = DB.TypeAlias(import.meta.url, {
|
|
142
|
+
name: "LanguagesSelectOptionCategory",
|
|
143
|
+
type: () => DB.Object({
|
|
144
|
+
prerequisites: DB.Optional({
|
|
145
|
+
comment: "Generate prerequisites for each entry of the category.",
|
|
146
|
+
type: DB.Array(DB.IncludeIdentifier(LanguagesSelectOptionCategoryPrerequisite), {
|
|
147
|
+
minItems: 1,
|
|
148
|
+
}),
|
|
149
|
+
}),
|
|
150
|
+
}),
|
|
151
|
+
});
|
|
152
|
+
const LanguagesSelectOptionCategoryPrerequisite = DB.Enum(import.meta.url, {
|
|
153
|
+
name: "LanguagesSelectOptionCategoryPrerequisite",
|
|
154
|
+
values: () => ({
|
|
155
|
+
SelectOption: DB.EnumCase({ type: DB.IncludeIdentifier(OptionPrerequisite) }),
|
|
156
|
+
}),
|
|
157
|
+
});
|
|
158
|
+
const SkillsSelectOptionCategory = DB.TypeAlias(import.meta.url, {
|
|
159
|
+
name: "SkillsSelectOptionCategory",
|
|
160
|
+
type: () => DB.Object({
|
|
161
|
+
categories: DB.Required({
|
|
162
|
+
comment: "A list of skill categories.",
|
|
163
|
+
type: DB.Array(DB.IncludeIdentifier(SkillsSelectOptionCategoryCategory), { minItems: 1 }),
|
|
164
|
+
}),
|
|
165
|
+
ap_value: DB.Optional({
|
|
166
|
+
comment: "Generate AP values for each entry.",
|
|
167
|
+
type: DB.GenIncludeIdentifier(SelectOptionsAdventurePointsValue, [
|
|
168
|
+
DB.IncludeIdentifier(SkillishIdentifier),
|
|
169
|
+
]),
|
|
170
|
+
}),
|
|
171
|
+
}),
|
|
172
|
+
});
|
|
173
|
+
const SkillsSelectOptionCategoryCategory = DB.Enum(import.meta.url, {
|
|
174
|
+
name: "SkillsSelectOptionCategoryCategory",
|
|
175
|
+
values: () => ({
|
|
176
|
+
Skills: DB.EnumCase({ type: DB.IncludeIdentifier(SkillSelectOptionCategoryCategory) }),
|
|
177
|
+
Spells: DB.EnumCase({
|
|
178
|
+
type: DB.GenIncludeIdentifier(GenericSkillsSelectOptionCategoryCategory, [SpellIdentifier()]),
|
|
179
|
+
}),
|
|
180
|
+
Rituals: DB.EnumCase({
|
|
181
|
+
type: DB.GenIncludeIdentifier(GenericSkillsSelectOptionCategoryCategory, [
|
|
182
|
+
RitualIdentifier(),
|
|
183
|
+
]),
|
|
184
|
+
}),
|
|
185
|
+
LiturgicalChants: DB.EnumCase({
|
|
186
|
+
type: DB.GenIncludeIdentifier(GenericSkillsSelectOptionCategoryCategory, [
|
|
187
|
+
LiturgicalChantIdentifier(),
|
|
188
|
+
]),
|
|
189
|
+
}),
|
|
190
|
+
Ceremonies: DB.EnumCase({
|
|
191
|
+
type: DB.GenIncludeIdentifier(GenericSkillsSelectOptionCategoryCategory, [
|
|
192
|
+
CeremonyIdentifier(),
|
|
193
|
+
]),
|
|
194
|
+
}),
|
|
195
|
+
}),
|
|
196
|
+
});
|
|
197
|
+
const SkillSelectOptionCategoryCategory = DB.TypeAlias(import.meta.url, {
|
|
198
|
+
name: "SkillSelectOptionCategoryCategory",
|
|
199
|
+
type: () => DB.Object({
|
|
200
|
+
groups: DB.Optional({
|
|
201
|
+
comment: "Only include entries of the specified groups.",
|
|
202
|
+
type: DB.Array(SkillGroupIdentifier(), { minItems: 1 }),
|
|
203
|
+
}),
|
|
204
|
+
specific: DB.Optional({
|
|
205
|
+
comment: "Only include or exclude specific skills.",
|
|
206
|
+
type: DB.GenIncludeIdentifier(SpecificFromSkillSelectOptionCategoryCategory, [
|
|
207
|
+
SkillIdentifier(),
|
|
208
|
+
]),
|
|
209
|
+
}),
|
|
210
|
+
skill_applications: DB.Optional({
|
|
211
|
+
comment: "Registers new applications, which get enabled once this entry is activated with its respective select option. It specifies an entry-unique identifier, the skill it belongs to is derived from the select option automatically. A translation can be left out if its name equals the name of the origin entry.",
|
|
212
|
+
type: DB.Array(DB.IncludeIdentifier(SkillApplicationOrUse), { minItems: 1 }),
|
|
213
|
+
}),
|
|
214
|
+
skill_uses: DB.Optional({
|
|
215
|
+
comment: "Registers uses, which get enabled once this entry is activated with its respective select option. It specifies an entry-unique identifier, the skill it belongs to is derived from the select option automatically. A translation can be left out if its name equals the name of the origin entry.",
|
|
216
|
+
type: DB.Array(DB.IncludeIdentifier(SkillApplicationOrUse), { minItems: 1 }),
|
|
217
|
+
}),
|
|
218
|
+
prerequisites: DB.Optional({
|
|
219
|
+
comment: "Generate prerequisites for each entry of the category.",
|
|
220
|
+
type: DB.Array(DB.IncludeIdentifier(SkillSelectOptionCategoryPrerequisite), {
|
|
221
|
+
minItems: 1,
|
|
222
|
+
}),
|
|
223
|
+
}),
|
|
224
|
+
ap_value: DB.Optional({
|
|
225
|
+
comment: "Generate AP values for each entry.",
|
|
226
|
+
type: DB.GenIncludeIdentifier(SelectOptionsAdventurePointsValue, [SkillIdentifier()]),
|
|
227
|
+
}),
|
|
228
|
+
}),
|
|
229
|
+
});
|
|
230
|
+
const CombatTechniquesSelectOptionCategory = DB.TypeAlias(import.meta.url, {
|
|
231
|
+
name: "CombatTechniquesSelectOptionCategory",
|
|
232
|
+
type: () => DB.Object({
|
|
233
|
+
categories: DB.Required({
|
|
234
|
+
comment: "A list of combat technique categories.",
|
|
235
|
+
type: DB.Array(DB.IncludeIdentifier(CombatTechniquesSelectOptionCategoryCategory), {
|
|
236
|
+
minItems: 1,
|
|
237
|
+
}),
|
|
238
|
+
}),
|
|
239
|
+
bindingCost: DB.Optional({
|
|
240
|
+
comment: "Generate binding cost values for each entry.\n\n*Note: This only works if the entry it is defined on supports binding costs, i.e. is a tradition artifact enchantment.*",
|
|
241
|
+
type: DB.GenIncludeIdentifier(SelectOptionsBindingCostValue, [
|
|
242
|
+
DB.IncludeIdentifier(CombatTechniqueIdentifier),
|
|
243
|
+
]),
|
|
244
|
+
}),
|
|
245
|
+
ap_value: DB.Optional({
|
|
246
|
+
comment: "Generate AP values for each entry.",
|
|
247
|
+
type: DB.GenIncludeIdentifier(SelectOptionsAdventurePointsValue, [
|
|
248
|
+
DB.IncludeIdentifier(CombatTechniqueIdentifier),
|
|
249
|
+
]),
|
|
250
|
+
}),
|
|
251
|
+
}),
|
|
252
|
+
});
|
|
253
|
+
const CombatTechniquesSelectOptionCategoryCategory = DB.Enum(import.meta.url, {
|
|
254
|
+
name: "CombatTechniquesSelectOptionCategoryCategory",
|
|
255
|
+
values: () => ({
|
|
256
|
+
CloseCombatTechniques: DB.EnumCase({
|
|
257
|
+
type: DB.GenIncludeIdentifier(GenericSkillsSelectOptionCategoryCategory, [
|
|
258
|
+
CloseCombatTechniqueIdentifier(),
|
|
259
|
+
]),
|
|
260
|
+
}),
|
|
261
|
+
RangedCombatTechniques: DB.EnumCase({
|
|
262
|
+
type: DB.GenIncludeIdentifier(GenericSkillsSelectOptionCategoryCategory, [
|
|
263
|
+
RangedCombatTechniqueIdentifier(),
|
|
264
|
+
]),
|
|
265
|
+
}),
|
|
266
|
+
}),
|
|
267
|
+
});
|
|
268
|
+
const SkillApplicationOrUse = DB.TypeAlias(import.meta.url, {
|
|
269
|
+
name: "SkillApplicationOrUse",
|
|
270
|
+
type: () => DB.Object({
|
|
271
|
+
id: DB.Required({
|
|
272
|
+
comment: "The application’s or use’s identifier. An entry-unique, increasing integer.",
|
|
273
|
+
type: DB.Integer({ minimum: 1 }),
|
|
274
|
+
}),
|
|
275
|
+
translations: NestedTranslationMap(DB.Optional, "SkillApplicationOrUse", DB.Object({
|
|
276
|
+
name: DB.Required({
|
|
277
|
+
comment: "The name of the application or use if different from the activatable entry’s name.",
|
|
278
|
+
type: DB.String({ minLength: 1 }),
|
|
279
|
+
}),
|
|
280
|
+
})),
|
|
281
|
+
}),
|
|
282
|
+
});
|
|
283
|
+
const GenericSkillsSelectOptionCategoryCategory = DB.GenTypeAlias(import.meta.url, {
|
|
284
|
+
name: "GenericSkillsSelectOptionCategoryCategory",
|
|
285
|
+
parameters: [DB.Param("Ref")],
|
|
286
|
+
type: Ref => DB.Object({
|
|
287
|
+
specific: DB.Optional({
|
|
288
|
+
comment: "Only include (`Intersection`) or exclude (`Difference`) specific entries.",
|
|
289
|
+
type: DB.GenIncludeIdentifier(SpecificFromSkillSelectOptionCategoryCategory, [
|
|
290
|
+
DB.TypeArgument(Ref),
|
|
291
|
+
]),
|
|
292
|
+
}),
|
|
293
|
+
prerequisites: DB.Optional({
|
|
294
|
+
comment: "Generate prerequisites for each entry of the category.",
|
|
295
|
+
type: DB.Array(DB.IncludeIdentifier(SkillSelectOptionCategoryPrerequisite), {
|
|
296
|
+
minItems: 1,
|
|
297
|
+
}),
|
|
298
|
+
}),
|
|
299
|
+
}),
|
|
300
|
+
});
|
|
301
|
+
const SpecificFromSkillSelectOptionCategoryCategory = DB.GenTypeAlias(import.meta.url, {
|
|
302
|
+
name: "SpecificFromSkillSelectOptionCategoryCategory",
|
|
303
|
+
parameters: [DB.Param("Ref")],
|
|
304
|
+
type: Ref => DB.Object({
|
|
305
|
+
operation: DB.Required({
|
|
306
|
+
type: DB.IncludeIdentifier(SpecificFromSkillSelectOptionCategoryCategoryOperation),
|
|
307
|
+
}),
|
|
308
|
+
list: DB.Required({
|
|
309
|
+
comment: "The list of specific entries.",
|
|
310
|
+
type: DB.Array(DB.TypeArgument(Ref), { minItems: 1, uniqueItems: true }),
|
|
311
|
+
}),
|
|
312
|
+
}),
|
|
313
|
+
});
|
|
314
|
+
const SpecificFromSkillSelectOptionCategoryCategoryOperation = DB.Enum(import.meta.url, {
|
|
315
|
+
name: "SpecificFromSkillSelectOptionCategoryCategoryOperation",
|
|
316
|
+
comment: "Only include (`Intersection`) or exclude (`Difference`) specific entries.",
|
|
317
|
+
values: () => ({
|
|
318
|
+
Intersection: DB.EnumCase({ type: null }),
|
|
319
|
+
Difference: DB.EnumCase({ type: null }),
|
|
320
|
+
}),
|
|
321
|
+
});
|
|
322
|
+
const SkillSelectOptionCategoryPrerequisite = DB.Enum(import.meta.url, {
|
|
323
|
+
name: "SkillSelectOptionCategoryPrerequisite",
|
|
324
|
+
values: () => ({
|
|
325
|
+
Self: DB.EnumCase({ type: DB.IncludeIdentifier(SelfPrerequisite) }),
|
|
326
|
+
SelectOption: DB.EnumCase({ type: DB.IncludeIdentifier(OptionPrerequisite) }),
|
|
327
|
+
}),
|
|
328
|
+
});
|
|
329
|
+
const SelfPrerequisite = DB.TypeAlias(import.meta.url, {
|
|
330
|
+
name: "SelfPrerequisite",
|
|
331
|
+
type: () => DB.Object({
|
|
332
|
+
value: DB.Required({
|
|
333
|
+
comment: "The entry requires itself on a certain Skill Rating.",
|
|
334
|
+
type: DB.Integer({ minimum: 1 }),
|
|
335
|
+
}),
|
|
336
|
+
}),
|
|
337
|
+
});
|
|
338
|
+
const OptionPrerequisite = DB.TypeAlias(import.meta.url, {
|
|
339
|
+
name: "OptionPrerequisite",
|
|
340
|
+
comment: "The entry requires or prohibits itself as a select option of another entry.",
|
|
341
|
+
type: () => DB.Object({
|
|
342
|
+
id: DB.Required({
|
|
343
|
+
comment: "The target entry's identifier.",
|
|
344
|
+
type: DB.IncludeIdentifier(ActivatableIdentifier),
|
|
345
|
+
}),
|
|
346
|
+
active: DB.Required({
|
|
347
|
+
comment: "Is the select option required (`true`) or prohibited (`false`)?",
|
|
348
|
+
type: DB.Boolean(),
|
|
349
|
+
}),
|
|
350
|
+
level: DB.Optional({
|
|
351
|
+
comment: "The required level, if any.",
|
|
352
|
+
type: DB.Integer({ minimum: 2 }),
|
|
353
|
+
}),
|
|
354
|
+
}),
|
|
355
|
+
});
|
|
356
|
+
const SelectOptionsAdventurePointsValue = DB.GenEnum(import.meta.url, {
|
|
357
|
+
name: "SelectOptionsAdventurePointsValue",
|
|
358
|
+
comment: "Generate AP values for each entry.",
|
|
359
|
+
parameters: [DB.Param("Identifier")],
|
|
360
|
+
values: Identifier => ({
|
|
361
|
+
DerivedFromImprovementCost: DB.EnumCase({
|
|
362
|
+
type: DB.IncludeIdentifier(SelectOptionsDeriveAdventurePointsValueFromImprovementCost),
|
|
363
|
+
}),
|
|
364
|
+
Fixed: DB.EnumCase({
|
|
365
|
+
type: DB.GenIncludeIdentifier(SelectOptionsFixedAdventurePointsValue, [
|
|
366
|
+
DB.TypeArgument(Identifier),
|
|
367
|
+
]),
|
|
368
|
+
}),
|
|
369
|
+
}),
|
|
370
|
+
});
|
|
371
|
+
const SelectOptionsDeriveAdventurePointsValueFromImprovementCost = DB.TypeAlias(import.meta.url, {
|
|
372
|
+
name: "SelectOptionsDeriveAdventurePointsValueFromImprovementCost",
|
|
373
|
+
comment: "Derive the cost from the improvement cost of each entry. The AP value is calculated by multiplying the improvement cost with `multiplier` and then adding `offset`.",
|
|
374
|
+
type: () => DB.Object({
|
|
375
|
+
multiplier: DB.Optional({
|
|
376
|
+
comment: "This number is multiplied with the improvement cost of the entry (A = 1 to D = 4).",
|
|
377
|
+
type: DB.Integer({ minimum: 2 }),
|
|
378
|
+
}),
|
|
379
|
+
offset: DB.Optional({
|
|
380
|
+
comment: "This number is added to the multiplied improvement cost of the entry.",
|
|
381
|
+
type: DB.Integer(),
|
|
382
|
+
}),
|
|
383
|
+
}),
|
|
384
|
+
});
|
|
385
|
+
const SelectOptionsFixedAdventurePointsValue = DB.GenTypeAlias(import.meta.url, {
|
|
386
|
+
name: "SelectOptionsFixedAdventurePointsValue",
|
|
387
|
+
parameters: [DB.Param("Identifier")],
|
|
388
|
+
type: Identifier => DB.Object({
|
|
389
|
+
map: DB.Required({
|
|
390
|
+
comment: "A mapping of skill identifiers to their specific AP values.",
|
|
391
|
+
type: DB.Array(DB.GenIncludeIdentifier(SelectOptionsFixedAdventurePointsValueMapping, [
|
|
392
|
+
DB.TypeArgument(Identifier),
|
|
393
|
+
])),
|
|
394
|
+
}),
|
|
395
|
+
default: DB.Required({
|
|
396
|
+
comment: "The default value of an entry. Used as a fallback if no value is found in `list`.",
|
|
397
|
+
type: DB.Integer({ minimum: 1 }),
|
|
398
|
+
}),
|
|
399
|
+
}),
|
|
400
|
+
});
|
|
401
|
+
const SelectOptionsFixedAdventurePointsValueMapping = DB.GenTypeAlias(import.meta.url, {
|
|
402
|
+
name: "SelectOptionsFixedAdventurePointsValueMapping",
|
|
403
|
+
parameters: [DB.Param("Identifier")],
|
|
404
|
+
type: Identifier => DB.Object({
|
|
405
|
+
id: DB.Required({
|
|
406
|
+
comment: "The entry’s identifier.",
|
|
407
|
+
type: DB.TypeArgument(Identifier),
|
|
408
|
+
}),
|
|
409
|
+
ap_value: DB.Required({
|
|
410
|
+
comment: "The AP value for the specified entry.",
|
|
411
|
+
type: DB.Integer({ minimum: 1 }),
|
|
412
|
+
}),
|
|
413
|
+
}),
|
|
414
|
+
});
|
|
415
|
+
const SelectOptionsBindingCostValue = DB.GenEnum(import.meta.url, {
|
|
416
|
+
name: "SelectOptionsBindingCostValue",
|
|
417
|
+
comment: "Generate binding cost for each entry.",
|
|
418
|
+
parameters: [DB.Param("Identifier")],
|
|
419
|
+
values: Identifier => ({
|
|
420
|
+
Fixed: DB.EnumCase({
|
|
421
|
+
type: DB.GenIncludeIdentifier(SelectOptionsFixedBindingCostValue, [
|
|
422
|
+
DB.TypeArgument(Identifier),
|
|
423
|
+
]),
|
|
424
|
+
}),
|
|
425
|
+
}),
|
|
426
|
+
});
|
|
427
|
+
const SelectOptionsFixedBindingCostValue = DB.GenTypeAlias(import.meta.url, {
|
|
428
|
+
name: "SelectOptionsFixedBindingCostValue",
|
|
429
|
+
parameters: [DB.Param("Identifier")],
|
|
430
|
+
type: Identifier => DB.Object({
|
|
431
|
+
map: DB.Required({
|
|
432
|
+
comment: "A mapping of skill identifiers to their specific binding cost values.",
|
|
433
|
+
type: DB.Array(DB.GenIncludeIdentifier(SelectOptionsFixedBindingCostValueMapping, [
|
|
434
|
+
DB.TypeArgument(Identifier),
|
|
435
|
+
])),
|
|
436
|
+
}),
|
|
437
|
+
default: DB.Required({
|
|
438
|
+
comment: "The default value of an entry. Used as a fallback if no value is found in `list`.",
|
|
439
|
+
type: DB.Integer({ minimum: 1 }),
|
|
440
|
+
}),
|
|
441
|
+
}),
|
|
442
|
+
});
|
|
443
|
+
const SelectOptionsFixedBindingCostValueMapping = DB.GenTypeAlias(import.meta.url, {
|
|
444
|
+
name: "SelectOptionsFixedBindingCostValueMapping",
|
|
445
|
+
parameters: [DB.Param("Identifier")],
|
|
446
|
+
type: Identifier => DB.Object({
|
|
447
|
+
id: DB.Required({
|
|
448
|
+
comment: "The entry’s identifier.",
|
|
449
|
+
type: DB.TypeArgument(Identifier),
|
|
450
|
+
}),
|
|
451
|
+
bindingCost: DB.Required({
|
|
452
|
+
comment: "The binding cost for the specified entry.",
|
|
453
|
+
type: DB.Integer({ minimum: 1 }),
|
|
454
|
+
}),
|
|
455
|
+
}),
|
|
456
|
+
});
|
|
457
|
+
const TargetCategoriesSelectOptionCategory = DB.TypeAlias(import.meta.url, {
|
|
458
|
+
name: "TargetCategoriesSelectOptionCategory",
|
|
459
|
+
type: () => DB.Object({
|
|
460
|
+
list: DB.Required({
|
|
461
|
+
comment: "A list of target categories.",
|
|
462
|
+
type: DB.Array(DB.IncludeIdentifier(SpecificTargetCategory), { minItems: 1 }),
|
|
463
|
+
}),
|
|
464
|
+
}),
|
|
465
|
+
});
|
|
466
|
+
const SpecificTargetCategory = DB.TypeAlias(import.meta.url, {
|
|
467
|
+
name: "SpecificTargetCategory",
|
|
468
|
+
type: () => DB.Object({
|
|
469
|
+
id: DB.Required({
|
|
470
|
+
comment: "The target category’s identifier.",
|
|
471
|
+
type: TargetCategoryIdentifier(),
|
|
472
|
+
}),
|
|
473
|
+
volume: DB.Optional({
|
|
474
|
+
comment: "The volume for this specific selection.",
|
|
475
|
+
type: DB.Integer({ minimum: 0 }),
|
|
476
|
+
}),
|
|
477
|
+
}),
|
|
478
|
+
});
|