optolith-database-schema 0.17.2 → 0.18.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 +41 -1
- package/lib/main.d.ts +2 -101
- package/lib/main.js +361 -106
- package/lib/test.d.ts +1 -0
- package/lib/test.js +2 -0
- package/lib/types/Advantage.d.ts +921 -63
- package/lib/types/Advantage.js +42 -13
- package/lib/types/AnimalDisease.d.ts +90 -59
- package/lib/types/AnimalDisease.js +28 -13
- package/lib/types/AnimalType.d.ts +6 -28
- package/lib/types/AnimalType.js +14 -13
- package/lib/types/ArcaneBardTradition.d.ts +30 -10
- package/lib/types/ArcaneBardTradition.js +7 -13
- package/lib/types/ArcaneDancerTradition.d.ts +30 -10
- package/lib/types/ArcaneDancerTradition.js +7 -13
- package/lib/types/Aspect.d.ts +7 -33
- package/lib/types/Aspect.js +20 -13
- package/lib/types/Attribute.d.ts +8 -36
- package/lib/types/Attribute.js +23 -13
- package/lib/types/Blessing.d.ts +96 -113
- package/lib/types/Blessing.js +94 -13
- package/lib/types/Cantrip.d.ts +132 -183
- package/lib/types/Cantrip.js +159 -13
- package/lib/types/Ceremony.d.ts +645 -113
- package/lib/types/Ceremony.js +87 -13
- package/lib/types/CombatTechnique.d.ts +127 -0
- package/lib/types/CombatTechnique.js +101 -0
- package/lib/types/Condition.d.ts +52 -40
- package/lib/types/Condition.js +31 -13
- package/lib/types/Continent.d.ts +6 -30
- package/lib/types/Continent.js +15 -13
- package/lib/types/Culture.d.ts +142 -369
- package/lib/types/Culture.js +355 -13
- package/lib/types/DerivedCharacteristic.d.ts +76 -61
- package/lib/types/DerivedCharacteristic.js +45 -13
- package/lib/types/Disadvantage.d.ts +921 -58
- package/lib/types/Disadvantage.js +45 -13
- package/lib/types/Disease.d.ts +81 -43
- package/lib/types/Disease.js +15 -13
- package/lib/types/Element.d.ts +6 -28
- package/lib/types/Element.js +14 -13
- package/lib/types/ExperienceLevel.d.ts +13 -64
- package/lib/types/ExperienceLevel.js +43 -13
- package/lib/types/EyeColor.d.ts +6 -28
- package/lib/types/EyeColor.js +14 -13
- package/lib/types/FamiliarsTrick.d.ts +189 -266
- package/lib/types/FamiliarsTrick.js +193 -13
- package/lib/types/HairColor.d.ts +6 -28
- package/lib/types/HairColor.js +14 -13
- package/lib/types/Lessons.d.ts +180 -0
- package/lib/types/Lessons.js +212 -0
- package/lib/types/LiturgicalChant.d.ts +645 -113
- package/lib/types/LiturgicalChant.js +87 -13
- package/lib/types/Locale.d.ts +11 -36
- package/lib/types/Locale.js +1316 -13
- package/lib/types/MetaCondition.d.ts +52 -43
- package/lib/types/MetaCondition.js +32 -13
- package/lib/types/PactCategory.d.ts +74 -78
- package/lib/types/PactCategory.js +65 -13
- package/lib/types/Patron.d.ts +100 -197
- package/lib/types/Patron.js +195 -13
- package/lib/types/PatronCategory.d.ts +7 -36
- package/lib/types/PatronCategory.js +19 -13
- package/lib/types/PersonalityTrait.d.ts +80 -67
- package/lib/types/PersonalityTrait.js +51 -13
- package/lib/types/Profession.d.ts +1941 -665
- package/lib/types/Profession.js +610 -13
- package/lib/types/Property.d.ts +7 -34
- package/lib/types/Property.js +19 -13
- package/lib/types/Race.d.ts +163 -349
- package/lib/types/Race.js +287 -13
- package/lib/types/Region.d.ts +6 -28
- package/lib/types/Region.js +14 -13
- package/lib/types/Ritual.d.ts +642 -111
- package/lib/types/Ritual.js +88 -13
- package/lib/types/Service.d.ts +55 -43
- package/lib/types/Service.js +38 -13
- package/lib/types/SexPractice.d.ts +50 -47
- package/lib/types/SexPractice.js +32 -13
- package/lib/types/Skill.d.ts +112 -131
- package/lib/types/Skill.js +120 -10
- package/lib/types/SkillGroup.d.ts +8 -37
- package/lib/types/SkillGroup.js +23 -13
- package/lib/types/SkillModificationLevel.d.ts +31 -101
- package/lib/types/SkillModificationLevel.js +95 -10
- package/lib/types/SocialStatus.d.ts +7 -28
- package/lib/types/SocialStatus.js +18 -13
- package/lib/types/Spell.d.ts +642 -111
- package/lib/types/Spell.js +88 -13
- package/lib/types/State.d.ts +51 -36
- package/lib/types/State.js +24 -13
- package/lib/types/Talisman.d.ts +64 -70
- package/lib/types/Talisman.js +64 -13
- package/lib/types/TargetCategory.d.ts +7 -42
- package/lib/types/TargetCategory.js +19 -13
- package/lib/types/_Activatable.d.ts +1599 -1366
- package/lib/types/_Activatable.js +1392 -2
- package/lib/types/_ActivatableSelectOptionCategory.d.ts +657 -386
- package/lib/types/_ActivatableSelectOptionCategory.js +381 -1
- package/lib/types/_ActivatableSkill.d.ts +1150 -34
- package/lib/types/_ActivatableSkill.js +82 -1
- package/lib/types/_ActivatableSkillCastingTime.d.ts +66 -74
- package/lib/types/_ActivatableSkillCastingTime.js +92 -1
- package/lib/types/_ActivatableSkillCheckResultBased.d.ts +25 -33
- package/lib/types/_ActivatableSkillCheckResultBased.js +44 -1
- package/lib/types/_ActivatableSkillCost.d.ts +239 -255
- package/lib/types/_ActivatableSkillCost.js +224 -1
- package/lib/types/_ActivatableSkillDuration.d.ts +202 -135
- package/lib/types/_ActivatableSkillDuration.js +138 -1
- package/lib/types/_ActivatableSkillEffect.d.ts +16 -68
- package/lib/types/_ActivatableSkillEffect.js +65 -1
- package/lib/types/_ActivatableSkillRange.d.ts +61 -115
- package/lib/types/_ActivatableSkillRange.js +106 -1
- package/lib/types/_ActivatableSkillTargetCategory.d.ts +13 -39
- package/lib/types/_ActivatableSkillTargetCategory.js +29 -1
- package/lib/types/_AlternativeNames.d.ts +5 -11
- package/lib/types/_AlternativeNames.js +14 -1
- package/lib/types/_ArcaneTradition.d.ts +30 -28
- package/lib/types/_ArcaneTradition.js +14 -4
- package/lib/types/_Blessed.d.ts +8 -22
- package/lib/types/_Blessed.js +22 -1
- package/lib/types/_CommonnessRatedAdvantageDisadvantage.d.ts +4 -10
- package/lib/types/_CommonnessRatedAdvantageDisadvantage.js +12 -1
- package/lib/types/_Dice.d.ts +6 -19
- package/lib/types/_Dice.js +23 -1
- package/lib/types/_DiseasePoison.d.ts +56 -107
- package/lib/types/_DiseasePoison.js +107 -2
- package/lib/types/_Enhancements.d.ts +165 -59
- package/lib/types/_Enhancements.js +66 -1
- package/lib/types/_I18n.d.ts +14 -42
- package/lib/types/_I18n.js +55 -1
- package/lib/types/_Identifier.d.ts +160 -1274
- package/lib/types/_Identifier.js +304 -1
- package/lib/types/_IdentifierGroup.d.ts +281 -29
- package/lib/types/_IdentifierGroup.js +343 -1
- package/lib/types/_ImprovementCost.d.ts +7 -4
- package/lib/types/_ImprovementCost.js +10 -1
- package/lib/types/_Influence.d.ts +78 -49
- package/lib/types/_Influence.js +42 -4
- package/lib/types/_Prerequisite.d.ts +370 -106
- package/lib/types/_Prerequisite.js +136 -1
- package/lib/types/_ResponsiveText.d.ts +13 -54
- package/lib/types/_ResponsiveText.js +37 -1
- package/lib/types/_Sex.d.ts +5 -7
- package/lib/types/_Sex.js +8 -4
- package/lib/types/_SkillCheck.d.ts +10 -15
- package/lib/types/_SkillCheck.js +34 -1
- package/lib/types/_Spellwork.d.ts +5 -18
- package/lib/types/_Spellwork.js +13 -1
- package/lib/types/equipment/EquipmentPackage.d.ts +82 -51
- package/lib/types/equipment/EquipmentPackage.js +34 -13
- package/lib/types/equipment/item/Ammunition.d.ts +71 -32
- package/lib/types/equipment/item/Ammunition.js +37 -13
- package/lib/types/equipment/item/Animal.d.ts +71 -19
- package/lib/types/equipment/item/Animal.js +15 -13
- package/lib/types/equipment/item/AnimalCare.d.ts +86 -49
- package/lib/types/equipment/item/AnimalCare.js +51 -13
- package/lib/types/equipment/item/Armor.d.ts +120 -186
- package/lib/types/equipment/item/Armor.js +156 -13
- package/lib/types/equipment/item/BandageOrRemedy.d.ts +177 -37
- package/lib/types/equipment/item/BandageOrRemedy.js +31 -13
- package/lib/types/equipment/item/Book.d.ts +84 -61
- package/lib/types/equipment/item/Book.js +57 -13
- package/lib/types/equipment/item/CeremonialItem.d.ts +178 -42
- package/lib/types/equipment/item/CeremonialItem.js +36 -13
- package/lib/types/equipment/item/Clothes.d.ts +177 -7
- package/lib/types/equipment/item/Clothes.js +31 -13
- package/lib/types/equipment/item/ClothingPackage.d.ts +62 -0
- package/lib/types/equipment/item/ClothingPackage.js +21 -0
- package/lib/types/equipment/item/Container.d.ts +177 -7
- package/lib/types/equipment/item/Container.js +31 -13
- package/lib/types/equipment/item/Elixir.d.ts +102 -76
- package/lib/types/equipment/item/Elixir.js +66 -13
- package/lib/types/equipment/item/EquipmentOfBlessedOnes.d.ts +170 -29
- package/lib/types/equipment/item/EquipmentOfBlessedOnes.js +28 -13
- package/lib/types/equipment/item/GemOrPreciousStone.d.ts +72 -44
- package/lib/types/equipment/item/GemOrPreciousStone.js +41 -13
- package/lib/types/equipment/item/IlluminationLightSource.d.ts +186 -61
- package/lib/types/equipment/item/IlluminationLightSource.js +61 -13
- package/lib/types/equipment/item/IlluminationRefillOrSupply.d.ts +177 -0
- package/lib/types/equipment/item/IlluminationRefillOrSupply.js +32 -0
- package/lib/types/equipment/item/Jewelry.d.ts +73 -61
- package/lib/types/equipment/item/Jewelry.js +37 -13
- package/lib/types/equipment/item/Laboratory.d.ts +80 -0
- package/lib/types/equipment/item/Laboratory.js +28 -0
- package/lib/types/equipment/item/Liebesspielzeug.d.ts +177 -7
- package/lib/types/equipment/item/Liebesspielzeug.js +31 -13
- package/lib/types/equipment/item/LuxuryGood.d.ts +177 -37
- package/lib/types/equipment/item/LuxuryGood.js +31 -13
- package/lib/types/equipment/item/MagicalArtifact.d.ts +72 -40
- package/lib/types/equipment/item/MagicalArtifact.js +19 -13
- package/lib/types/equipment/item/MusicalInstrument.d.ts +174 -32
- package/lib/types/equipment/item/MusicalInstrument.js +27 -13
- package/lib/types/equipment/item/OrienteeringAid.d.ts +176 -7
- package/lib/types/equipment/item/OrienteeringAid.js +2 -14
- package/lib/types/equipment/item/Poison.d.ts +489 -354
- package/lib/types/equipment/item/Poison.js +388 -13
- package/lib/types/equipment/item/RopeOrChain.d.ts +176 -7
- package/lib/types/equipment/item/RopeOrChain.js +2 -14
- package/lib/types/equipment/item/Stationery.d.ts +176 -0
- package/lib/types/equipment/item/Stationery.js +2 -0
- package/lib/types/equipment/item/ThievesTool.d.ts +176 -7
- package/lib/types/equipment/item/ThievesTool.js +2 -14
- package/lib/types/equipment/item/ToolOfTheTrade.d.ts +82 -61
- package/lib/types/equipment/item/ToolOfTheTrade.js +27 -13
- package/lib/types/equipment/item/TravelGearOrTool.d.ts +177 -7
- package/lib/types/equipment/item/TravelGearOrTool.js +31 -13
- package/lib/types/equipment/item/Vehicle.d.ts +71 -19
- package/lib/types/equipment/item/Vehicle.js +15 -13
- package/lib/types/equipment/item/Weapon.d.ts +223 -166
- package/lib/types/equipment/item/Weapon.js +153 -13
- package/lib/types/equipment/item/WeaponAccessory.d.ts +177 -7
- package/lib/types/equipment/item/WeaponAccessory.js +31 -13
- package/lib/types/equipment/item/_Herbary.d.ts +42 -16
- package/lib/types/equipment/item/_Herbary.js +36 -1
- package/lib/types/equipment/item/_Item.d.ts +317 -160
- package/lib/types/equipment/item/_Item.js +144 -1
- package/lib/types/equipment/item/_MeleeWeapon.d.ts +37 -105
- package/lib/types/equipment/item/_MeleeWeapon.js +92 -1
- package/lib/types/equipment/item/_RangedWeapon.d.ts +25 -106
- package/lib/types/equipment/item/_RangedWeapon.js +85 -1
- package/lib/types/equipment/item/_Weapon.d.ts +13 -57
- package/lib/types/equipment/item/_Weapon.js +49 -1
- package/lib/types/equipment/item/sub/ArmorType.d.ts +7 -37
- package/lib/types/equipment/item/sub/ArmorType.js +18 -13
- package/lib/types/equipment/item/sub/Reach.d.ts +6 -28
- package/lib/types/equipment/item/sub/Reach.js +14 -13
- package/lib/types/index.d.ts +150 -0
- package/lib/types/index.js +150 -0
- package/lib/types/magicalActions/AnimistPower.d.ts +299 -238
- package/lib/types/magicalActions/AnimistPower.js +182 -13
- package/lib/types/magicalActions/AnimistPower_Tribe.d.ts +6 -28
- package/lib/types/magicalActions/AnimistPower_Tribe.js +14 -13
- package/lib/types/magicalActions/Curse.d.ts +215 -162
- package/lib/types/magicalActions/Curse.js +126 -13
- package/lib/types/magicalActions/DominationRitual.d.ts +200 -145
- package/lib/types/magicalActions/DominationRitual.js +126 -13
- package/lib/types/magicalActions/ElvenMagicalSong.d.ts +121 -135
- package/lib/types/magicalActions/ElvenMagicalSong.js +111 -13
- package/lib/types/magicalActions/GeodeRitual.d.ts +220 -180
- package/lib/types/magicalActions/GeodeRitual.js +135 -13
- package/lib/types/magicalActions/JesterTrick.d.ts +299 -177
- package/lib/types/magicalActions/JesterTrick.js +153 -13
- package/lib/types/magicalActions/MagicalDance.d.ts +125 -119
- package/lib/types/magicalActions/MagicalDance.js +113 -13
- package/lib/types/magicalActions/MagicalMelody.d.ts +116 -124
- package/lib/types/magicalActions/MagicalMelody.js +111 -13
- package/lib/types/magicalActions/MagicalRune.d.ts +300 -294
- package/lib/types/magicalActions/MagicalRune.js +278 -13
- package/lib/types/magicalActions/ZibiljaRitual.d.ts +411 -102
- package/lib/types/magicalActions/ZibiljaRitual.js +81 -13
- package/lib/types/magicalActions/_MusicTradition.d.ts +17 -30
- package/lib/types/magicalActions/_MusicTradition.js +43 -1
- package/lib/types/prerequisites/ConditionalPrerequisites.d.ts +24 -10
- package/lib/types/prerequisites/ConditionalPrerequisites.js +9 -1
- package/lib/types/prerequisites/DisplayOption.d.ts +13 -32
- package/lib/types/prerequisites/DisplayOption.js +27 -1
- package/lib/types/prerequisites/PrerequisiteGroups.d.ts +1342 -215
- package/lib/types/prerequisites/PrerequisiteGroups.js +160 -1
- package/lib/types/prerequisites/single/ActivatablePrerequisite.d.ts +108 -31
- package/lib/types/prerequisites/single/ActivatablePrerequisite.js +32 -1
- package/lib/types/prerequisites/single/AncestorBloodPrerequisite.d.ts +1 -2
- package/lib/types/prerequisites/single/AncestorBloodPrerequisite.js +4 -1
- package/lib/types/prerequisites/single/AnimistPowerPrerequisite.d.ts +18 -26
- package/lib/types/prerequisites/single/AnimistPowerPrerequisite.js +24 -1
- package/lib/types/prerequisites/single/CulturePrerequisite.d.ts +16 -13
- package/lib/types/prerequisites/single/CulturePrerequisite.js +16 -1
- package/lib/types/prerequisites/single/EnhancementPrerequisite.d.ts +4 -39
- package/lib/types/prerequisites/single/EnhancementPrerequisite.js +12 -1
- package/lib/types/prerequisites/single/InfluencePrerequisite.d.ts +17 -16
- package/lib/types/prerequisites/single/InfluencePrerequisite.js +19 -1
- package/lib/types/prerequisites/single/PactPrerequisite.d.ts +18 -23
- package/lib/types/prerequisites/single/PactPrerequisite.js +24 -1
- package/lib/types/prerequisites/single/PrimaryAttributePrerequisite.d.ts +20 -18
- package/lib/types/prerequisites/single/PrimaryAttributePrerequisite.js +25 -1
- package/lib/types/prerequisites/single/PublicationPrerequisite.d.ts +16 -12
- package/lib/types/prerequisites/single/PublicationPrerequisite.js +15 -1
- package/lib/types/prerequisites/single/RacePrerequisite.d.ts +17 -16
- package/lib/types/prerequisites/single/RacePrerequisite.js +19 -1
- package/lib/types/prerequisites/single/RatedMinimumNumberPrerequisite.d.ts +51 -63
- package/lib/types/prerequisites/single/RatedMinimumNumberPrerequisite.js +80 -1
- package/lib/types/prerequisites/single/RatedPrerequisite.d.ts +26 -18
- package/lib/types/prerequisites/single/RatedPrerequisite.js +19 -1
- package/lib/types/prerequisites/single/RatedSumPrerequisite.d.ts +17 -19
- package/lib/types/prerequisites/single/RatedSumPrerequisite.js +19 -1
- package/lib/types/prerequisites/single/RulePrerequisite.d.ts +19 -9
- package/lib/types/prerequisites/single/RulePrerequisite.js +15 -1
- package/lib/types/prerequisites/single/SexPrerequisite.d.ts +19 -10
- package/lib/types/prerequisites/single/SexPrerequisite.js +15 -1
- package/lib/types/prerequisites/single/SexualCharacteristicPrerequisite.d.ts +7 -8
- package/lib/types/prerequisites/single/SexualCharacteristicPrerequisite.js +17 -1
- package/lib/types/prerequisites/single/SocialStatusPrerequisite.d.ts +16 -13
- package/lib/types/prerequisites/single/SocialStatusPrerequisite.js +16 -1
- package/lib/types/prerequisites/single/StatePrerequisite.d.ts +16 -10
- package/lib/types/prerequisites/single/StatePrerequisite.js +15 -1
- package/lib/types/prerequisites/single/TextPrerequisite.d.ts +19 -49
- package/lib/types/prerequisites/single/TextPrerequisite.js +53 -1
- package/lib/types/prerequisites/single/TraditionPrerequisite.d.ts +37 -33
- package/lib/types/prerequisites/single/TraditionPrerequisite.js +42 -1
- package/lib/types/rule/CoreRule.d.ts +142 -310
- package/lib/types/rule/CoreRule.js +172 -13
- package/lib/types/rule/FocusRule.d.ts +54 -53
- package/lib/types/rule/FocusRule.js +37 -13
- package/lib/types/rule/FocusRule_Subject.d.ts +6 -29
- package/lib/types/rule/FocusRule_Subject.js +15 -13
- package/lib/types/rule/OptionalRule.d.ts +52 -41
- package/lib/types/rule/OptionalRule.js +28 -13
- package/lib/types/source/Publication.d.ts +50 -70
- package/lib/types/source/Publication.js +57 -13
- package/lib/types/source/_Erratum.d.ts +9 -23
- package/lib/types/source/_Erratum.js +19 -1
- package/lib/types/source/_PublicationRef.d.ts +161 -148
- package/lib/types/source/_PublicationRef.js +98 -1
- package/lib/types/specialAbility/AdvancedCombatSpecialAbility.d.ts +1034 -52
- package/lib/types/specialAbility/AdvancedCombatSpecialAbility.js +36 -13
- package/lib/types/specialAbility/AdvancedKarmaSpecialAbility.d.ts +917 -34
- package/lib/types/specialAbility/AdvancedKarmaSpecialAbility.js +33 -13
- package/lib/types/specialAbility/AdvancedMagicalSpecialAbility.d.ts +917 -34
- package/lib/types/specialAbility/AdvancedMagicalSpecialAbility.js +33 -13
- package/lib/types/specialAbility/AdvancedSkillSpecialAbility.d.ts +917 -34
- package/lib/types/specialAbility/AdvancedSkillSpecialAbility.js +33 -13
- package/lib/types/specialAbility/AncestorGlyph.d.ts +916 -38
- package/lib/types/specialAbility/AncestorGlyph.js +35 -13
- package/lib/types/specialAbility/BlessedTradition.d.ts +948 -147
- package/lib/types/specialAbility/BlessedTradition.js +131 -13
- package/lib/types/specialAbility/BrawlingSpecialAbility.d.ts +980 -34
- package/lib/types/specialAbility/BrawlingSpecialAbility.js +32 -13
- package/lib/types/specialAbility/CeremonialItemSpecialAbility.d.ts +918 -40
- package/lib/types/specialAbility/CeremonialItemSpecialAbility.js +33 -13
- package/lib/types/specialAbility/CombatSpecialAbility.d.ts +1036 -45
- package/lib/types/specialAbility/CombatSpecialAbility.js +37 -13
- package/lib/types/specialAbility/CombatStyleSpecialAbility.d.ts +1035 -42
- package/lib/types/specialAbility/CombatStyleSpecialAbility.js +37 -13
- package/lib/types/specialAbility/CommandSpecialAbility.d.ts +980 -38
- package/lib/types/specialAbility/CommandSpecialAbility.js +32 -13
- package/lib/types/specialAbility/FamiliarSpecialAbility.d.ts +915 -32
- package/lib/types/specialAbility/FamiliarSpecialAbility.js +30 -13
- package/lib/types/specialAbility/FatePointSexSpecialAbility.d.ts +915 -32
- package/lib/types/specialAbility/FatePointSexSpecialAbility.js +30 -13
- package/lib/types/specialAbility/FatePointSpecialAbility.d.ts +917 -39
- package/lib/types/specialAbility/FatePointSpecialAbility.js +32 -13
- package/lib/types/specialAbility/GeneralSpecialAbility.d.ts +918 -44
- package/lib/types/specialAbility/GeneralSpecialAbility.js +33 -13
- package/lib/types/specialAbility/KarmaSpecialAbility.d.ts +915 -37
- package/lib/types/specialAbility/KarmaSpecialAbility.js +30 -13
- package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.d.ts +966 -36
- package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.js +34 -13
- package/lib/types/specialAbility/LycantropicGift.d.ts +915 -32
- package/lib/types/specialAbility/LycantropicGift.js +30 -13
- package/lib/types/specialAbility/MagicStyleSpecialAbility.d.ts +966 -36
- package/lib/types/specialAbility/MagicStyleSpecialAbility.js +34 -13
- package/lib/types/specialAbility/MagicalSign.d.ts +86 -39
- package/lib/types/specialAbility/MagicalSign.js +31 -13
- package/lib/types/specialAbility/MagicalSpecialAbility.d.ts +918 -43
- package/lib/types/specialAbility/MagicalSpecialAbility.js +33 -13
- package/lib/types/specialAbility/MagicalTradition.d.ts +938 -114
- package/lib/types/specialAbility/MagicalTradition.js +97 -13
- package/lib/types/specialAbility/PactGift.d.ts +992 -97
- package/lib/types/specialAbility/PactGift.js +118 -13
- package/lib/types/specialAbility/ProtectiveWardingCircleSpecialAbility.d.ts +917 -46
- package/lib/types/specialAbility/ProtectiveWardingCircleSpecialAbility.js +41 -13
- package/lib/types/specialAbility/Sermon.d.ts +915 -32
- package/lib/types/specialAbility/Sermon.js +30 -13
- package/lib/types/specialAbility/SexSpecialAbility.d.ts +917 -34
- package/lib/types/specialAbility/SexSpecialAbility.js +32 -13
- package/lib/types/specialAbility/SikaryanDrainSpecialAbility.d.ts +915 -37
- package/lib/types/specialAbility/SikaryanDrainSpecialAbility.js +30 -13
- package/lib/types/specialAbility/SkillStyleSpecialAbility.d.ts +964 -34
- package/lib/types/specialAbility/SkillStyleSpecialAbility.js +32 -13
- package/lib/types/specialAbility/VampiricGift.d.ts +915 -37
- package/lib/types/specialAbility/VampiricGift.js +30 -13
- package/lib/types/specialAbility/Vision.d.ts +915 -32
- package/lib/types/specialAbility/Vision.js +30 -13
- package/lib/types/specialAbility/_Tradition.d.ts +5 -12
- package/lib/types/specialAbility/_Tradition.js +14 -1
- package/lib/types/specialAbility/sub/Language.d.ts +107 -117
- package/lib/types/specialAbility/sub/Language.js +87 -13
- package/lib/types/specialAbility/sub/Script.d.ts +61 -60
- package/lib/types/specialAbility/sub/Script.js +43 -13
- package/lib/types/specialAbility/sub/TradeSecret.d.ts +77 -48
- package/lib/types/specialAbility/sub/TradeSecret.js +36 -13
- package/lib/types/specialAbility/sub/_LanguageScript.d.ts +5 -11
- package/lib/types/specialAbility/sub/_LanguageScript.js +15 -1
- package/lib/types/traditionArtifacts/ArcaneOrbEnchantment.d.ts +1141 -47
- package/lib/types/traditionArtifacts/ArcaneOrbEnchantment.js +36 -13
- package/lib/types/traditionArtifacts/AttireEnchantment.d.ts +1141 -47
- package/lib/types/traditionArtifacts/AttireEnchantment.js +36 -13
- package/lib/types/traditionArtifacts/BowlEnchantment.d.ts +1141 -47
- package/lib/types/traditionArtifacts/BowlEnchantment.js +36 -13
- package/lib/types/traditionArtifacts/CauldronEnchantment.d.ts +1142 -61
- package/lib/types/traditionArtifacts/CauldronEnchantment.js +41 -13
- package/lib/types/traditionArtifacts/ChronicleEnchantment.d.ts +1141 -47
- package/lib/types/traditionArtifacts/ChronicleEnchantment.js +36 -13
- package/lib/types/traditionArtifacts/DaggerRitual.d.ts +1153 -71
- package/lib/types/traditionArtifacts/DaggerRitual.js +71 -13
- package/lib/types/traditionArtifacts/FoolsHatEnchantment.d.ts +1141 -47
- package/lib/types/traditionArtifacts/FoolsHatEnchantment.js +36 -13
- package/lib/types/traditionArtifacts/InstrumentEnchantment.d.ts +1141 -47
- package/lib/types/traditionArtifacts/InstrumentEnchantment.js +36 -13
- package/lib/types/traditionArtifacts/Krallenkettenzauber.d.ts +1141 -47
- package/lib/types/traditionArtifacts/Krallenkettenzauber.js +36 -13
- package/lib/types/traditionArtifacts/OrbEnchantment.d.ts +1141 -47
- package/lib/types/traditionArtifacts/OrbEnchantment.js +36 -13
- package/lib/types/traditionArtifacts/RingEnchantment.d.ts +1141 -47
- package/lib/types/traditionArtifacts/RingEnchantment.js +36 -13
- package/lib/types/traditionArtifacts/SickleRitual.d.ts +1141 -47
- package/lib/types/traditionArtifacts/SickleRitual.js +36 -13
- package/lib/types/traditionArtifacts/SpellSwordEnchantment.d.ts +1141 -52
- package/lib/types/traditionArtifacts/SpellSwordEnchantment.js +36 -13
- package/lib/types/traditionArtifacts/StaffEnchantment.d.ts +1145 -57
- package/lib/types/traditionArtifacts/StaffEnchantment.js +41 -13
- package/lib/types/traditionArtifacts/ToyEnchantment.d.ts +1141 -47
- package/lib/types/traditionArtifacts/ToyEnchantment.js +36 -13
- package/lib/types/traditionArtifacts/Trinkhornzauber.d.ts +1141 -47
- package/lib/types/traditionArtifacts/Trinkhornzauber.js +36 -13
- package/lib/types/traditionArtifacts/WandEnchantment.d.ts +1090 -42
- package/lib/types/traditionArtifacts/WandEnchantment.js +35 -13
- package/lib/types/traditionArtifacts/WeaponEnchantment.d.ts +1141 -47
- package/lib/types/traditionArtifacts/WeaponEnchantment.js +36 -13
- package/lib/types/traditionArtifacts/sub/AnimalShape.d.ts +8 -52
- package/lib/types/traditionArtifacts/sub/AnimalShape.js +23 -13
- package/lib/types/traditionArtifacts/sub/AnimalShapePath.d.ts +6 -28
- package/lib/types/traditionArtifacts/sub/AnimalShapePath.js +14 -13
- package/lib/types/traditionArtifacts/sub/AnimalShapeSize.d.ts +8 -40
- package/lib/types/traditionArtifacts/sub/AnimalShapeSize.js +22 -13
- package/lib/types/traditionArtifacts/sub/Brew.d.ts +6 -28
- package/lib/types/traditionArtifacts/sub/Brew.js +14 -13
- package/package.json +19 -16
- package/schema/Advantage.schema.json +3 -3
- package/schema/AnimalDisease.schema.json +4 -4
- package/schema/Aspect.schema.json +1 -1
- package/schema/Blessing.schema.json +3 -3
- package/schema/Cantrip.schema.json +4 -4
- package/schema/Ceremony.schema.json +9 -61
- package/schema/CombatTechnique_Close.schema.json +2 -2
- package/schema/CombatTechnique_Ranged.schema.json +2 -2
- package/schema/Condition.schema.json +4 -16
- package/schema/Continent.schema.json +1 -1
- package/schema/Culture.schema.json +46 -50
- package/schema/Disadvantage.schema.json +3 -3
- package/schema/Disease.schema.json +2 -2
- package/schema/FamiliarsTrick.schema.json +45 -71
- package/schema/Lessons_Curriculum.schema.json +26 -36
- package/schema/LiturgicalChant.schema.json +9 -61
- package/schema/Locale.schema.json +1 -1
- package/schema/MetaCondition.schema.json +5 -17
- package/schema/Patron.schema.json +60 -71
- package/schema/PatronCategory.schema.json +1 -1
- package/schema/PersonalityTrait.schema.json +2 -2
- package/schema/Profession.schema.json +68 -62
- package/schema/Property.schema.json +1 -1
- package/schema/Race.schema.json +17 -17
- package/schema/Ritual.schema.json +8 -60
- package/schema/SexPractice.schema.json +1 -1
- package/schema/Skill.schema.json +7 -7
- package/schema/SkillModificationLevel.schema.json +3 -3
- package/schema/Spell.schema.json +8 -60
- package/schema/UI.schema.json +272 -0
- package/schema/_Activatable.schema.json +52 -60
- package/schema/_ActivatableSelectOptionCategory.schema.json +31 -35
- package/schema/_ActivatableSkill.schema.json +16 -0
- package/schema/_ActivatableSkillCastingTime.schema.json +5 -5
- package/schema/_ActivatableSkillCost.schema.json +7 -7
- package/schema/_ActivatableSkillEffect.schema.json +20 -51
- package/schema/_ActivatableSkillRange.schema.json +2 -2
- package/schema/_ActivatableSkillTargetCategory.schema.json +8 -8
- package/schema/_Blessed.schema.json +1 -1
- package/schema/_DiseasePoison.schema.json +31 -23
- package/schema/_Enhancements.schema.json +1 -1
- package/schema/_I18n.schema.json +1 -1
- package/schema/_Identifier.schema.json +31 -1
- package/schema/_IdentifierGroup.schema.json +4 -1
- package/schema/_Influence.schema.json +2 -2
- package/schema/_Prerequisite.schema.json +15 -15
- package/schema/_ResponsiveText.schema.json +6 -6
- package/schema/_SkillCheck.schema.json +3 -14
- package/schema/_Spellwork.schema.json +1 -1
- package/schema/equipment/EquipmentPackage.schema.json +1 -1
- package/schema/equipment/item/Armor.schema.json +5 -5
- package/schema/equipment/item/BandageOrRemedy.schema.json +2 -2
- package/schema/equipment/item/Book.schema.json +1 -1
- package/schema/equipment/item/CeremonialItem.schema.json +2 -2
- package/schema/equipment/item/Elixir.schema.json +5 -25
- package/schema/equipment/item/EquipmentOfBlessedOnes.schema.json +1 -1
- package/schema/equipment/item/IlluminationLightSource.schema.json +4 -8
- package/schema/equipment/item/Jewelry.schema.json +1 -1
- package/schema/equipment/item/LuxuryGood.schema.json +2 -2
- package/schema/equipment/item/MusicalInstrument.schema.json +1 -1
- package/schema/equipment/item/Poison.schema.json +25 -17
- package/schema/equipment/item/ToolOfTheTrade.schema.json +1 -1
- package/schema/equipment/item/Weapon.schema.json +11 -11
- package/schema/equipment/item/_Item.schema.json +4 -4
- package/schema/equipment/item/_MeleeWeapon.schema.json +3 -7
- package/schema/equipment/item/_RangedWeapon.schema.json +5 -5
- package/schema/equipment/item/_Weapon.schema.json +2 -2
- package/schema/equipment/item/sub/ArmorType.schema.json +1 -1
- package/schema/magicalActions/AnimistPower.schema.json +10 -36
- package/schema/magicalActions/Curse.schema.json +5 -31
- package/schema/magicalActions/DominationRitual.schema.json +6 -32
- package/schema/magicalActions/ElvenMagicalSong.schema.json +4 -17
- package/schema/magicalActions/GeodeRitual.schema.json +7 -59
- package/schema/magicalActions/JesterTrick.schema.json +7 -59
- package/schema/magicalActions/MagicalDance.schema.json +7 -33
- package/schema/magicalActions/MagicalMelody.schema.json +7 -33
- package/schema/magicalActions/MagicalRune.schema.json +53 -146
- package/schema/magicalActions/ZibiljaRitual.schema.json +7 -59
- package/schema/magicalActions/_MusicTradition.schema.json +1 -1
- package/schema/magicalActions/_SkillReference.schema.json +2 -24
- package/schema/prerequisites/ConditionalPrerequisites.schema.json +1 -1
- package/schema/prerequisites/DisplayOption.schema.json +1 -1
- package/schema/prerequisites/single/ActivatablePrerequisite.schema.json +1 -1
- package/schema/prerequisites/single/EnhancementPrerequisite.schema.json +2 -2
- package/schema/prerequisites/single/PublicationPrerequisite.schema.json +1 -2
- package/schema/prerequisites/single/RacePrerequisite.schema.json +1 -1
- package/schema/prerequisites/single/RatedMinimumNumberPrerequisite.schema.json +2 -2
- package/schema/prerequisites/single/TextPrerequisite.schema.json +4 -4
- package/schema/prerequisites/single/TraditionPrerequisite.schema.json +4 -4
- package/schema/rule/CoreRule.schema.json +5 -5
- package/schema/rule/FocusRule.schema.json +1 -1
- package/schema/rule/OptionalRule.schema.json +1 -1
- package/schema/source/Publication.schema.json +2 -2
- package/schema/source/_PublicationRef.schema.json +9 -9
- package/schema/specialAbility/AdvancedCombatSpecialAbility.schema.json +2 -2
- package/schema/specialAbility/BlessedTradition.schema.json +74 -52
- package/schema/specialAbility/CeremonialItemSpecialAbility.schema.json +2 -2
- package/schema/specialAbility/CombatStyleSpecialAbility.schema.json +155 -504
- package/schema/specialAbility/CommandSpecialAbility.schema.json +23 -20
- package/schema/specialAbility/FatePointSpecialAbility.schema.json +1 -1
- package/schema/specialAbility/GeneralSpecialAbility.schema.json +1 -1
- package/schema/specialAbility/KarmaSpecialAbility.schema.json +1 -1
- package/schema/specialAbility/LiturgicalStyleSpecialAbility.schema.json +155 -504
- package/schema/specialAbility/MagicStyleSpecialAbility.schema.json +155 -504
- package/schema/specialAbility/MagicalSign.schema.json +2 -2
- package/schema/specialAbility/MagicalSpecialAbility.schema.json +1 -1
- package/schema/specialAbility/MagicalTradition.schema.json +8 -8
- package/schema/specialAbility/PactGift.schema.json +4 -4
- package/schema/specialAbility/SikaryanDrainSpecialAbility.schema.json +1 -1
- package/schema/specialAbility/SkillStyleSpecialAbility.schema.json +155 -504
- package/schema/specialAbility/VampiricGift.schema.json +1 -1
- package/schema/specialAbility/_Tradition.schema.json +1 -1
- package/schema/specialAbility/sub/Language.schema.json +4 -4
- package/schema/traditionArtifacts/ArcaneOrbEnchantment.schema.json +1 -1
- package/schema/traditionArtifacts/AttireEnchantment.schema.json +1 -1
- package/schema/traditionArtifacts/BowlEnchantment.schema.json +1 -1
- package/schema/traditionArtifacts/CauldronEnchantment.schema.json +2 -2
- package/schema/traditionArtifacts/ChronicleEnchantment.schema.json +1 -1
- package/schema/traditionArtifacts/DaggerRitual.schema.json +14 -18
- package/schema/traditionArtifacts/FoolsHatEnchantment.schema.json +1 -1
- package/schema/traditionArtifacts/InstrumentEnchantment.schema.json +1 -1
- package/schema/traditionArtifacts/Krallenkettenzauber.schema.json +1 -1
- package/schema/traditionArtifacts/OrbEnchantment.schema.json +1 -1
- package/schema/traditionArtifacts/RingEnchantment.schema.json +1 -1
- package/schema/traditionArtifacts/SickleRitual.schema.json +1 -1
- package/schema/traditionArtifacts/SpellSwordEnchantment.schema.json +2 -2
- package/schema/traditionArtifacts/StaffEnchantment.schema.json +2 -2
- package/schema/traditionArtifacts/ToyEnchantment.schema.json +1 -1
- package/schema/traditionArtifacts/Trinkhornzauber.schema.json +1 -1
- package/schema/traditionArtifacts/WandEnchantment.schema.json +1 -1
- package/schema/traditionArtifacts/WeaponEnchantment.schema.json +1 -1
- package/.prettierrc.yml +0 -3
- package/lib/cache/activatableSelectOptions.d.ts +0 -80
- package/lib/cache/activatableSelectOptions.js +0 -935
- package/lib/cache/ancestorBloodAdvantages.d.ts +0 -5
- package/lib/cache/ancestorBloodAdvantages.js +0 -18
- package/lib/cache/magicalAndBlessedAdvantagesAndDisadvantages.d.ts +0 -20
- package/lib/cache/magicalAndBlessedAdvantagesAndDisadvantages.js +0 -164
- package/lib/cache/newApplicationsAndUses.d.ts +0 -20
- package/lib/cache/newApplicationsAndUses.js +0 -126
- package/lib/cacheConfig.d.ts +0 -4
- package/lib/cacheConfig.js +0 -1
- package/lib/config/build.d.ts +0 -6
- package/lib/config/build.js +0 -8
- package/lib/config/cache.d.ts +0 -16
- package/lib/config/cache.js +0 -10
- package/lib/config/types.d.ts +0 -462
- package/lib/config/types.js +0 -306
- package/lib/errors.d.ts +0 -20
- package/lib/errors.js +0 -33
- package/lib/helpers/array.d.ts +0 -14
- package/lib/helpers/array.js +0 -15
- package/lib/helpers/i18n.d.ts +0 -1
- package/lib/helpers/i18n.js +0 -1
- package/lib/helpers/io.d.ts +0 -29
- package/lib/helpers/io.js +0 -51
- package/lib/helpers/objectPath.d.ts +0 -13
- package/lib/helpers/objectPath.js +0 -3
- package/lib/helpers/pair.d.ts +0 -20
- package/lib/helpers/pair.js +0 -20
- package/lib/helpers/result.d.ts +0 -57
- package/lib/helpers/result.js +0 -45
- package/lib/rendering/UI.d.ts +0 -14
- package/lib/rendering/UI.js +0 -28
- package/lib/typeConfig.d.ts +0 -10
- package/lib/typeConfig.js +0 -1
- package/lib/types/CombatTechnique_Close.d.ts +0 -73
- package/lib/types/CombatTechnique_Close.js +0 -14
- package/lib/types/CombatTechnique_Ranged.d.ts +0 -66
- package/lib/types/CombatTechnique_Ranged.js +0 -14
- package/lib/types/Kirchenpraegung.d.ts +0 -10
- package/lib/types/Kirchenpraegung.js +0 -14
- package/lib/types/Lessons_Curriculum.d.ts +0 -236
- package/lib/types/Lessons_Curriculum.js +0 -14
- package/lib/types/Lessons_Guideline.d.ts +0 -34
- package/lib/types/Lessons_Guideline.js +0 -14
- package/lib/types/UI.d.ts +0 -1216
- package/lib/types/UI.js +0 -14
- package/lib/types/_LocaleMap.d.ts +0 -10
- package/lib/types/_LocaleMap.js +0 -1
- package/lib/types/_NonEmptyString.d.ts +0 -9
- package/lib/types/_NonEmptyString.js +0 -1
- package/lib/types/_SimpleReferences.d.ts +0 -134
- package/lib/types/_SimpleReferences.js +0 -1
- package/lib/types/equipment/item/IlluminationRefillsOrSupplies.d.ts +0 -7
- package/lib/types/equipment/item/IlluminationRefillsOrSupplies.js +0 -14
- package/lib/types/equipment/item/Stationary.d.ts +0 -7
- package/lib/types/equipment/item/Stationary.js +0 -14
- package/lib/types/magicalActions/_SkillReference.d.ts +0 -11
- package/lib/types/magicalActions/_SkillReference.js +0 -1
- package/lib/validation/builders/integrity.d.ts +0 -56
- package/lib/validation/builders/integrity.js +0 -44
- package/lib/validation/builders/naming.d.ts +0 -15
- package/lib/validation/builders/naming.js +0 -17
- package/lib/validation/builders/schema.d.ts +0 -31
- package/lib/validation/builders/schema.js +0 -32
- package/lib/validation/filename.d.ts +0 -9
- package/lib/validation/filename.js +0 -10
- package/lib/validation/raw.d.ts +0 -8
- package/lib/validation/raw.js +0 -54
- package/lib/validation/schema.d.ts +0 -6
- package/lib/validation/schema.js +0 -32
|
@@ -1 +1,138 @@
|
|
|
1
|
-
|
|
1
|
+
import { Boolean, Enum, EnumCase, IncludeIdentifier, Integer, Object, Optional, Required, TypeAlias, } from "tsondb/schema/def";
|
|
2
|
+
import { CheckResultBasedModifier, CheckResultValue } from "./_ActivatableSkillCheckResultBased.js";
|
|
3
|
+
import { ResponsiveText, ResponsiveTextReplace } from "./_ResponsiveText.js";
|
|
4
|
+
import { NestedLocaleMap } from "./Locale.js";
|
|
5
|
+
export const DurationForOneTime = Enum(import.meta.url, {
|
|
6
|
+
name: "DurationForOneTime",
|
|
7
|
+
values: () => ({
|
|
8
|
+
Immediate: EnumCase({ type: IncludeIdentifier(Immediate) }),
|
|
9
|
+
Permanent: EnumCase({ type: IncludeIdentifier(PermanentDuration) }),
|
|
10
|
+
Fixed: EnumCase({ type: IncludeIdentifier(FixedDuration) }),
|
|
11
|
+
CheckResultBased: EnumCase({ type: IncludeIdentifier(CheckResultBasedDuration) }),
|
|
12
|
+
Indefinite: EnumCase({ type: IncludeIdentifier(IndefiniteDuration) }),
|
|
13
|
+
}),
|
|
14
|
+
});
|
|
15
|
+
const Immediate = TypeAlias(import.meta.url, {
|
|
16
|
+
name: "Immediate",
|
|
17
|
+
type: () => Object({
|
|
18
|
+
maximum: Optional({
|
|
19
|
+
comment: "Specified if the duration has a maximum time span.",
|
|
20
|
+
type: IncludeIdentifier(DurationUnitValue),
|
|
21
|
+
}),
|
|
22
|
+
translations: NestedLocaleMap(Optional, "ImmediateTranslation", Object({
|
|
23
|
+
replacement: Optional({
|
|
24
|
+
comment: "A replacement string.",
|
|
25
|
+
type: IncludeIdentifier(ResponsiveTextReplace),
|
|
26
|
+
}),
|
|
27
|
+
})),
|
|
28
|
+
}),
|
|
29
|
+
});
|
|
30
|
+
const PermanentDuration = TypeAlias(import.meta.url, {
|
|
31
|
+
name: "PermanentDuration",
|
|
32
|
+
type: () => Object({
|
|
33
|
+
translations: NestedLocaleMap(Optional, "PermanentDurationTranslation", Object({
|
|
34
|
+
replacement: Optional({
|
|
35
|
+
comment: "A replacement string.",
|
|
36
|
+
type: IncludeIdentifier(ResponsiveTextReplace),
|
|
37
|
+
}),
|
|
38
|
+
})),
|
|
39
|
+
}),
|
|
40
|
+
});
|
|
41
|
+
export const FixedDuration = TypeAlias(import.meta.url, {
|
|
42
|
+
name: "FixedDuration",
|
|
43
|
+
type: () => Object({
|
|
44
|
+
is_maximum: Optional({
|
|
45
|
+
comment: "If the duration is the maximum duration, so it may end earlier.",
|
|
46
|
+
type: Boolean(),
|
|
47
|
+
}),
|
|
48
|
+
value: Required({
|
|
49
|
+
comment: "The (unitless) duration.",
|
|
50
|
+
type: Integer({ minimum: 1 }),
|
|
51
|
+
}),
|
|
52
|
+
unit: Required({
|
|
53
|
+
comment: "The duration unit.",
|
|
54
|
+
type: IncludeIdentifier(DurationUnit),
|
|
55
|
+
}),
|
|
56
|
+
translations: NestedLocaleMap(Optional, "FixedDurationTranslation", Object({
|
|
57
|
+
replacement: Optional({
|
|
58
|
+
comment: "A replacement string.",
|
|
59
|
+
type: IncludeIdentifier(ResponsiveTextReplace),
|
|
60
|
+
}),
|
|
61
|
+
}, { minProperties: 1 })),
|
|
62
|
+
}),
|
|
63
|
+
});
|
|
64
|
+
export const CheckResultBasedDuration = TypeAlias(import.meta.url, {
|
|
65
|
+
name: "CheckResultBasedDuration",
|
|
66
|
+
type: () => Object({
|
|
67
|
+
is_maximum: Optional({
|
|
68
|
+
comment: "If the duration is the maximum duration, so it may end earlier.",
|
|
69
|
+
type: Boolean(),
|
|
70
|
+
}),
|
|
71
|
+
base: Required({
|
|
72
|
+
comment: "The base value that is derived from the check result.",
|
|
73
|
+
type: IncludeIdentifier(CheckResultValue),
|
|
74
|
+
}),
|
|
75
|
+
modifier: Optional({
|
|
76
|
+
comment: "If defined, it modifies the base value.",
|
|
77
|
+
type: IncludeIdentifier(CheckResultBasedModifier),
|
|
78
|
+
}),
|
|
79
|
+
unit: Required({
|
|
80
|
+
comment: "The duration unit.",
|
|
81
|
+
type: IncludeIdentifier(DurationUnit),
|
|
82
|
+
}),
|
|
83
|
+
translations: NestedLocaleMap(Optional, "CheckResultBasedDurationTranslation", Object({
|
|
84
|
+
replacement: Optional({
|
|
85
|
+
comment: "A replacement string.",
|
|
86
|
+
type: IncludeIdentifier(ResponsiveTextReplace),
|
|
87
|
+
}),
|
|
88
|
+
})),
|
|
89
|
+
}),
|
|
90
|
+
});
|
|
91
|
+
export const IndefiniteDuration = TypeAlias(import.meta.url, {
|
|
92
|
+
name: "IndefiniteDuration",
|
|
93
|
+
type: () => Object({
|
|
94
|
+
translations: NestedLocaleMap(Required, "IndefiniteDurationTranslation", Object({
|
|
95
|
+
description: Required({
|
|
96
|
+
comment: "A description of the duration.",
|
|
97
|
+
type: IncludeIdentifier(ResponsiveText),
|
|
98
|
+
}),
|
|
99
|
+
})),
|
|
100
|
+
}),
|
|
101
|
+
});
|
|
102
|
+
export const DurationForSustained = TypeAlias(import.meta.url, {
|
|
103
|
+
name: "DurationForSustained",
|
|
104
|
+
type: () => Object({
|
|
105
|
+
maximum: Required({
|
|
106
|
+
comment: "The sustained skill can be active a maximum amount of time.",
|
|
107
|
+
type: IncludeIdentifier(DurationUnitValue),
|
|
108
|
+
}),
|
|
109
|
+
}),
|
|
110
|
+
});
|
|
111
|
+
export const DurationUnit = Enum(import.meta.url, {
|
|
112
|
+
name: "DurationUnit",
|
|
113
|
+
values: () => ({
|
|
114
|
+
Seconds: EnumCase({ type: null }),
|
|
115
|
+
Minutes: EnumCase({ type: null }),
|
|
116
|
+
Hours: EnumCase({ type: null }),
|
|
117
|
+
Days: EnumCase({ type: null }),
|
|
118
|
+
Weeks: EnumCase({ type: null }),
|
|
119
|
+
Months: EnumCase({ type: null }),
|
|
120
|
+
Years: EnumCase({ type: null }),
|
|
121
|
+
Centuries: EnumCase({ type: null }),
|
|
122
|
+
Actions: EnumCase({ type: null }),
|
|
123
|
+
CombatRounds: EnumCase({ type: null }),
|
|
124
|
+
}),
|
|
125
|
+
});
|
|
126
|
+
export const DurationUnitValue = TypeAlias(import.meta.url, {
|
|
127
|
+
name: "DurationUnitValue",
|
|
128
|
+
type: () => Object({
|
|
129
|
+
value: Required({
|
|
130
|
+
comment: "The (unitless) duration value.",
|
|
131
|
+
type: Integer({ minimum: 1 }),
|
|
132
|
+
}),
|
|
133
|
+
unit: Required({
|
|
134
|
+
comment: "The unit of the `value`.",
|
|
135
|
+
type: IncludeIdentifier(DurationUnit),
|
|
136
|
+
}),
|
|
137
|
+
}),
|
|
138
|
+
});
|
|
@@ -1,68 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
export type PlainEffect = {
|
|
18
|
-
/**
|
|
19
|
-
* The effect description.
|
|
20
|
-
*/
|
|
21
|
-
text: NonEmptyMarkdown;
|
|
22
|
-
};
|
|
23
|
-
export type EffectForEachQualityLevel = {
|
|
24
|
-
/**
|
|
25
|
-
* The effect description before the list of effects for each quality
|
|
26
|
-
* level.
|
|
27
|
-
*/
|
|
28
|
-
text_before: NonEmptyMarkdown;
|
|
29
|
-
/**
|
|
30
|
-
* The list of effects for each quality level. The first element
|
|
31
|
-
* represents QL 1, the second element QL 2, and so on.
|
|
32
|
-
*/
|
|
33
|
-
quality_levels: [
|
|
34
|
-
NonEmptyMarkdown,
|
|
35
|
-
NonEmptyMarkdown,
|
|
36
|
-
NonEmptyMarkdown,
|
|
37
|
-
NonEmptyMarkdown,
|
|
38
|
-
NonEmptyMarkdown,
|
|
39
|
-
NonEmptyMarkdown
|
|
40
|
-
];
|
|
41
|
-
/**
|
|
42
|
-
* The effect description after the list of effects for each quality
|
|
43
|
-
* level.
|
|
44
|
-
*/
|
|
45
|
-
text_after?: NonEmptyMarkdown;
|
|
46
|
-
};
|
|
47
|
-
export type EffectForEachTwoQualityLevels = {
|
|
48
|
-
/**
|
|
49
|
-
* The effect description before the list of effects for each quality
|
|
50
|
-
* level.
|
|
51
|
-
*/
|
|
52
|
-
text_before: NonEmptyMarkdown;
|
|
53
|
-
/**
|
|
54
|
-
* The list of effects for each two quality levels. The first element
|
|
55
|
-
* represents QL 1–2, the second element QL 3–4 and the third element QL
|
|
56
|
-
* 5–6.
|
|
57
|
-
*/
|
|
58
|
-
quality_levels: [
|
|
59
|
-
NonEmptyMarkdown,
|
|
60
|
-
NonEmptyMarkdown,
|
|
61
|
-
NonEmptyMarkdown
|
|
62
|
-
];
|
|
63
|
-
/**
|
|
64
|
-
* The effect description after the list of effects for each quality
|
|
65
|
-
* level.
|
|
66
|
-
*/
|
|
67
|
-
text_after?: NonEmptyMarkdown;
|
|
68
|
-
};
|
|
1
|
+
import { Array, Enum, EnumCase, IncludeIdentifier, Object, String, TypeAlias } from "tsondb/schema/def";
|
|
2
|
+
export declare const ActivatableSkillEffect: Enum<"ActivatableSkillEffect", {
|
|
3
|
+
Plain: EnumCase<IncludeIdentifier<[], TypeAlias<"ActivatableSkillPlainEffect", Object<{
|
|
4
|
+
text: import("tsondb/schema/def").MemberDecl<String, true>;
|
|
5
|
+
}>, []>>>;
|
|
6
|
+
ForEachQualityLevel: EnumCase<IncludeIdentifier<[], TypeAlias<"ActivatableSkillEffectForEachQualityLevel", Object<{
|
|
7
|
+
text_before: import("tsondb/schema/def").MemberDecl<String, true>;
|
|
8
|
+
quality_levels: import("tsondb/schema/def").MemberDecl<Array<String>, true>;
|
|
9
|
+
text_after: import("tsondb/schema/def").MemberDecl<String, false>;
|
|
10
|
+
}>, []>>>;
|
|
11
|
+
ForEachTwoQualityLevels: EnumCase<IncludeIdentifier<[], TypeAlias<"ActivatableSkillEffectForEachTwoQualityLevels", Object<{
|
|
12
|
+
text_before: import("tsondb/schema/def").MemberDecl<String, true>;
|
|
13
|
+
quality_levels: import("tsondb/schema/def").MemberDecl<Array<String>, true>;
|
|
14
|
+
text_after: import("tsondb/schema/def").MemberDecl<String, false>;
|
|
15
|
+
}>, []>>>;
|
|
16
|
+
}, []>;
|
|
@@ -1 +1,65 @@
|
|
|
1
|
-
|
|
1
|
+
import { Array, Enum, EnumCase, IncludeIdentifier, Object, Optional, Required, String, TypeAlias, } from "tsondb/schema/def";
|
|
2
|
+
export const ActivatableSkillEffect = Enum(import.meta.url, {
|
|
3
|
+
name: "ActivatableSkillEffect",
|
|
4
|
+
comment: "The effect description may be either a plain text or a text that is divided by a list of effects for each quality level. It may also be a list for each two quality levels.",
|
|
5
|
+
values: () => ({
|
|
6
|
+
Plain: EnumCase({
|
|
7
|
+
type: IncludeIdentifier(ActivatableSkillPlainEffect),
|
|
8
|
+
}),
|
|
9
|
+
ForEachQualityLevel: EnumCase({
|
|
10
|
+
type: IncludeIdentifier(ActivatableSkillEffectForEachQualityLevel),
|
|
11
|
+
}),
|
|
12
|
+
ForEachTwoQualityLevels: EnumCase({
|
|
13
|
+
type: IncludeIdentifier(ActivatableSkillEffectForEachTwoQualityLevels),
|
|
14
|
+
}),
|
|
15
|
+
}),
|
|
16
|
+
});
|
|
17
|
+
const ActivatableSkillPlainEffect = TypeAlias(import.meta.url, {
|
|
18
|
+
name: "ActivatableSkillPlainEffect",
|
|
19
|
+
type: () => Object({
|
|
20
|
+
text: Required({
|
|
21
|
+
comment: "The effect description.",
|
|
22
|
+
type: String({ minLength: 1, isMarkdown: true }),
|
|
23
|
+
}),
|
|
24
|
+
}),
|
|
25
|
+
});
|
|
26
|
+
const ActivatableSkillEffectForEachQualityLevel = TypeAlias(import.meta.url, {
|
|
27
|
+
name: "ActivatableSkillEffectForEachQualityLevel",
|
|
28
|
+
type: () => Object({
|
|
29
|
+
text_before: Required({
|
|
30
|
+
comment: "The effect description before the list of effects for each quality level.",
|
|
31
|
+
type: String({ minLength: 1, isMarkdown: true }),
|
|
32
|
+
}),
|
|
33
|
+
quality_levels: Required({
|
|
34
|
+
comment: "The list of effects for each quality level. The first element represents QL 1, the second element QL 2, and so on.",
|
|
35
|
+
type: Array(String({ minLength: 1, isMarkdown: true }), {
|
|
36
|
+
minItems: 6,
|
|
37
|
+
maxItems: 6,
|
|
38
|
+
}),
|
|
39
|
+
}),
|
|
40
|
+
text_after: Optional({
|
|
41
|
+
comment: "The effect description after the list of effects for each quality level.",
|
|
42
|
+
type: String({ minLength: 1, isMarkdown: true }),
|
|
43
|
+
}),
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
const ActivatableSkillEffectForEachTwoQualityLevels = TypeAlias(import.meta.url, {
|
|
47
|
+
name: "ActivatableSkillEffectForEachTwoQualityLevels",
|
|
48
|
+
type: () => Object({
|
|
49
|
+
text_before: Required({
|
|
50
|
+
comment: "The effect description before the list of effects for each quality level.",
|
|
51
|
+
type: String({ minLength: 1, isMarkdown: true }),
|
|
52
|
+
}),
|
|
53
|
+
quality_levels: Required({
|
|
54
|
+
comment: "The list of effects for each two quality levels. The first element represents QL 1–2, the second element QL 3–4 and the third element QL 5–6.",
|
|
55
|
+
type: Array(String({ minLength: 1, isMarkdown: true }), {
|
|
56
|
+
minItems: 3,
|
|
57
|
+
maxItems: 3,
|
|
58
|
+
}),
|
|
59
|
+
}),
|
|
60
|
+
text_after: Optional({
|
|
61
|
+
comment: "The effect description after the list of effects for each quality level.",
|
|
62
|
+
type: String({ minLength: 1, isMarkdown: true }),
|
|
63
|
+
}),
|
|
64
|
+
}),
|
|
65
|
+
});
|
|
@@ -1,115 +1,61 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
* @minimum 1
|
|
63
|
-
*/
|
|
64
|
-
value: number;
|
|
65
|
-
/**
|
|
66
|
-
* The unit of the `value`.
|
|
67
|
-
*/
|
|
68
|
-
unit: RangeUnit;
|
|
69
|
-
/**
|
|
70
|
-
* If `true`, the range is a radius.
|
|
71
|
-
*/
|
|
72
|
-
is_radius?: true;
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* Defines the range being based on a check result.
|
|
76
|
-
*/
|
|
77
|
-
export type CheckResultBasedRange = {
|
|
78
|
-
/**
|
|
79
|
-
* If the range is the maximum range.
|
|
80
|
-
*/
|
|
81
|
-
is_maximum?: true;
|
|
82
|
-
/**
|
|
83
|
-
* The base value that is derived from the check result.
|
|
84
|
-
*/
|
|
85
|
-
base: CheckResultValue;
|
|
86
|
-
/**
|
|
87
|
-
* If defined, it modifies the base value.
|
|
88
|
-
*/
|
|
89
|
-
modifier?: CheckResultBasedModifier;
|
|
90
|
-
/**
|
|
91
|
-
* The duration unit.
|
|
92
|
-
*/
|
|
93
|
-
unit: RangeUnit;
|
|
94
|
-
/**
|
|
95
|
-
* If `true`, the range is a radius.
|
|
96
|
-
*/
|
|
97
|
-
is_radius?: true;
|
|
98
|
-
};
|
|
99
|
-
/**
|
|
100
|
-
* @minProperties 1
|
|
101
|
-
*/
|
|
102
|
-
export type RangeTranslation = {
|
|
103
|
-
/**
|
|
104
|
-
* A note, appended to the generated string in parenthesis. If the
|
|
105
|
-
* generated is modified using `replacement`, the note is appended to
|
|
106
|
-
* the modifier string.
|
|
107
|
-
*/
|
|
108
|
-
note?: ResponsiveTextOptional;
|
|
109
|
-
/**
|
|
110
|
-
* A replacement string. If `note` is provided, it is appended to the
|
|
111
|
-
* replaced string.
|
|
112
|
-
*/
|
|
113
|
-
replacement?: ResponsiveTextReplace;
|
|
114
|
-
};
|
|
115
|
-
export type RangeUnit = "Steps" | "Miles";
|
|
1
|
+
import { Boolean, Enum, EnumCase, IncludeIdentifier, Integer, Object, TypeAlias } from "tsondb/schema/def";
|
|
2
|
+
export declare const Range: TypeAlias<"Range", Object<{
|
|
3
|
+
value: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], Enum<"RangeValue", {
|
|
4
|
+
Modifiable: EnumCase<IncludeIdentifier<[], TypeAlias<"ModifiableRange", Object<{
|
|
5
|
+
is_maximum: import("tsondb/schema/def").MemberDecl<Boolean, false>;
|
|
6
|
+
initial_modification_level: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").ReferenceIdentifierType, true>;
|
|
7
|
+
is_radius: import("tsondb/schema/def").MemberDecl<Boolean, false>;
|
|
8
|
+
}>, []>>>;
|
|
9
|
+
Sight: EnumCase<null>;
|
|
10
|
+
Self: EnumCase<null>;
|
|
11
|
+
Global: EnumCase<null>;
|
|
12
|
+
Touch: EnumCase<null>;
|
|
13
|
+
Fixed: EnumCase<IncludeIdentifier<[], TypeAlias<"FixedRange", Object<{
|
|
14
|
+
is_maximum: import("tsondb/schema/def").MemberDecl<Boolean, false>;
|
|
15
|
+
value: import("tsondb/schema/def").MemberDecl<Integer, true>;
|
|
16
|
+
unit: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], Enum<"RangeUnit", {
|
|
17
|
+
Steps: EnumCase<null>;
|
|
18
|
+
Miles: EnumCase<null>;
|
|
19
|
+
}, []>>, true>;
|
|
20
|
+
is_radius: import("tsondb/schema/def").MemberDecl<Boolean, false>;
|
|
21
|
+
}>, []>>>;
|
|
22
|
+
CheckResultBased: EnumCase<IncludeIdentifier<[], TypeAlias<"CheckResultBasedRange", Object<{
|
|
23
|
+
is_maximum: import("tsondb/schema/def").MemberDecl<Boolean, false>;
|
|
24
|
+
base: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], Enum<"CheckResultValue", {
|
|
25
|
+
QualityLevels: EnumCase<null>;
|
|
26
|
+
SkillPoints: EnumCase<null>;
|
|
27
|
+
}, []>>, true>;
|
|
28
|
+
modifier: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], TypeAlias<"CheckResultBasedModifier", Object<{
|
|
29
|
+
arithmetic: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], Enum<"CheckResultArithmetic", {
|
|
30
|
+
Multiply: EnumCase<null>;
|
|
31
|
+
Divide: EnumCase<null>;
|
|
32
|
+
}, []>>, true>;
|
|
33
|
+
value: import("tsondb/schema/def").MemberDecl<Integer, true>;
|
|
34
|
+
}>, []>>, false>;
|
|
35
|
+
unit: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], Enum<"RangeUnit", {
|
|
36
|
+
Steps: EnumCase<null>;
|
|
37
|
+
Miles: EnumCase<null>;
|
|
38
|
+
}, []>>, true>;
|
|
39
|
+
is_radius: import("tsondb/schema/def").MemberDecl<Boolean, false>;
|
|
40
|
+
}>, []>>>;
|
|
41
|
+
}, []>>, true>;
|
|
42
|
+
translations: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").NestedEntityMapType<"RangeTranslation", {
|
|
43
|
+
note: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], TypeAlias<"ResponsiveTextOptional", Object<{
|
|
44
|
+
full: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").StringType, true>;
|
|
45
|
+
compressed: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").StringType, false>;
|
|
46
|
+
}>, []>>, false>;
|
|
47
|
+
replacement: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], TypeAlias<"ResponsiveTextReplace", Object<{
|
|
48
|
+
full: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").StringType, true>;
|
|
49
|
+
compressed: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").StringType, true>;
|
|
50
|
+
}>, []>>, false>;
|
|
51
|
+
}>, false>;
|
|
52
|
+
}>, []>;
|
|
53
|
+
export declare const FixedRange: TypeAlias<"FixedRange", Object<{
|
|
54
|
+
is_maximum: import("tsondb/schema/def").MemberDecl<Boolean, false>;
|
|
55
|
+
value: import("tsondb/schema/def").MemberDecl<Integer, true>;
|
|
56
|
+
unit: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], Enum<"RangeUnit", {
|
|
57
|
+
Steps: EnumCase<null>;
|
|
58
|
+
Miles: EnumCase<null>;
|
|
59
|
+
}, []>>, true>;
|
|
60
|
+
is_radius: import("tsondb/schema/def").MemberDecl<Boolean, false>;
|
|
61
|
+
}>, []>;
|
|
@@ -1 +1,106 @@
|
|
|
1
|
-
|
|
1
|
+
import { Boolean, Enum, EnumCase, IncludeIdentifier, Integer, Object, Optional, Required, TypeAlias, } from "tsondb/schema/def";
|
|
2
|
+
import { CheckResultBasedModifier, CheckResultValue } from "./_ActivatableSkillCheckResultBased.js";
|
|
3
|
+
import { SkillModificationLevelIdentifier } from "./_Identifier.js";
|
|
4
|
+
import { ResponsiveTextOptional, ResponsiveTextReplace } from "./_ResponsiveText.js";
|
|
5
|
+
import { NestedLocaleMap } from "./Locale.js";
|
|
6
|
+
export const Range = TypeAlias(import.meta.url, {
|
|
7
|
+
name: "Range",
|
|
8
|
+
type: () => Object({
|
|
9
|
+
value: Required({
|
|
10
|
+
comment: "The range value.",
|
|
11
|
+
type: IncludeIdentifier(RangeValue),
|
|
12
|
+
}),
|
|
13
|
+
translations: NestedLocaleMap(Optional, "RangeTranslation", Object({
|
|
14
|
+
note: Optional({
|
|
15
|
+
comment: "A note, appended to the generated string in parenthesis. If the generated is modified using `replacement`, the note is appended to the modifier string.",
|
|
16
|
+
type: IncludeIdentifier(ResponsiveTextOptional),
|
|
17
|
+
}),
|
|
18
|
+
replacement: Optional({
|
|
19
|
+
comment: "A replacement string. If `note` is provided, it is appended to the replaced string.",
|
|
20
|
+
type: IncludeIdentifier(ResponsiveTextReplace),
|
|
21
|
+
}),
|
|
22
|
+
}, { minProperties: 1 })),
|
|
23
|
+
}),
|
|
24
|
+
});
|
|
25
|
+
const RangeValue = Enum(import.meta.url, {
|
|
26
|
+
name: "RangeValue",
|
|
27
|
+
values: () => ({
|
|
28
|
+
Modifiable: EnumCase({ type: IncludeIdentifier(ModifiableRange) }),
|
|
29
|
+
Sight: EnumCase({ type: null }),
|
|
30
|
+
Self: EnumCase({ type: null }),
|
|
31
|
+
Global: EnumCase({ comment: "German: *dereumfassend*", type: null }),
|
|
32
|
+
Touch: EnumCase({ type: null }),
|
|
33
|
+
Fixed: EnumCase({ type: IncludeIdentifier(FixedRange) }),
|
|
34
|
+
CheckResultBased: EnumCase({ type: IncludeIdentifier(CheckResultBasedRange) }),
|
|
35
|
+
}),
|
|
36
|
+
});
|
|
37
|
+
const ModifiableRange = TypeAlias(import.meta.url, {
|
|
38
|
+
name: "ModifiableRange",
|
|
39
|
+
type: () => Object({
|
|
40
|
+
is_maximum: Optional({
|
|
41
|
+
comment: "If `true`, the range is a maximum range.",
|
|
42
|
+
type: Boolean(),
|
|
43
|
+
}),
|
|
44
|
+
initial_modification_level: Required({
|
|
45
|
+
comment: "The initial skill modification identifier/level.",
|
|
46
|
+
type: SkillModificationLevelIdentifier(),
|
|
47
|
+
}),
|
|
48
|
+
is_radius: Optional({
|
|
49
|
+
comment: "If `true`, the range is a radius.",
|
|
50
|
+
type: Boolean(),
|
|
51
|
+
}),
|
|
52
|
+
}),
|
|
53
|
+
});
|
|
54
|
+
export const FixedRange = TypeAlias(import.meta.url, {
|
|
55
|
+
name: "FixedRange",
|
|
56
|
+
type: () => Object({
|
|
57
|
+
is_maximum: Optional({
|
|
58
|
+
comment: "If `true`, the range is a maximum range.",
|
|
59
|
+
type: Boolean(),
|
|
60
|
+
}),
|
|
61
|
+
value: Required({
|
|
62
|
+
comment: "The (unitless) range value.",
|
|
63
|
+
type: Integer({ minimum: 1 }),
|
|
64
|
+
}),
|
|
65
|
+
unit: Required({
|
|
66
|
+
comment: "The unit of the `value`.",
|
|
67
|
+
type: IncludeIdentifier(RangeUnit),
|
|
68
|
+
}),
|
|
69
|
+
is_radius: Optional({
|
|
70
|
+
comment: "If `true`, the range is a radius.",
|
|
71
|
+
type: Boolean(),
|
|
72
|
+
}),
|
|
73
|
+
}),
|
|
74
|
+
});
|
|
75
|
+
const CheckResultBasedRange = TypeAlias(import.meta.url, {
|
|
76
|
+
name: "CheckResultBasedRange",
|
|
77
|
+
type: () => Object({
|
|
78
|
+
is_maximum: Optional({
|
|
79
|
+
comment: "If the range is the maximum range.",
|
|
80
|
+
type: Boolean(),
|
|
81
|
+
}),
|
|
82
|
+
base: Required({
|
|
83
|
+
comment: "The base value that is derived from the check result.",
|
|
84
|
+
type: IncludeIdentifier(CheckResultValue),
|
|
85
|
+
}),
|
|
86
|
+
modifier: Optional({
|
|
87
|
+
comment: "If defined, it modifies the base value.",
|
|
88
|
+
type: IncludeIdentifier(CheckResultBasedModifier),
|
|
89
|
+
}),
|
|
90
|
+
unit: Required({
|
|
91
|
+
comment: "The duration unit.",
|
|
92
|
+
type: IncludeIdentifier(RangeUnit),
|
|
93
|
+
}),
|
|
94
|
+
is_radius: Optional({
|
|
95
|
+
comment: "If `true`, the range is a radius.",
|
|
96
|
+
type: Boolean(),
|
|
97
|
+
}),
|
|
98
|
+
}),
|
|
99
|
+
});
|
|
100
|
+
const RangeUnit = Enum(import.meta.url, {
|
|
101
|
+
name: "RangeUnit",
|
|
102
|
+
values: () => ({
|
|
103
|
+
Steps: EnumCase({ type: null }),
|
|
104
|
+
Miles: EnumCase({ type: null }),
|
|
105
|
+
}),
|
|
106
|
+
});
|
|
@@ -1,39 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
* All translations for the entry, identified by IETF language tag (BCP47).
|
|
15
|
-
*/
|
|
16
|
-
translations?: LocaleMap<SpecificTargetCategoryTranslation>;
|
|
17
|
-
};
|
|
18
|
-
export type SpecificTargetCategoryTranslation = {
|
|
19
|
-
/**
|
|
20
|
-
* A note, appended to the generated string in parenthesis.
|
|
21
|
-
*/
|
|
22
|
-
note: NonEmptyString;
|
|
23
|
-
};
|
|
24
|
-
export type TargetCategoryIdentifier = {
|
|
25
|
-
tag: "Self";
|
|
26
|
-
self: {};
|
|
27
|
-
} | {
|
|
28
|
-
tag: "Zone";
|
|
29
|
-
zone: {};
|
|
30
|
-
} | {
|
|
31
|
-
tag: "LiturgicalChantsAndCeremonies";
|
|
32
|
-
liturgical_chants_and_ceremonies: {};
|
|
33
|
-
} | {
|
|
34
|
-
tag: "Cantrips";
|
|
35
|
-
cantrips: {};
|
|
36
|
-
} | {
|
|
37
|
-
tag: "Predefined";
|
|
38
|
-
predefined: TargetCategoryReference;
|
|
39
|
-
};
|
|
1
|
+
import { Array, Enum, EnumCase, IncludeIdentifier, Object, String, TypeAlias } from "tsondb/schema/def";
|
|
2
|
+
export declare const AffectedTargetCategories: TypeAlias<"AffectedTargetCategories", Array<IncludeIdentifier<[], TypeAlias<"SpecificAffectedTargetCategory", Object<{
|
|
3
|
+
id: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], Enum<"SpecificAffectedTargetCategoryIdentifier", {
|
|
4
|
+
Self: EnumCase<null>;
|
|
5
|
+
Zone: EnumCase<null>;
|
|
6
|
+
LiturgicalChantsAndCeremonies: EnumCase<null>;
|
|
7
|
+
Cantrips: EnumCase<null>;
|
|
8
|
+
Predefined: EnumCase<import("tsondb/schema/def").ReferenceIdentifierType>;
|
|
9
|
+
}, []>>, true>;
|
|
10
|
+
translations: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").NestedEntityMapType<"SpecificAffectedTargetCategoryTranslation", {
|
|
11
|
+
note: import("tsondb/schema/def").MemberDecl<String, true>;
|
|
12
|
+
}>, false>;
|
|
13
|
+
}>, []>>>, []>;
|
|
@@ -1 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
import { Array, Enum, EnumCase, IncludeIdentifier, Object, Optional, Required, String, TypeAlias, } from "tsondb/schema/def";
|
|
2
|
+
import { NestedLocaleMap } from "./Locale.js";
|
|
3
|
+
import { TargetCategoryIdentifier } from "./_Identifier.js";
|
|
4
|
+
export const AffectedTargetCategories = TypeAlias(import.meta.url, {
|
|
5
|
+
name: "AffectedTargetCategories",
|
|
6
|
+
comment: `The target category – the kind of creature or object – the skill affects.
|
|
7
|
+
|
|
8
|
+
If no target categories are given, the skill applies to all target categories.`,
|
|
9
|
+
type: () => Array(IncludeIdentifier(SpecificAffectedTargetCategory)),
|
|
10
|
+
});
|
|
11
|
+
const SpecificAffectedTargetCategory = TypeAlias(import.meta.url, {
|
|
12
|
+
name: "SpecificAffectedTargetCategory",
|
|
13
|
+
type: () => Object({
|
|
14
|
+
id: Required({ type: IncludeIdentifier(SpecificAffectedTargetCategoryIdentifier) }),
|
|
15
|
+
translations: NestedLocaleMap(Optional, "SpecificAffectedTargetCategoryTranslation", Object({
|
|
16
|
+
note: Required({ type: String({ minLength: 1 }) }),
|
|
17
|
+
})),
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
20
|
+
const SpecificAffectedTargetCategoryIdentifier = Enum(import.meta.url, {
|
|
21
|
+
name: "SpecificAffectedTargetCategoryIdentifier",
|
|
22
|
+
values: () => ({
|
|
23
|
+
Self: EnumCase({ type: null }),
|
|
24
|
+
Zone: EnumCase({ type: null }),
|
|
25
|
+
LiturgicalChantsAndCeremonies: EnumCase({ type: null }),
|
|
26
|
+
Cantrips: EnumCase({ type: null }),
|
|
27
|
+
Predefined: EnumCase({ type: TargetCategoryIdentifier() }),
|
|
28
|
+
}),
|
|
29
|
+
});
|