optolith-database-schema 0.10.0 → 0.11.0
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 +19 -0
- package/lib/config.d.ts +156 -5
- package/lib/config.js +154 -154
- package/lib/errors.d.ts +20 -0
- package/lib/errors.js +33 -0
- package/lib/helpers/array.d.ts +14 -0
- package/lib/helpers/array.js +15 -0
- package/lib/helpers/i18n.d.ts +1 -0
- package/lib/helpers/i18n.js +1 -0
- package/lib/helpers/io.d.ts +29 -0
- package/lib/helpers/io.js +51 -0
- package/lib/helpers/objectPath.d.ts +13 -0
- package/lib/helpers/objectPath.js +3 -0
- package/lib/helpers/pair.d.ts +20 -0
- package/lib/helpers/pair.js +20 -0
- package/lib/helpers/result.d.ts +57 -0
- package/lib/helpers/result.js +45 -0
- package/lib/helpers/typeSafety.d.ts +6 -0
- package/lib/helpers/typeSafety.js +8 -0
- package/lib/main.d.ts +50 -15
- package/lib/main.js +46 -133
- package/lib/typeConfig.d.ts +10 -0
- package/lib/typeConfig.js +1 -0
- package/lib/types/Advantage.d.ts +4 -3
- package/lib/types/Advantage.js +9 -2
- package/lib/types/AnimalDisease.d.ts +4 -3
- package/lib/types/AnimalDisease.js +9 -2
- package/lib/types/AnimalType.d.ts +4 -3
- package/lib/types/AnimalType.js +9 -2
- package/lib/types/ArcaneBardTradition.d.ts +3 -2
- package/lib/types/ArcaneBardTradition.js +9 -2
- package/lib/types/ArcaneDancerTradition.d.ts +3 -2
- package/lib/types/ArcaneDancerTradition.js +9 -2
- package/lib/types/Aspect.d.ts +4 -3
- package/lib/types/Aspect.js +9 -2
- package/lib/types/Attribute.d.ts +4 -5
- package/lib/types/Attribute.js +9 -4
- package/lib/types/Blessing.d.ts +12 -11
- package/lib/types/Blessing.js +9 -2
- package/lib/types/Cantrip.d.ts +18 -17
- package/lib/types/Cantrip.js +9 -2
- package/lib/types/Ceremony.d.ts +6 -5
- package/lib/types/Ceremony.js +9 -2
- package/lib/types/CombatTechnique_Close.d.ts +7 -6
- package/lib/types/CombatTechnique_Close.js +9 -2
- package/lib/types/CombatTechnique_Ranged.d.ts +7 -6
- package/lib/types/CombatTechnique_Ranged.js +9 -2
- package/lib/types/Condition.d.ts +6 -5
- package/lib/types/Condition.js +9 -2
- package/lib/types/Continent.d.ts +4 -3
- package/lib/types/Continent.js +9 -2
- package/lib/types/Culture.d.ts +25 -24
- package/lib/types/Culture.js +13 -6
- package/lib/types/DerivedCharacteristic.d.ts +6 -5
- package/lib/types/DerivedCharacteristic.js +9 -2
- package/lib/types/Disadvantage.d.ts +4 -3
- package/lib/types/Disadvantage.js +9 -2
- package/lib/types/Disease.d.ts +4 -3
- package/lib/types/Disease.js +9 -2
- package/lib/types/Element.d.ts +4 -3
- package/lib/types/Element.js +9 -2
- package/lib/types/ExperienceLevel.d.ts +4 -3
- package/lib/types/ExperienceLevel.js +9 -2
- package/lib/types/EyeColor.d.ts +4 -3
- package/lib/types/EyeColor.js +9 -2
- package/lib/types/FamiliarsTrick.d.ts +26 -25
- package/lib/types/FamiliarsTrick.js +9 -2
- package/lib/types/HairColor.d.ts +4 -3
- package/lib/types/HairColor.js +9 -2
- package/lib/types/Kirchenpraegung.d.ts +3 -2
- package/lib/types/Kirchenpraegung.js +9 -2
- package/lib/types/Lessons_Curriculum.d.ts +22 -21
- package/lib/types/Lessons_Curriculum.js +9 -2
- package/lib/types/Lessons_Guideline.d.ts +4 -3
- package/lib/types/Lessons_Guideline.js +9 -2
- package/lib/types/LiturgicalChant.d.ts +6 -5
- package/lib/types/LiturgicalChant.js +9 -2
- package/lib/types/Locale.d.ts +4 -7
- package/lib/types/Locale.js +10 -3
- package/lib/types/MetaCondition.d.ts +6 -5
- package/lib/types/MetaCondition.js +9 -2
- package/lib/types/PactCategory.d.ts +10 -9
- package/lib/types/PactCategory.js +9 -2
- package/lib/types/Patron.d.ts +15 -14
- package/lib/types/Patron.js +11 -4
- package/lib/types/PatronCategory.d.ts +4 -3
- package/lib/types/PatronCategory.js +9 -2
- package/lib/types/PersonalityTrait.d.ts +7 -6
- package/lib/types/PersonalityTrait.js +9 -2
- package/lib/types/Profession.d.ts +43 -42
- package/lib/types/Profession.js +10 -3
- package/lib/types/Property.d.ts +4 -3
- package/lib/types/Property.js +9 -2
- package/lib/types/Race.d.ts +18 -17
- package/lib/types/Race.js +10 -3
- package/lib/types/Region.d.ts +4 -3
- package/lib/types/Region.js +9 -2
- package/lib/types/Ritual.d.ts +6 -5
- package/lib/types/Ritual.js +9 -2
- package/lib/types/Service.d.ts +6 -5
- package/lib/types/Service.js +10 -3
- package/lib/types/SexPractice.d.ts +5 -4
- package/lib/types/SexPractice.js +9 -2
- package/lib/types/Skill.d.ts +10 -9
- package/lib/types/Skill.js +11 -4
- package/lib/types/SkillGroup.d.ts +4 -3
- package/lib/types/SkillGroup.js +9 -2
- package/lib/types/SkillModificationLevel.d.ts +8 -7
- package/lib/types/SkillModificationLevel.js +10 -3
- package/lib/types/SocialStatus.d.ts +4 -3
- package/lib/types/SocialStatus.js +9 -2
- package/lib/types/Spell.d.ts +6 -5
- package/lib/types/Spell.js +9 -2
- package/lib/types/State.d.ts +6 -5
- package/lib/types/State.js +9 -2
- package/lib/types/Talisman.d.ts +5 -4
- package/lib/types/Talisman.js +10 -3
- package/lib/types/TargetCategory.d.ts +5 -4
- package/lib/types/TargetCategory.js +9 -2
- package/lib/types/UI.d.ts +3 -2
- package/lib/types/UI.js +9 -2
- package/lib/types/_Activatable.d.ts +109 -109
- package/lib/types/_Activatable.js +5 -5
- package/lib/types/_ActivatableSelectOptionCategory.d.ts +27 -27
- package/lib/types/_ActivatableSelectOptionCategory.js +1 -1
- package/lib/types/_ActivatableSkill.d.ts +8 -8
- package/lib/types/_ActivatableSkillCastingTime.d.ts +8 -8
- package/lib/types/_ActivatableSkillCastingTime.js +1 -1
- package/lib/types/_ActivatableSkillCheckResultBased.d.ts +2 -2
- package/lib/types/_ActivatableSkillCheckResultBased.js +2 -2
- package/lib/types/_ActivatableSkillCost.d.ts +20 -20
- package/lib/types/_ActivatableSkillDuration.d.ts +13 -13
- package/lib/types/_ActivatableSkillDuration.js +1 -1
- package/lib/types/_ActivatableSkillEffect.d.ts +4 -4
- package/lib/types/_ActivatableSkillRange.d.ts +6 -6
- package/lib/types/_ActivatableSkillRange.js +1 -1
- package/lib/types/_ActivatableSkillTargetCategory.d.ts +4 -4
- package/lib/types/_AlternativeNames.d.ts +1 -1
- package/lib/types/_ArcaneTradition.d.ts +2 -2
- package/lib/types/_Blessed.d.ts +2 -2
- package/lib/types/_CommonnessRatedAdvantageDisadvantage.d.ts +1 -1
- package/lib/types/_Dice.d.ts +1 -1
- package/lib/types/_Dice.js +1 -1
- package/lib/types/_DiseasePoison.d.ts +4 -4
- package/lib/types/_DiseasePoison.js +1 -1
- package/lib/types/_Enhancements.d.ts +3 -3
- package/lib/types/_I18n.d.ts +1 -1
- package/lib/types/_Identifier.d.ts +132 -132
- package/lib/types/_IdentifierGroup.d.ts +20 -20
- package/lib/types/_ImprovementCost.js +1 -1
- package/lib/types/_Influence.d.ts +3 -3
- package/lib/types/_LocaleMap.d.ts +1 -1
- package/lib/types/_NonEmptyString.d.ts +2 -2
- package/lib/types/_Prerequisite.d.ts +21 -21
- package/lib/types/_ResponsiveText.d.ts +3 -3
- package/lib/types/_Sex.js +1 -1
- package/lib/types/_SimpleReferences.d.ts +44 -44
- package/lib/types/_SkillCheck.d.ts +1 -1
- package/lib/types/_SkillCheck.js +1 -1
- package/lib/types/_Spellwork.d.ts +2 -2
- package/lib/types/equipment/EquipmentPackage.d.ts +6 -5
- package/lib/types/equipment/EquipmentPackage.js +9 -2
- package/lib/types/equipment/item/Alchemicum.d.ts +3 -2
- package/lib/types/equipment/item/Alchemicum.js +9 -2
- package/lib/types/equipment/item/Ammunition.d.ts +6 -5
- package/lib/types/equipment/item/Ammunition.js +9 -2
- package/lib/types/equipment/item/Animal.d.ts +4 -3
- package/lib/types/equipment/item/Animal.js +9 -2
- package/lib/types/equipment/item/AnimalCare.d.ts +8 -7
- package/lib/types/equipment/item/AnimalCare.js +9 -2
- package/lib/types/equipment/item/Armor.d.ts +15 -14
- package/lib/types/equipment/item/Armor.js +9 -2
- package/lib/types/equipment/item/BandageOrRemedy.d.ts +4 -3
- package/lib/types/equipment/item/BandageOrRemedy.js +9 -2
- package/lib/types/equipment/item/Book.d.ts +6 -5
- package/lib/types/equipment/item/Book.js +9 -2
- package/lib/types/equipment/item/CeremonialItem.d.ts +4 -3
- package/lib/types/equipment/item/CeremonialItem.js +9 -2
- package/lib/types/equipment/item/Clothes.d.ts +3 -2
- package/lib/types/equipment/item/Clothes.js +9 -2
- package/lib/types/equipment/item/Container.d.ts +3 -2
- package/lib/types/equipment/item/Container.js +9 -2
- package/lib/types/equipment/item/Elixir.d.ts +6 -5
- package/lib/types/equipment/item/Elixir.js +9 -2
- package/lib/types/equipment/item/EquipmentOfBlessedOnes.d.ts +4 -3
- package/lib/types/equipment/item/EquipmentOfBlessedOnes.js +9 -2
- package/lib/types/equipment/item/GemOrPreciousStone.d.ts +6 -5
- package/lib/types/equipment/item/GemOrPreciousStone.js +9 -2
- package/lib/types/equipment/item/IlluminationLightSource.d.ts +6 -5
- package/lib/types/equipment/item/IlluminationLightSource.js +10 -3
- package/lib/types/equipment/item/IlluminationRefillsOrSupplies.d.ts +3 -2
- package/lib/types/equipment/item/IlluminationRefillsOrSupplies.js +9 -2
- package/lib/types/equipment/item/Jewelry.d.ts +7 -6
- package/lib/types/equipment/item/Jewelry.js +9 -2
- package/lib/types/equipment/item/Liebesspielzeug.d.ts +3 -2
- package/lib/types/equipment/item/Liebesspielzeug.js +9 -2
- package/lib/types/equipment/item/LuxuryGood.d.ts +4 -3
- package/lib/types/equipment/item/LuxuryGood.js +9 -2
- package/lib/types/equipment/item/MagicalArtifact.d.ts +6 -5
- package/lib/types/equipment/item/MagicalArtifact.js +9 -2
- package/lib/types/equipment/item/MusicalInstrument.d.ts +4 -3
- package/lib/types/equipment/item/MusicalInstrument.js +9 -2
- package/lib/types/equipment/item/OrienteeringAid.d.ts +3 -2
- package/lib/types/equipment/item/OrienteeringAid.js +9 -2
- package/lib/types/equipment/item/Poison.d.ts +30 -29
- package/lib/types/equipment/item/Poison.js +12 -5
- package/lib/types/equipment/item/RopeOrChain.d.ts +3 -2
- package/lib/types/equipment/item/RopeOrChain.js +9 -2
- package/lib/types/equipment/item/Stationary.d.ts +3 -2
- package/lib/types/equipment/item/Stationary.js +9 -2
- package/lib/types/equipment/item/ThievesTool.d.ts +3 -2
- package/lib/types/equipment/item/ThievesTool.js +9 -2
- package/lib/types/equipment/item/ToolOfTheTrade.d.ts +7 -6
- package/lib/types/equipment/item/ToolOfTheTrade.js +9 -2
- package/lib/types/equipment/item/TravelGearOrTool.d.ts +3 -2
- package/lib/types/equipment/item/TravelGearOrTool.js +9 -2
- package/lib/types/equipment/item/Vehicle.d.ts +4 -3
- package/lib/types/equipment/item/Vehicle.js +9 -2
- package/lib/types/equipment/item/Weapon.d.ts +11 -10
- package/lib/types/equipment/item/Weapon.js +9 -2
- package/lib/types/equipment/item/WeaponAccessory.d.ts +3 -2
- package/lib/types/equipment/item/WeaponAccessory.js +9 -2
- package/lib/types/equipment/item/_Herbary.d.ts +1 -1
- package/lib/types/equipment/item/_Herbary.js +2 -2
- package/lib/types/equipment/item/_Item.d.ts +12 -12
- package/lib/types/equipment/item/_MeleeWeapon.d.ts +7 -7
- package/lib/types/equipment/item/_RangedWeapon.d.ts +6 -6
- package/lib/types/equipment/item/_Weapon.d.ts +5 -5
- package/lib/types/equipment/item/sub/ArmorType.d.ts +4 -3
- package/lib/types/equipment/item/sub/ArmorType.js +9 -2
- package/lib/types/equipment/item/sub/Reach.d.ts +4 -3
- package/lib/types/equipment/item/sub/Reach.js +9 -2
- package/lib/types/magicalActions/AnimistPower.d.ts +20 -19
- package/lib/types/magicalActions/AnimistPower.js +9 -2
- package/lib/types/magicalActions/AnimistPower_Tribe.d.ts +4 -3
- package/lib/types/magicalActions/AnimistPower_Tribe.js +9 -2
- package/lib/types/magicalActions/Curse.d.ts +14 -13
- package/lib/types/magicalActions/Curse.js +9 -2
- package/lib/types/magicalActions/DominationRitual.d.ts +13 -12
- package/lib/types/magicalActions/DominationRitual.js +9 -2
- package/lib/types/magicalActions/ElvenMagicalSong.d.ts +11 -10
- package/lib/types/magicalActions/ElvenMagicalSong.js +9 -2
- package/lib/types/magicalActions/GeodeRitual.d.ts +14 -13
- package/lib/types/magicalActions/GeodeRitual.js +9 -2
- package/lib/types/magicalActions/JesterTrick.d.ts +13 -12
- package/lib/types/magicalActions/JesterTrick.js +9 -2
- package/lib/types/magicalActions/MagicalDance.d.ts +10 -9
- package/lib/types/magicalActions/MagicalDance.js +9 -2
- package/lib/types/magicalActions/MagicalMelody.d.ts +10 -9
- package/lib/types/magicalActions/MagicalMelody.js +9 -2
- package/lib/types/magicalActions/MagicalRune.d.ts +26 -25
- package/lib/types/magicalActions/MagicalRune.js +9 -2
- package/lib/types/magicalActions/ZibiljaRitual.d.ts +7 -6
- package/lib/types/magicalActions/ZibiljaRitual.js +9 -2
- package/lib/types/magicalActions/_MusicTradition.d.ts +3 -3
- package/lib/types/magicalActions/_MusicTradition.js +2 -2
- package/lib/types/magicalActions/_SkillReference.d.ts +1 -1
- package/lib/types/magicalActions/_SkillReference.js +1 -1
- package/lib/types/prerequisites/ConditionalPrerequisites.d.ts +1 -1
- package/lib/types/prerequisites/DisplayOption.d.ts +2 -2
- package/lib/types/prerequisites/PrerequisiteGroups.d.ts +15 -15
- package/lib/types/prerequisites/single/ActivatablePrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/AncestorBloodPrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/AnimistPowerPrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/CulturePrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/EnhancementPrerequisite.d.ts +4 -4
- package/lib/types/prerequisites/single/InfluencePrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/PactPrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/PrimaryAttributePrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/PrimaryAttributePrerequisite.js +1 -1
- package/lib/types/prerequisites/single/PublicationPrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/RacePrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/RatedMinimumNumberPrerequisite.d.ts +6 -6
- package/lib/types/prerequisites/single/RatedMinimumNumberPrerequisite.js +1 -1
- package/lib/types/prerequisites/single/RatedPrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/RatedSumPrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/RulePrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/SexPrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/SexualCharacteristicPrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/SexualCharacteristicPrerequisite.js +1 -1
- package/lib/types/prerequisites/single/SocialStatusPrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/StatePrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/TextPrerequisite.d.ts +2 -2
- package/lib/types/prerequisites/single/TextPrerequisite.js +2 -2
- package/lib/types/prerequisites/single/TraditionPrerequisite.d.ts +2 -2
- package/lib/types/prerequisites/single/TraditionPrerequisite.js +2 -2
- package/lib/types/rule/CoreRule.d.ts +15 -14
- package/lib/types/rule/CoreRule.js +10 -3
- package/lib/types/rule/FocusRule.d.ts +6 -5
- package/lib/types/rule/FocusRule.js +9 -2
- package/lib/types/rule/FocusRule_Subject.d.ts +4 -3
- package/lib/types/rule/FocusRule_Subject.js +9 -2
- package/lib/types/rule/OptionalRule.d.ts +6 -5
- package/lib/types/rule/OptionalRule.js +9 -2
- package/lib/types/source/Publication.d.ts +4 -3
- package/lib/types/source/Publication.js +10 -3
- package/lib/types/source/_Erratum.d.ts +2 -2
- package/lib/types/source/_PublicationRef.d.ts +13 -13
- package/lib/types/specialAbility/AdvancedCombatSpecialAbility.d.ts +6 -5
- package/lib/types/specialAbility/AdvancedCombatSpecialAbility.js +9 -2
- package/lib/types/specialAbility/AdvancedKarmaSpecialAbility.d.ts +6 -5
- package/lib/types/specialAbility/AdvancedKarmaSpecialAbility.js +9 -2
- package/lib/types/specialAbility/AdvancedMagicalSpecialAbility.d.ts +6 -5
- package/lib/types/specialAbility/AdvancedMagicalSpecialAbility.js +9 -2
- package/lib/types/specialAbility/AdvancedSkillSpecialAbility.d.ts +6 -5
- package/lib/types/specialAbility/AdvancedSkillSpecialAbility.js +9 -2
- package/lib/types/specialAbility/AncestorGlyph.d.ts +6 -5
- package/lib/types/specialAbility/AncestorGlyph.js +9 -2
- package/lib/types/specialAbility/BlessedTradition.d.ts +12 -11
- package/lib/types/specialAbility/BlessedTradition.js +9 -2
- package/lib/types/specialAbility/BrawlingSpecialAbility.d.ts +6 -5
- package/lib/types/specialAbility/BrawlingSpecialAbility.js +9 -2
- package/lib/types/specialAbility/CeremonialItemSpecialAbility.d.ts +4 -3
- package/lib/types/specialAbility/CeremonialItemSpecialAbility.js +9 -2
- package/lib/types/specialAbility/CombatSpecialAbility.d.ts +4 -3
- package/lib/types/specialAbility/CombatSpecialAbility.js +9 -2
- package/lib/types/specialAbility/CombatStyleSpecialAbility.d.ts +6 -5
- package/lib/types/specialAbility/CombatStyleSpecialAbility.js +9 -2
- package/lib/types/specialAbility/CommandSpecialAbility.d.ts +5 -4
- package/lib/types/specialAbility/CommandSpecialAbility.js +9 -2
- package/lib/types/specialAbility/FamiliarSpecialAbility.d.ts +6 -5
- package/lib/types/specialAbility/FamiliarSpecialAbility.js +9 -2
- package/lib/types/specialAbility/FatePointSexSpecialAbility.d.ts +6 -5
- package/lib/types/specialAbility/FatePointSexSpecialAbility.js +9 -2
- package/lib/types/specialAbility/FatePointSpecialAbility.d.ts +6 -5
- package/lib/types/specialAbility/FatePointSpecialAbility.js +9 -2
- package/lib/types/specialAbility/GeneralSpecialAbility.d.ts +4 -3
- package/lib/types/specialAbility/GeneralSpecialAbility.js +9 -2
- package/lib/types/specialAbility/KarmaSpecialAbility.d.ts +4 -3
- package/lib/types/specialAbility/KarmaSpecialAbility.js +9 -2
- package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.d.ts +6 -5
- package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.js +9 -2
- package/lib/types/specialAbility/LycantropicGift.d.ts +6 -5
- package/lib/types/specialAbility/LycantropicGift.js +9 -2
- package/lib/types/specialAbility/MagicStyleSpecialAbility.d.ts +6 -5
- package/lib/types/specialAbility/MagicStyleSpecialAbility.js +9 -2
- package/lib/types/specialAbility/MagicalSign.d.ts +6 -5
- package/lib/types/specialAbility/MagicalSign.js +9 -2
- package/lib/types/specialAbility/MagicalSpecialAbility.d.ts +4 -3
- package/lib/types/specialAbility/MagicalSpecialAbility.js +9 -2
- package/lib/types/specialAbility/MagicalTradition.d.ts +7 -6
- package/lib/types/specialAbility/MagicalTradition.js +9 -2
- package/lib/types/specialAbility/PactGift.d.ts +13 -12
- package/lib/types/specialAbility/PactGift.js +11 -4
- package/lib/types/specialAbility/ProtectiveWardingCircleSpecialAbility.d.ts +6 -5
- package/lib/types/specialAbility/ProtectiveWardingCircleSpecialAbility.js +9 -2
- package/lib/types/specialAbility/Sermon.d.ts +6 -5
- package/lib/types/specialAbility/Sermon.js +9 -2
- package/lib/types/specialAbility/SexSpecialAbility.d.ts +6 -5
- package/lib/types/specialAbility/SexSpecialAbility.js +9 -2
- package/lib/types/specialAbility/SikaryanDrainSpecialAbility.d.ts +6 -5
- package/lib/types/specialAbility/SikaryanDrainSpecialAbility.js +9 -2
- package/lib/types/specialAbility/SkillStyleSpecialAbility.d.ts +6 -5
- package/lib/types/specialAbility/SkillStyleSpecialAbility.js +9 -2
- package/lib/types/specialAbility/VampiricGift.d.ts +4 -3
- package/lib/types/specialAbility/VampiricGift.js +9 -2
- package/lib/types/specialAbility/Vision.d.ts +6 -5
- package/lib/types/specialAbility/Vision.js +9 -2
- package/lib/types/specialAbility/_Tradition.d.ts +1 -1
- package/lib/types/specialAbility/sub/Language.d.ts +12 -11
- package/lib/types/specialAbility/sub/Language.js +9 -2
- package/lib/types/specialAbility/sub/Script.d.ts +6 -5
- package/lib/types/specialAbility/sub/Script.js +9 -2
- package/lib/types/specialAbility/sub/TradeSecret.d.ts +6 -5
- package/lib/types/specialAbility/sub/TradeSecret.js +9 -2
- package/lib/types/specialAbility/sub/_LanguageScript.d.ts +1 -1
- package/lib/types/traditionArtifacts/ArcaneOrbEnchantment.d.ts +4 -3
- package/lib/types/traditionArtifacts/ArcaneOrbEnchantment.js +9 -2
- package/lib/types/traditionArtifacts/AttireEnchantment.d.ts +4 -3
- package/lib/types/traditionArtifacts/AttireEnchantment.js +9 -2
- package/lib/types/traditionArtifacts/BowlEnchantment.d.ts +4 -3
- package/lib/types/traditionArtifacts/BowlEnchantment.js +9 -2
- package/lib/types/traditionArtifacts/CauldronEnchantment.d.ts +5 -4
- package/lib/types/traditionArtifacts/CauldronEnchantment.js +9 -2
- package/lib/types/traditionArtifacts/ChronicleEnchantment.d.ts +4 -3
- package/lib/types/traditionArtifacts/ChronicleEnchantment.js +9 -2
- package/lib/types/traditionArtifacts/DaggerRitual.d.ts +8 -7
- package/lib/types/traditionArtifacts/DaggerRitual.js +9 -2
- package/lib/types/traditionArtifacts/FoolsHatEnchantment.d.ts +4 -3
- package/lib/types/traditionArtifacts/FoolsHatEnchantment.js +9 -2
- package/lib/types/traditionArtifacts/InstrumentEnchantment.d.ts +4 -3
- package/lib/types/traditionArtifacts/InstrumentEnchantment.js +9 -2
- package/lib/types/traditionArtifacts/Krallenkettenzauber.d.ts +4 -3
- package/lib/types/traditionArtifacts/Krallenkettenzauber.js +9 -2
- package/lib/types/traditionArtifacts/OrbEnchantment.d.ts +4 -3
- package/lib/types/traditionArtifacts/OrbEnchantment.js +9 -2
- package/lib/types/traditionArtifacts/RingEnchantment.d.ts +4 -3
- package/lib/types/traditionArtifacts/RingEnchantment.js +9 -2
- package/lib/types/traditionArtifacts/SickleRitual.d.ts +4 -3
- package/lib/types/traditionArtifacts/SickleRitual.js +9 -2
- package/lib/types/traditionArtifacts/SpellSwordEnchantment.d.ts +4 -3
- package/lib/types/traditionArtifacts/SpellSwordEnchantment.js +9 -2
- package/lib/types/traditionArtifacts/StaffEnchantment.d.ts +4 -3
- package/lib/types/traditionArtifacts/StaffEnchantment.js +9 -2
- package/lib/types/traditionArtifacts/ToyEnchantment.d.ts +4 -3
- package/lib/types/traditionArtifacts/ToyEnchantment.js +9 -2
- package/lib/types/traditionArtifacts/Trinkhornzauber.d.ts +4 -3
- package/lib/types/traditionArtifacts/Trinkhornzauber.js +9 -2
- package/lib/types/traditionArtifacts/WandEnchantment.d.ts +4 -3
- package/lib/types/traditionArtifacts/WandEnchantment.js +9 -2
- package/lib/types/traditionArtifacts/WeaponEnchantment.d.ts +4 -3
- package/lib/types/traditionArtifacts/WeaponEnchantment.js +9 -2
- package/lib/types/traditionArtifacts/sub/AnimalShape.d.ts +6 -5
- package/lib/types/traditionArtifacts/sub/AnimalShape.js +9 -2
- package/lib/types/traditionArtifacts/sub/AnimalShapePath.d.ts +4 -3
- package/lib/types/traditionArtifacts/sub/AnimalShapePath.js +9 -2
- package/lib/types/traditionArtifacts/sub/AnimalShapeSize.d.ts +4 -3
- package/lib/types/traditionArtifacts/sub/AnimalShapeSize.js +9 -2
- package/lib/types/traditionArtifacts/sub/Brew.d.ts +4 -3
- package/lib/types/traditionArtifacts/sub/Brew.js +9 -2
- package/lib/validation/builders/integrity.d.ts +57 -0
- package/lib/validation/builders/integrity.js +44 -0
- package/lib/validation/builders/naming.d.ts +13 -0
- package/lib/validation/builders/naming.js +14 -0
- package/lib/validation/builders/schema.d.ts +31 -0
- package/lib/validation/builders/schema.js +32 -0
- package/lib/validation/filename.d.ts +9 -0
- package/lib/validation/filename.js +10 -0
- package/lib/validation/raw.d.ts +9 -0
- package/lib/validation/raw.js +55 -0
- package/lib/validation/schema.d.ts +6 -22
- package/lib/validation/schema.js +31 -32
- package/package.json +11 -6
- package/schema/Locale.schema.json +1 -8
- package/config/directories.d.ts +0 -4
- package/config/directories.js +0 -14
- package/lib/validation/integrity.d.ts +0 -16
- package/lib/validation/integrity.js +0 -3
|
@@ -10,7 +10,7 @@ export var CombatSpecialAbilityUsageType;
|
|
|
10
10
|
CombatSpecialAbilityUsageType["Passive"] = "Passive";
|
|
11
11
|
CombatSpecialAbilityUsageType["BasicManeuver"] = "BasicManeuver";
|
|
12
12
|
CombatSpecialAbilityUsageType["SpecialManeuver"] = "SpecialManeuver";
|
|
13
|
-
})(CombatSpecialAbilityUsageType || (CombatSpecialAbilityUsageType = {}));
|
|
13
|
+
})(CombatSpecialAbilityUsageType = CombatSpecialAbilityUsageType || (CombatSpecialAbilityUsageType = {}));
|
|
14
14
|
/**
|
|
15
15
|
* The definition of if the combat special ability can be used when armed or
|
|
16
16
|
* when unarmed.
|
|
@@ -19,7 +19,7 @@ export var CombatSpecialAbilityType;
|
|
|
19
19
|
(function (CombatSpecialAbilityType) {
|
|
20
20
|
CombatSpecialAbilityType["Armed"] = "Armed";
|
|
21
21
|
CombatSpecialAbilityType["Unarmed"] = "Unarmed";
|
|
22
|
-
})(CombatSpecialAbilityType || (CombatSpecialAbilityType = {}));
|
|
22
|
+
})(CombatSpecialAbilityType = CombatSpecialAbilityType || (CombatSpecialAbilityType = {}));
|
|
23
23
|
/**
|
|
24
24
|
* Set if a predefined different word should be used instead of the word
|
|
25
25
|
* `attack` for display purposes.
|
|
@@ -27,7 +27,7 @@ export var CombatSpecialAbilityType;
|
|
|
27
27
|
export var PenaltyByAttackReplacement;
|
|
28
28
|
(function (PenaltyByAttackReplacement) {
|
|
29
29
|
PenaltyByAttackReplacement["Throw"] = "Throw";
|
|
30
|
-
})(PenaltyByAttackReplacement || (PenaltyByAttackReplacement = {}));
|
|
30
|
+
})(PenaltyByAttackReplacement = PenaltyByAttackReplacement || (PenaltyByAttackReplacement = {}));
|
|
31
31
|
/**
|
|
32
32
|
* The AE cost are per level of the enchantment. It may either be displayed
|
|
33
33
|
* in a compressed way (e.g. `1 AE per level`) or in a verbose way (e.g. `1
|
|
@@ -37,8 +37,8 @@ export var FixedArcaneEnergyCostPerLevel;
|
|
|
37
37
|
(function (FixedArcaneEnergyCostPerLevel) {
|
|
38
38
|
FixedArcaneEnergyCostPerLevel["Compressed"] = "Compressed";
|
|
39
39
|
FixedArcaneEnergyCostPerLevel["Verbose"] = "Verbose";
|
|
40
|
-
})(FixedArcaneEnergyCostPerLevel || (FixedArcaneEnergyCostPerLevel = {}));
|
|
40
|
+
})(FixedArcaneEnergyCostPerLevel = FixedArcaneEnergyCostPerLevel || (FixedArcaneEnergyCostPerLevel = {}));
|
|
41
41
|
export var IndefiniteArcaneEnergyCostModifierArithmetic;
|
|
42
42
|
(function (IndefiniteArcaneEnergyCostModifierArithmetic) {
|
|
43
43
|
IndefiniteArcaneEnergyCostModifierArithmetic["Add"] = "Add";
|
|
44
|
-
})(IndefiniteArcaneEnergyCostModifierArithmetic || (IndefiniteArcaneEnergyCostModifierArithmetic = {}));
|
|
44
|
+
})(IndefiniteArcaneEnergyCostModifierArithmetic = IndefiniteArcaneEnergyCostModifierArithmetic || (IndefiniteArcaneEnergyCostModifierArithmetic = {}));
|
|
@@ -2,7 +2,7 @@ import { TargetCategoryIdentifier } from "./_Identifier.js";
|
|
|
2
2
|
import { ActivatableIdentifier, CombatTechniqueIdentifier, SkillIdentifier } from "./_IdentifierGroup.js";
|
|
3
3
|
import { LocaleMap } from "./_LocaleMap.js";
|
|
4
4
|
import { CeremonyReference, CloseCombatTechniqueReference, ElementReference, LiturgicalChantReference, RangedCombatTechniqueReference, RitualReference, SkillGroupReference, SpellReference } from "./_SimpleReferences.js";
|
|
5
|
-
export
|
|
5
|
+
export type SelectOptionCategory = {
|
|
6
6
|
tag: "Blessings";
|
|
7
7
|
blessings: {};
|
|
8
8
|
} | {
|
|
@@ -66,14 +66,14 @@ export declare type SelectOptionCategory = {
|
|
|
66
66
|
tag: "TargetCategories";
|
|
67
67
|
target_categories: TargetCategoriesSelectOptionCategory;
|
|
68
68
|
};
|
|
69
|
-
export
|
|
69
|
+
export type BlessedTraditionsSelectOptionCategory = {
|
|
70
70
|
/**
|
|
71
71
|
* Should the principles (code) of the tradition be required to select the
|
|
72
72
|
* respective tradition?
|
|
73
73
|
*/
|
|
74
74
|
require_principles?: true;
|
|
75
75
|
};
|
|
76
|
-
export
|
|
76
|
+
export type ElementsSelectOptionCategory = {
|
|
77
77
|
/**
|
|
78
78
|
* Only include entries with the listed identifiers.
|
|
79
79
|
* @minItems 1
|
|
@@ -81,7 +81,7 @@ export declare type ElementsSelectOptionCategory = {
|
|
|
81
81
|
*/
|
|
82
82
|
specific?: ElementReference[];
|
|
83
83
|
};
|
|
84
|
-
export
|
|
84
|
+
export type PropertiesSelectOptionCategory = {
|
|
85
85
|
/**
|
|
86
86
|
* Does each property require it's corresponding property knowledge?
|
|
87
87
|
*/
|
|
@@ -92,7 +92,7 @@ export declare type PropertiesSelectOptionCategory = {
|
|
|
92
92
|
*/
|
|
93
93
|
require_minimum_spellworks_on?: RequiredMinimumSkillsToBeOnSkillRating;
|
|
94
94
|
};
|
|
95
|
-
export
|
|
95
|
+
export type AspectSelectOptionCategory = {
|
|
96
96
|
/**
|
|
97
97
|
* Does each aspect require it's corresponding aspect knowledge?
|
|
98
98
|
*/
|
|
@@ -114,7 +114,7 @@ export declare type AspectSelectOptionCategory = {
|
|
|
114
114
|
* Require a minimum number of spellworks/liturgies of the respective
|
|
115
115
|
* property/aspect to be on a minimum skill rating.
|
|
116
116
|
*/
|
|
117
|
-
export
|
|
117
|
+
export type RequiredMinimumSkillsToBeOnSkillRating = {
|
|
118
118
|
/**
|
|
119
119
|
* The minimum number of liturgies that need to be on the defined minimum
|
|
120
120
|
* skill rating.
|
|
@@ -130,24 +130,24 @@ export declare type RequiredMinimumSkillsToBeOnSkillRating = {
|
|
|
130
130
|
*/
|
|
131
131
|
rating: number;
|
|
132
132
|
};
|
|
133
|
-
export
|
|
133
|
+
export type DiseasesPoisonsSelectOptionCategory = {
|
|
134
134
|
/**
|
|
135
135
|
* Only convert half the disease/poison level into the AP value.
|
|
136
136
|
*/
|
|
137
137
|
use_half_level_as_ap_value?: true;
|
|
138
138
|
};
|
|
139
|
-
export
|
|
139
|
+
export type LanguagesSelectOptionCategory = {
|
|
140
140
|
/**
|
|
141
141
|
* Generate prerequisites for each entry of the category.
|
|
142
142
|
* @minItems 1
|
|
143
143
|
*/
|
|
144
144
|
prerequisites?: LanguagesSelectOptionCategoryPrerequisite[];
|
|
145
145
|
};
|
|
146
|
-
export
|
|
146
|
+
export type LanguagesSelectOptionCategoryPrerequisite = {
|
|
147
147
|
tag: "SelectOption";
|
|
148
148
|
select_option: OptionPrerequisite;
|
|
149
149
|
};
|
|
150
|
-
export
|
|
150
|
+
export type SkillsSelectOptionCategory = {
|
|
151
151
|
/**
|
|
152
152
|
* A list of skill categories.
|
|
153
153
|
* @minItems 1
|
|
@@ -158,7 +158,7 @@ export declare type SkillsSelectOptionCategory = {
|
|
|
158
158
|
*/
|
|
159
159
|
ap_value?: AdventurePointsValue<SkillIdentifier>;
|
|
160
160
|
};
|
|
161
|
-
export
|
|
161
|
+
export type SkillsSelectOptionCategoryCategory = {
|
|
162
162
|
tag: "Skills";
|
|
163
163
|
skills: SkillSelectOptionCategoryCategory;
|
|
164
164
|
} | {
|
|
@@ -174,7 +174,7 @@ export declare type SkillsSelectOptionCategoryCategory = {
|
|
|
174
174
|
tag: "Ceremonies";
|
|
175
175
|
ceremonies: GenericSkillsSelectOptionCategoryCategory<CeremonyReference>;
|
|
176
176
|
};
|
|
177
|
-
export
|
|
177
|
+
export type SkillSelectOptionCategoryCategory = {
|
|
178
178
|
/**
|
|
179
179
|
* Only include entries of the specified groups.
|
|
180
180
|
* @minItems 1
|
|
@@ -213,7 +213,7 @@ export declare type SkillSelectOptionCategoryCategory = {
|
|
|
213
213
|
*/
|
|
214
214
|
ap_value?: AdventurePointsValue<CombatTechniqueIdentifier>;
|
|
215
215
|
};
|
|
216
|
-
export
|
|
216
|
+
export type CombatTechniquesSelectOptionCategory = {
|
|
217
217
|
/**
|
|
218
218
|
* A list of combat technique categories.
|
|
219
219
|
* @minItems 1
|
|
@@ -224,14 +224,14 @@ export declare type CombatTechniquesSelectOptionCategory = {
|
|
|
224
224
|
*/
|
|
225
225
|
ap_value?: AdventurePointsValue<CombatTechniqueIdentifier>;
|
|
226
226
|
};
|
|
227
|
-
export
|
|
227
|
+
export type CombatTechniquesSelectOptionCategoryCategory = {
|
|
228
228
|
tag: "CloseCombatTechniques";
|
|
229
229
|
close_combat_techniques: GenericSkillsSelectOptionCategoryCategory<CloseCombatTechniqueReference>;
|
|
230
230
|
} | {
|
|
231
231
|
tag: "RangedCombatTechniques";
|
|
232
232
|
ranged_combat_techniques: GenericSkillsSelectOptionCategoryCategory<RangedCombatTechniqueReference>;
|
|
233
233
|
};
|
|
234
|
-
export
|
|
234
|
+
export type SkillApplicationOrUse = {
|
|
235
235
|
/**
|
|
236
236
|
* The application's or use's identifier. An entry-unique, increasing integer.
|
|
237
237
|
* @integer
|
|
@@ -243,7 +243,7 @@ export declare type SkillApplicationOrUse = {
|
|
|
243
243
|
*/
|
|
244
244
|
translations?: LocaleMap<SkillApplicationOrUseTranslation>;
|
|
245
245
|
};
|
|
246
|
-
export
|
|
246
|
+
export type SkillApplicationOrUseTranslation = {
|
|
247
247
|
/**
|
|
248
248
|
* The name of the application or use if different from the activatable
|
|
249
249
|
* entry's name.
|
|
@@ -251,7 +251,7 @@ export declare type SkillApplicationOrUseTranslation = {
|
|
|
251
251
|
*/
|
|
252
252
|
name: string;
|
|
253
253
|
};
|
|
254
|
-
export
|
|
254
|
+
export type GenericSkillsSelectOptionCategoryCategory<Ref> = {
|
|
255
255
|
/**
|
|
256
256
|
* Only include (`Intersection`) or exclude (`Difference`) specific entries.
|
|
257
257
|
*/
|
|
@@ -262,7 +262,7 @@ export declare type GenericSkillsSelectOptionCategoryCategory<Ref> = {
|
|
|
262
262
|
*/
|
|
263
263
|
prerequisites?: SkillSelectOptionCategoryPrerequisite[];
|
|
264
264
|
};
|
|
265
|
-
export
|
|
265
|
+
export type SpecificFromSkillSelectOptionCategoryCategory<Ref> = {
|
|
266
266
|
operation: SpecificFromSkillSelectOptionCategoryCategoryOperation;
|
|
267
267
|
/**
|
|
268
268
|
* The list of specific entries.
|
|
@@ -278,14 +278,14 @@ export declare enum SpecificFromSkillSelectOptionCategoryCategoryOperation {
|
|
|
278
278
|
Intersection = "Intersection",
|
|
279
279
|
Difference = "Difference"
|
|
280
280
|
}
|
|
281
|
-
export
|
|
281
|
+
export type SkillSelectOptionCategoryPrerequisite = {
|
|
282
282
|
tag: "Self";
|
|
283
283
|
self: SelfPrerequisite;
|
|
284
284
|
} | {
|
|
285
285
|
tag: "SelectOption";
|
|
286
286
|
select_option: OptionPrerequisite;
|
|
287
287
|
};
|
|
288
|
-
export
|
|
288
|
+
export type SelfPrerequisite = {
|
|
289
289
|
/**
|
|
290
290
|
* The entry requires itself on a certain Skill Rating.
|
|
291
291
|
* @integer
|
|
@@ -296,7 +296,7 @@ export declare type SelfPrerequisite = {
|
|
|
296
296
|
/**
|
|
297
297
|
* The entry requires or prohibits itself as a select option of another entry.
|
|
298
298
|
*/
|
|
299
|
-
export
|
|
299
|
+
export type OptionPrerequisite = {
|
|
300
300
|
/**
|
|
301
301
|
* The target entry's identifier.
|
|
302
302
|
*/
|
|
@@ -315,7 +315,7 @@ export declare type OptionPrerequisite = {
|
|
|
315
315
|
/**
|
|
316
316
|
* Generate AP values for each entry.
|
|
317
317
|
*/
|
|
318
|
-
export
|
|
318
|
+
export type AdventurePointsValue<Identifier> = {
|
|
319
319
|
tag: "DerivedFromImprovementCost";
|
|
320
320
|
derived_from_improvement_cost: DeriveAdventurePointsValueFromImprovementCost;
|
|
321
321
|
} | {
|
|
@@ -327,7 +327,7 @@ export declare type AdventurePointsValue<Identifier> = {
|
|
|
327
327
|
*
|
|
328
328
|
* **Calculation:** AP Value = Improvement Cost × `multiplier` + `offset`
|
|
329
329
|
*/
|
|
330
|
-
export
|
|
330
|
+
export type DeriveAdventurePointsValueFromImprovementCost = {
|
|
331
331
|
/**
|
|
332
332
|
* This number is multiplied with the improvement cost of the entry
|
|
333
333
|
* (A = 1 to D = 4).
|
|
@@ -343,7 +343,7 @@ export declare type DeriveAdventurePointsValueFromImprovementCost = {
|
|
|
343
343
|
*/
|
|
344
344
|
offset?: number;
|
|
345
345
|
};
|
|
346
|
-
export
|
|
346
|
+
export type FixedAdventurePointsValue<Identifier> = {
|
|
347
347
|
/**
|
|
348
348
|
* A mapping of skill identifiers to their specific AP values.
|
|
349
349
|
*/
|
|
@@ -356,7 +356,7 @@ export declare type FixedAdventurePointsValue<Identifier> = {
|
|
|
356
356
|
*/
|
|
357
357
|
default: number;
|
|
358
358
|
};
|
|
359
|
-
export
|
|
359
|
+
export type FixedAdventurePointsValueMapping<Identifier> = {
|
|
360
360
|
/**
|
|
361
361
|
* The entry's identifier.
|
|
362
362
|
*/
|
|
@@ -368,14 +368,14 @@ export declare type FixedAdventurePointsValueMapping<Identifier> = {
|
|
|
368
368
|
*/
|
|
369
369
|
ap_value: number;
|
|
370
370
|
};
|
|
371
|
-
export
|
|
371
|
+
export type TargetCategoriesSelectOptionCategory = {
|
|
372
372
|
/**
|
|
373
373
|
* A list of combat technique categories.
|
|
374
374
|
* @minItems 1
|
|
375
375
|
*/
|
|
376
376
|
list: SpecificTargetCategory[];
|
|
377
377
|
};
|
|
378
|
-
export
|
|
378
|
+
export type SpecificTargetCategory = {
|
|
379
379
|
/**
|
|
380
380
|
* The target category’s identifier.
|
|
381
381
|
*/
|
|
@@ -5,4 +5,4 @@ export var SpecificFromSkillSelectOptionCategoryCategoryOperation;
|
|
|
5
5
|
(function (SpecificFromSkillSelectOptionCategoryCategoryOperation) {
|
|
6
6
|
SpecificFromSkillSelectOptionCategoryCategoryOperation["Intersection"] = "Intersection";
|
|
7
7
|
SpecificFromSkillSelectOptionCategoryCategoryOperation["Difference"] = "Difference";
|
|
8
|
-
})(SpecificFromSkillSelectOptionCategoryCategoryOperation || (SpecificFromSkillSelectOptionCategoryCategoryOperation = {}));
|
|
8
|
+
})(SpecificFromSkillSelectOptionCategoryCategoryOperation = SpecificFromSkillSelectOptionCategoryCategoryOperation || (SpecificFromSkillSelectOptionCategoryCategoryOperation = {}));
|
|
@@ -5,33 +5,33 @@ import { FastCastingTime, SlowCastingTime } from "./_ActivatableSkillCastingTime
|
|
|
5
5
|
import { OneTimeCost, SustainedCost } from "./_ActivatableSkillCost.js";
|
|
6
6
|
import { DurationForOneTime, DurationForSustained } from "./_ActivatableSkillDuration.js";
|
|
7
7
|
import { Range } from "./_ActivatableSkillRange.js";
|
|
8
|
-
export
|
|
8
|
+
export type OneTimePerformanceParameters<CastingTime> = {
|
|
9
9
|
casting_time: CastingTime;
|
|
10
10
|
cost: OneTimeCost;
|
|
11
11
|
range: Range;
|
|
12
12
|
duration: DurationForOneTime;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type SustainedPerformanceParameters<CastingTime> = {
|
|
15
15
|
casting_time: CastingTime;
|
|
16
16
|
cost: SustainedCost;
|
|
17
17
|
range: Range;
|
|
18
18
|
duration?: DurationForSustained;
|
|
19
19
|
};
|
|
20
|
-
export
|
|
20
|
+
export type FastPerformanceParameters = {
|
|
21
21
|
tag: "OneTime";
|
|
22
22
|
one_time: FastOneTimePerformanceParameters;
|
|
23
23
|
} | {
|
|
24
24
|
tag: "Sustained";
|
|
25
25
|
sustained: FastSustainedPerformanceParameters;
|
|
26
26
|
};
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
27
|
+
export type FastOneTimePerformanceParameters = OneTimePerformanceParameters<FastCastingTime>;
|
|
28
|
+
export type FastSustainedPerformanceParameters = SustainedPerformanceParameters<FastCastingTime>;
|
|
29
|
+
export type SlowPerformanceParameters = {
|
|
30
30
|
tag: "OneTime";
|
|
31
31
|
one_time: SlowOneTimePerformanceParameters;
|
|
32
32
|
} | {
|
|
33
33
|
tag: "Sustained";
|
|
34
34
|
sustained: SlowSustainedPerformanceParameters;
|
|
35
35
|
};
|
|
36
|
-
export
|
|
37
|
-
export
|
|
36
|
+
export type SlowOneTimePerformanceParameters = OneTimePerformanceParameters<SlowCastingTime>;
|
|
37
|
+
export type SlowSustainedPerformanceParameters = SustainedPerformanceParameters<SlowCastingTime>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SlowSkillCastingTimeUnit } from "./SkillModificationLevel.js";
|
|
2
|
-
export
|
|
2
|
+
export type CastingTime<NonModifiable extends Object> = {
|
|
3
3
|
tag: "Modifiable";
|
|
4
4
|
modifiable: ModifiableCastingTime;
|
|
5
5
|
} | {
|
|
6
6
|
tag: "NonModifiable";
|
|
7
7
|
non_modifiable: NonModifiable;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type ModifiableCastingTime = {
|
|
10
10
|
/**
|
|
11
11
|
* The initial skill modification identifier/level.
|
|
12
12
|
* @integer
|
|
@@ -23,7 +23,7 @@ export declare type ModifiableCastingTime = {
|
|
|
23
23
|
* There must always be at least one casting time value.
|
|
24
24
|
* @minProperties 1
|
|
25
25
|
*/
|
|
26
|
-
export
|
|
26
|
+
export type CastingTimeIncludingLovemaking<NonModifiable extends Object> = {
|
|
27
27
|
/**
|
|
28
28
|
* The default casting time definition.
|
|
29
29
|
*/
|
|
@@ -40,7 +40,7 @@ export declare type CastingTimeIncludingLovemaking<NonModifiable extends Object>
|
|
|
40
40
|
* an activatable skill during lovemaking if it has a casting time used during
|
|
41
41
|
* lovemaking.
|
|
42
42
|
*/
|
|
43
|
-
export
|
|
43
|
+
export type CastingTimeDuringLovemaking = {
|
|
44
44
|
/**
|
|
45
45
|
* The (unitless) casting time value.
|
|
46
46
|
* @integer
|
|
@@ -56,7 +56,7 @@ export declare enum CastingTimeDuringLovemakingUnit {
|
|
|
56
56
|
SeductionActions = "SeductionActions",
|
|
57
57
|
Rounds = "Rounds"
|
|
58
58
|
}
|
|
59
|
-
export
|
|
59
|
+
export type FastSkillNonModifiableCastingTime = {
|
|
60
60
|
/**
|
|
61
61
|
* The casting time value in actions.
|
|
62
62
|
* @integer
|
|
@@ -64,7 +64,7 @@ export declare type FastSkillNonModifiableCastingTime = {
|
|
|
64
64
|
*/
|
|
65
65
|
actions: number;
|
|
66
66
|
};
|
|
67
|
-
export
|
|
67
|
+
export type SlowSkillNonModifiableCastingTime = {
|
|
68
68
|
/**
|
|
69
69
|
* The (unitless) casting time value.
|
|
70
70
|
* @integer
|
|
@@ -73,5 +73,5 @@ export declare type SlowSkillNonModifiableCastingTime = {
|
|
|
73
73
|
value: number;
|
|
74
74
|
unit: SlowSkillCastingTimeUnit;
|
|
75
75
|
};
|
|
76
|
-
export
|
|
77
|
-
export
|
|
76
|
+
export type FastCastingTime = CastingTimeIncludingLovemaking<FastSkillNonModifiableCastingTime>;
|
|
77
|
+
export type SlowCastingTime = CastingTimeIncludingLovemaking<SlowSkillNonModifiableCastingTime>;
|
|
@@ -2,4 +2,4 @@ export var CastingTimeDuringLovemakingUnit;
|
|
|
2
2
|
(function (CastingTimeDuringLovemakingUnit) {
|
|
3
3
|
CastingTimeDuringLovemakingUnit["SeductionActions"] = "SeductionActions";
|
|
4
4
|
CastingTimeDuringLovemakingUnit["Rounds"] = "Rounds";
|
|
5
|
-
})(CastingTimeDuringLovemakingUnit || (CastingTimeDuringLovemakingUnit = {}));
|
|
5
|
+
})(CastingTimeDuringLovemakingUnit = CastingTimeDuringLovemakingUnit || (CastingTimeDuringLovemakingUnit = {}));
|
|
@@ -12,7 +12,7 @@ export declare enum CheckResultArithmetic {
|
|
|
12
12
|
Multiply = "Multiply",
|
|
13
13
|
Divide = "Divide"
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export type CheckResultBasedModifier = {
|
|
16
16
|
/**
|
|
17
17
|
* The arithmetic how to apply the `value` to the `base`.
|
|
18
18
|
*/
|
|
@@ -27,7 +27,7 @@ export declare type CheckResultBasedModifier = {
|
|
|
27
27
|
/**
|
|
28
28
|
* Defines a parameter being based on a check result.
|
|
29
29
|
*/
|
|
30
|
-
export
|
|
30
|
+
export type CheckResultBased = {
|
|
31
31
|
/**
|
|
32
32
|
* The base value that is derived from the check result.
|
|
33
33
|
*/
|
|
@@ -5,7 +5,7 @@ export var CheckResultValue;
|
|
|
5
5
|
(function (CheckResultValue) {
|
|
6
6
|
CheckResultValue["QualityLevels"] = "QualityLevels";
|
|
7
7
|
CheckResultValue["SkillPoints"] = "SkillPoints";
|
|
8
|
-
})(CheckResultValue || (CheckResultValue = {}));
|
|
8
|
+
})(CheckResultValue = CheckResultValue || (CheckResultValue = {}));
|
|
9
9
|
/**
|
|
10
10
|
* Defines how the the `value` is set off against the check result.
|
|
11
11
|
*/
|
|
@@ -13,4 +13,4 @@ export var CheckResultArithmetic;
|
|
|
13
13
|
(function (CheckResultArithmetic) {
|
|
14
14
|
CheckResultArithmetic["Multiply"] = "Multiply";
|
|
15
15
|
CheckResultArithmetic["Divide"] = "Divide";
|
|
16
|
-
})(CheckResultArithmetic || (CheckResultArithmetic = {}));
|
|
16
|
+
})(CheckResultArithmetic = CheckResultArithmetic || (CheckResultArithmetic = {}));
|
|
@@ -2,7 +2,7 @@ import { DurationUnitValue } from "./_ActivatableSkillDuration.js";
|
|
|
2
2
|
import { LocaleMap } from "./_LocaleMap.js";
|
|
3
3
|
import { NonEmptyString } from "./_NonEmptyString.js";
|
|
4
4
|
import { ResponsiveText, ResponsiveTextOptional, ResponsiveTextReplace } from "./_ResponsiveText.js";
|
|
5
|
-
export
|
|
5
|
+
export type OneTimeCost = {
|
|
6
6
|
tag: "Single";
|
|
7
7
|
single: SingleOneTimeCost;
|
|
8
8
|
} | {
|
|
@@ -15,7 +15,7 @@ export declare type OneTimeCost = {
|
|
|
15
15
|
tag: "Map";
|
|
16
16
|
map: CostMap;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type SingleOneTimeCost = {
|
|
19
19
|
tag: "Modifiable";
|
|
20
20
|
modifiable: ModifiableOneTimeCost;
|
|
21
21
|
} | {
|
|
@@ -28,8 +28,8 @@ export declare type SingleOneTimeCost = {
|
|
|
28
28
|
/**
|
|
29
29
|
* @minItems 2
|
|
30
30
|
*/
|
|
31
|
-
export
|
|
32
|
-
export
|
|
31
|
+
export type MultipleOneTimeCosts = SingleOneTimeCost[];
|
|
32
|
+
export type ModifiableOneTimeCost = {
|
|
33
33
|
/**
|
|
34
34
|
* The initial skill modification identifier/level.
|
|
35
35
|
* @integer
|
|
@@ -48,13 +48,13 @@ export declare type ModifiableOneTimeCost = {
|
|
|
48
48
|
*/
|
|
49
49
|
translations?: LocaleMap<ModifiableOneTimeCostTranslation>;
|
|
50
50
|
};
|
|
51
|
-
export
|
|
51
|
+
export type ModifiableOneTimeCostTranslation = {
|
|
52
52
|
/**
|
|
53
53
|
* A replacement string.
|
|
54
54
|
*/
|
|
55
55
|
replacement: ResponsiveTextReplace;
|
|
56
56
|
};
|
|
57
|
-
export
|
|
57
|
+
export type NonModifiableOneTimeCost = {
|
|
58
58
|
/**
|
|
59
59
|
* If `true`, the non-modifiable value is a minimum value.
|
|
60
60
|
*/
|
|
@@ -82,7 +82,7 @@ export declare type NonModifiableOneTimeCost = {
|
|
|
82
82
|
*/
|
|
83
83
|
translations?: LocaleMap<NonModifiableOneTimeCostTranslation>;
|
|
84
84
|
};
|
|
85
|
-
export
|
|
85
|
+
export type NonModifiableOneTimeCostPerCountable = {
|
|
86
86
|
/**
|
|
87
87
|
* If defined, the minimum total AE that have to be spent casting the
|
|
88
88
|
* skill.
|
|
@@ -94,25 +94,25 @@ export declare type NonModifiableOneTimeCostPerCountable = {
|
|
|
94
94
|
*/
|
|
95
95
|
translations: LocaleMap<NonModifiableOneTimeCostPerCountableTranslation>;
|
|
96
96
|
};
|
|
97
|
-
export
|
|
97
|
+
export type NonModifiableOneTimeCostPerCountableTranslation = {
|
|
98
98
|
/**
|
|
99
99
|
* The countable entity name.
|
|
100
100
|
*/
|
|
101
101
|
countable: ResponsiveText;
|
|
102
102
|
};
|
|
103
|
-
export
|
|
103
|
+
export type NonModifiableOneTimeCostTranslation = {
|
|
104
104
|
/**
|
|
105
105
|
* A note, appended to the generated string in parenthesis.
|
|
106
106
|
*/
|
|
107
107
|
note: ResponsiveTextOptional;
|
|
108
108
|
};
|
|
109
|
-
export
|
|
109
|
+
export type IndefiniteOneTimeCost = {
|
|
110
110
|
/**
|
|
111
111
|
* All translations for the entry, identified by IETF language tag (BCP47).
|
|
112
112
|
*/
|
|
113
113
|
translations: LocaleMap<IndefiniteOneTimeCostTranslation>;
|
|
114
114
|
};
|
|
115
|
-
export
|
|
115
|
+
export type IndefiniteOneTimeCostTranslation = {
|
|
116
116
|
/**
|
|
117
117
|
* A description of where the cost come from.
|
|
118
118
|
*/
|
|
@@ -138,7 +138,7 @@ export declare type IndefiniteOneTimeCostTranslation = {
|
|
|
138
138
|
* This will generate the exact same string as seen above – given it is set
|
|
139
139
|
* for a spellwork and thus `AE` is used.
|
|
140
140
|
*/
|
|
141
|
-
export
|
|
141
|
+
export type CostMap = {
|
|
142
142
|
/**
|
|
143
143
|
* The possible costs and associated labels.
|
|
144
144
|
* @minItems 2
|
|
@@ -149,7 +149,7 @@ export declare type CostMap = {
|
|
|
149
149
|
*/
|
|
150
150
|
translations?: LocaleMap<CostMapTranslation>;
|
|
151
151
|
};
|
|
152
|
-
export
|
|
152
|
+
export type CostMapOption = {
|
|
153
153
|
/**
|
|
154
154
|
* The full cost value for this option.
|
|
155
155
|
* @integer
|
|
@@ -167,7 +167,7 @@ export declare type CostMapOption = {
|
|
|
167
167
|
*/
|
|
168
168
|
translations?: LocaleMap<CostMapOptionTranslation>;
|
|
169
169
|
};
|
|
170
|
-
export
|
|
170
|
+
export type CostMapOptionTranslation = {
|
|
171
171
|
/**
|
|
172
172
|
* The description of the option for cost string generation.
|
|
173
173
|
*/
|
|
@@ -178,7 +178,7 @@ export declare type CostMapOptionTranslation = {
|
|
|
178
178
|
*/
|
|
179
179
|
label_standalone?: NonEmptyString;
|
|
180
180
|
};
|
|
181
|
-
export
|
|
181
|
+
export type CostMapTranslation = {
|
|
182
182
|
/**
|
|
183
183
|
* Place a string between the `for` and the grouped map option labels.
|
|
184
184
|
*/
|
|
@@ -195,14 +195,14 @@ export declare type CostMapTranslation = {
|
|
|
195
195
|
*/
|
|
196
196
|
replacement?: NonEmptyString;
|
|
197
197
|
};
|
|
198
|
-
export
|
|
198
|
+
export type SustainedCost = {
|
|
199
199
|
tag: "Modifiable";
|
|
200
200
|
modifiable: ModifiableSustainedCost;
|
|
201
201
|
} | {
|
|
202
202
|
tag: "NonModifiable";
|
|
203
203
|
non_modifiable: NonModifiableSustainedCost;
|
|
204
204
|
};
|
|
205
|
-
export
|
|
205
|
+
export type ModifiableSustainedCost = {
|
|
206
206
|
/**
|
|
207
207
|
* The initial skill modification identifier/level.
|
|
208
208
|
* @integer
|
|
@@ -215,7 +215,7 @@ export declare type ModifiableSustainedCost = {
|
|
|
215
215
|
*/
|
|
216
216
|
interval: DurationUnitValue;
|
|
217
217
|
};
|
|
218
|
-
export
|
|
218
|
+
export type NonModifiableSustainedCost = {
|
|
219
219
|
/**
|
|
220
220
|
* If `true`, the non-modifiable value is a minimum value.
|
|
221
221
|
*/
|
|
@@ -236,7 +236,7 @@ export declare type NonModifiableSustainedCost = {
|
|
|
236
236
|
*/
|
|
237
237
|
interval: DurationUnitValue;
|
|
238
238
|
};
|
|
239
|
-
export
|
|
239
|
+
export type NonModifiableSustainedCostPerCountable = {
|
|
240
240
|
/**
|
|
241
241
|
* If defined, the minimum total AE that have to be spent casting the
|
|
242
242
|
* skill.
|
|
@@ -247,7 +247,7 @@ export declare type NonModifiableSustainedCostPerCountable = {
|
|
|
247
247
|
*/
|
|
248
248
|
translations: LocaleMap<NonModifiableSustainedCostPerCountableTranslation>;
|
|
249
249
|
};
|
|
250
|
-
export
|
|
250
|
+
export type NonModifiableSustainedCostPerCountableTranslation = {
|
|
251
251
|
/**
|
|
252
252
|
* The countable entity name.
|
|
253
253
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CheckResultBased } from "./_ActivatableSkillCheckResultBased.js";
|
|
2
2
|
import { LocaleMap } from "./_LocaleMap.js";
|
|
3
3
|
import { ResponsiveText, ResponsiveTextReplace } from "./_ResponsiveText.js";
|
|
4
|
-
export
|
|
4
|
+
export type DurationForOneTime = {
|
|
5
5
|
tag: "Immediate";
|
|
6
6
|
immediate: Immediate;
|
|
7
7
|
} | {
|
|
@@ -17,7 +17,7 @@ export declare type DurationForOneTime = {
|
|
|
17
17
|
tag: "Indefinite";
|
|
18
18
|
indefinite: IndefiniteDuration;
|
|
19
19
|
};
|
|
20
|
-
export
|
|
20
|
+
export type Immediate = {
|
|
21
21
|
/**
|
|
22
22
|
* Specified if the duration has a maximum time span.
|
|
23
23
|
*/
|
|
@@ -27,25 +27,25 @@ export declare type Immediate = {
|
|
|
27
27
|
*/
|
|
28
28
|
translations?: LocaleMap<ImmediateTranslation>;
|
|
29
29
|
};
|
|
30
|
-
export
|
|
30
|
+
export type ImmediateTranslation = {
|
|
31
31
|
/**
|
|
32
32
|
* A replacement string.
|
|
33
33
|
*/
|
|
34
34
|
replacement: ResponsiveTextReplace;
|
|
35
35
|
};
|
|
36
|
-
export
|
|
36
|
+
export type PermanentDuration = {
|
|
37
37
|
/**
|
|
38
38
|
* All translations for the entry, identified by IETF language tag (BCP47).
|
|
39
39
|
*/
|
|
40
40
|
translations?: LocaleMap<PermanentDurationTranslation>;
|
|
41
41
|
};
|
|
42
|
-
export
|
|
42
|
+
export type PermanentDurationTranslation = {
|
|
43
43
|
/**
|
|
44
44
|
* A replacement string.
|
|
45
45
|
*/
|
|
46
46
|
replacement: ResponsiveTextReplace;
|
|
47
47
|
};
|
|
48
|
-
export
|
|
48
|
+
export type FixedDuration = {
|
|
49
49
|
/**
|
|
50
50
|
* If the duration is the maximum duration, so it may end earlier.
|
|
51
51
|
*/
|
|
@@ -65,7 +65,7 @@ export declare type FixedDuration = {
|
|
|
65
65
|
*/
|
|
66
66
|
translations?: LocaleMap<FixedDurationTranslation>;
|
|
67
67
|
};
|
|
68
|
-
export
|
|
68
|
+
export type FixedDurationTranslation = {
|
|
69
69
|
/**
|
|
70
70
|
* A replacement string.
|
|
71
71
|
*/
|
|
@@ -74,7 +74,7 @@ export declare type FixedDurationTranslation = {
|
|
|
74
74
|
/**
|
|
75
75
|
* Defines the duration being based on a check result.
|
|
76
76
|
*/
|
|
77
|
-
export
|
|
77
|
+
export type CheckResultBasedDuration = CheckResultBased & {
|
|
78
78
|
/**
|
|
79
79
|
* If the duration is the maximum duration, so it may end earlier.
|
|
80
80
|
*/
|
|
@@ -88,25 +88,25 @@ export declare type CheckResultBasedDuration = CheckResultBased & {
|
|
|
88
88
|
*/
|
|
89
89
|
translations?: LocaleMap<CheckResultBasedDurationTranslation>;
|
|
90
90
|
};
|
|
91
|
-
export
|
|
91
|
+
export type CheckResultBasedDurationTranslation = {
|
|
92
92
|
/**
|
|
93
93
|
* A replacement string.
|
|
94
94
|
*/
|
|
95
95
|
replacement: ResponsiveTextReplace;
|
|
96
96
|
};
|
|
97
|
-
export
|
|
97
|
+
export type IndefiniteDuration = {
|
|
98
98
|
/**
|
|
99
99
|
* All translations for the entry, identified by IETF language tag (BCP47).
|
|
100
100
|
*/
|
|
101
101
|
translations: LocaleMap<IndefiniteDurationTranslation>;
|
|
102
102
|
};
|
|
103
|
-
export
|
|
103
|
+
export type IndefiniteDurationTranslation = {
|
|
104
104
|
/**
|
|
105
105
|
* A description of the duration.
|
|
106
106
|
*/
|
|
107
107
|
description: ResponsiveText;
|
|
108
108
|
};
|
|
109
|
-
export
|
|
109
|
+
export type DurationForSustained = {
|
|
110
110
|
/**
|
|
111
111
|
* The sustained skill can be active a maximum amount of time.
|
|
112
112
|
*/
|
|
@@ -124,7 +124,7 @@ export declare enum DurationUnit {
|
|
|
124
124
|
Actions = "Actions",
|
|
125
125
|
CombatRounds = "CombatRounds"
|
|
126
126
|
}
|
|
127
|
-
export
|
|
127
|
+
export type DurationUnitValue = {
|
|
128
128
|
/**
|
|
129
129
|
* The (unitless) duration value.
|
|
130
130
|
* @integer
|