@optolith/database-schema 0.42.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AUTHORS +1 -0
- package/CHANGELOG.md +1789 -0
- package/LICENSE +378 -0
- package/README.md +34 -0
- package/gen/types.d.ts +24682 -0
- package/lib/cache/activatableSelectOptions.d.ts +18 -0
- package/lib/cache/activatableSelectOptions.js +762 -0
- package/lib/cache/ancestorBloodAdvantages.d.ts +4 -0
- package/lib/cache/ancestorBloodAdvantages.js +13 -0
- package/lib/cache/index.d.ts +31 -0
- package/lib/cache/index.js +22 -0
- package/lib/cache/internal.d.ts +4 -0
- package/lib/cache/internal.js +1 -0
- package/lib/cache/magicalAndBlessedAdvantagesAndDisadvantages.d.ts +3 -0
- package/lib/cache/magicalAndBlessedAdvantagesAndDisadvantages.js +103 -0
- package/lib/cache/newApplicationsAndUses.d.ts +22 -0
- package/lib/cache/newApplicationsAndUses.js +12 -0
- package/lib/main.d.ts +17 -0
- package/lib/main.js +226 -0
- package/lib/test.d.ts +1 -0
- package/lib/test.js +11 -0
- package/lib/types/Advantage.d.ts +1193 -0
- package/lib/types/Advantage.js +58 -0
- package/lib/types/AnimalDisease.d.ts +91 -0
- package/lib/types/AnimalDisease.js +35 -0
- package/lib/types/AnimalType.d.ts +6 -0
- package/lib/types/AnimalType.js +21 -0
- package/lib/types/ArcaneBardTradition.d.ts +30 -0
- package/lib/types/ArcaneBardTradition.js +14 -0
- package/lib/types/ArcaneDancerTradition.d.ts +30 -0
- package/lib/types/ArcaneDancerTradition.js +14 -0
- package/lib/types/Aspect.d.ts +7 -0
- package/lib/types/Aspect.js +27 -0
- package/lib/types/Attribute.d.ts +19 -0
- package/lib/types/Attribute.js +49 -0
- package/lib/types/Blessing.d.ts +106 -0
- package/lib/types/Blessing.js +102 -0
- package/lib/types/Cantrip.d.ts +134 -0
- package/lib/types/Cantrip.js +166 -0
- package/lib/types/Ceremony.d.ts +685 -0
- package/lib/types/Ceremony.js +94 -0
- package/lib/types/CombatTechnique.d.ts +153 -0
- package/lib/types/CombatTechnique.js +133 -0
- package/lib/types/Condition.d.ts +53 -0
- package/lib/types/Condition.js +38 -0
- package/lib/types/Continent.d.ts +6 -0
- package/lib/types/Continent.js +22 -0
- package/lib/types/Culture.d.ts +158 -0
- package/lib/types/Culture.js +374 -0
- package/lib/types/DerivedCharacteristic.d.ts +267 -0
- package/lib/types/DerivedCharacteristic.js +227 -0
- package/lib/types/Disadvantage.d.ts +1120 -0
- package/lib/types/Disadvantage.js +59 -0
- package/lib/types/Disease.d.ts +111 -0
- package/lib/types/Disease.js +35 -0
- package/lib/types/Element.d.ts +6 -0
- package/lib/types/Element.js +21 -0
- package/lib/types/ExperienceLevel.d.ts +13 -0
- package/lib/types/ExperienceLevel.js +56 -0
- package/lib/types/EyeColor.d.ts +6 -0
- package/lib/types/EyeColor.js +21 -0
- package/lib/types/FamiliarsTrick.d.ts +192 -0
- package/lib/types/FamiliarsTrick.js +202 -0
- package/lib/types/HairColor.d.ts +6 -0
- package/lib/types/HairColor.js +21 -0
- package/lib/types/HomunculusType.d.ts +6 -0
- package/lib/types/HomunculusType.js +15 -0
- package/lib/types/Influence.d.ts +80 -0
- package/lib/types/Influence.js +52 -0
- package/lib/types/Lessons.d.ts +181 -0
- package/lib/types/Lessons.js +230 -0
- package/lib/types/LiturgicalChant.d.ts +685 -0
- package/lib/types/LiturgicalChant.js +94 -0
- package/lib/types/Locale.d.ts +1607 -0
- package/lib/types/Locale.js +1747 -0
- package/lib/types/MetaCondition.d.ts +53 -0
- package/lib/types/MetaCondition.js +39 -0
- package/lib/types/PactCategory.d.ts +75 -0
- package/lib/types/PactCategory.js +102 -0
- package/lib/types/Patron.d.ts +101 -0
- package/lib/types/Patron.js +203 -0
- package/lib/types/PatronCategory.d.ts +7 -0
- package/lib/types/PatronCategory.js +26 -0
- package/lib/types/PersonalityTrait.d.ts +81 -0
- package/lib/types/PersonalityTrait.js +58 -0
- package/lib/types/Profession.d.ts +2120 -0
- package/lib/types/Profession.js +631 -0
- package/lib/types/Property.d.ts +7 -0
- package/lib/types/Property.js +26 -0
- package/lib/types/Race.d.ts +207 -0
- package/lib/types/Race.js +332 -0
- package/lib/types/Region.d.ts +6 -0
- package/lib/types/Region.js +21 -0
- package/lib/types/Ritual.d.ts +688 -0
- package/lib/types/Ritual.js +96 -0
- package/lib/types/Service.d.ts +56 -0
- package/lib/types/Service.js +45 -0
- package/lib/types/SexPractice.d.ts +51 -0
- package/lib/types/SexPractice.js +39 -0
- package/lib/types/Skill.d.ts +116 -0
- package/lib/types/Skill.js +139 -0
- package/lib/types/SkillGroup.d.ts +17 -0
- package/lib/types/SkillGroup.js +45 -0
- package/lib/types/SkillModificationLevel.d.ts +34 -0
- package/lib/types/SkillModificationLevel.js +116 -0
- package/lib/types/SocialStatus.d.ts +7 -0
- package/lib/types/SocialStatus.js +26 -0
- package/lib/types/Spell.d.ts +688 -0
- package/lib/types/Spell.js +96 -0
- package/lib/types/State.d.ts +52 -0
- package/lib/types/State.js +31 -0
- package/lib/types/Talisman.d.ts +135 -0
- package/lib/types/Talisman.js +168 -0
- package/lib/types/TargetCategory.d.ts +7 -0
- package/lib/types/TargetCategory.js +26 -0
- package/lib/types/_Activatable.d.ts +12 -0
- package/lib/types/_Activatable.js +43 -0
- package/lib/types/_ActivatableAdvanced.d.ts +50 -0
- package/lib/types/_ActivatableAdvanced.js +101 -0
- package/lib/types/_ActivatableAdventurePointsValue.d.ts +159 -0
- package/lib/types/_ActivatableAdventurePointsValue.js +148 -0
- package/lib/types/_ActivatableAutomatic.d.ts +74 -0
- package/lib/types/_ActivatableAutomatic.js +64 -0
- package/lib/types/_ActivatableCombat.d.ts +123 -0
- package/lib/types/_ActivatableCombat.js +350 -0
- package/lib/types/_ActivatableNames.d.ts +15 -0
- package/lib/types/_ActivatableNames.js +26 -0
- package/lib/types/_ActivatableNonMundane.d.ts +387 -0
- package/lib/types/_ActivatableNonMundane.js +536 -0
- package/lib/types/_ActivatableSelectOptionCategory.d.ts +1380 -0
- package/lib/types/_ActivatableSelectOptionCategory.js +478 -0
- package/lib/types/_ActivatableSelectOptions.d.ts +1077 -0
- package/lib/types/_ActivatableSelectOptions.js +218 -0
- package/lib/types/_ActivatableSkill.d.ts +1231 -0
- package/lib/types/_ActivatableSkill.js +89 -0
- package/lib/types/_ActivatableSkillApplicationsAndUses.d.ts +109 -0
- package/lib/types/_ActivatableSkillApplicationsAndUses.js +80 -0
- package/lib/types/_ActivatableSkillCastingTime.d.ts +66 -0
- package/lib/types/_ActivatableSkillCastingTime.js +92 -0
- package/lib/types/_ActivatableSkillCheckResultBased.d.ts +27 -0
- package/lib/types/_ActivatableSkillCheckResultBased.js +45 -0
- package/lib/types/_ActivatableSkillCost.d.ts +366 -0
- package/lib/types/_ActivatableSkillCost.js +280 -0
- package/lib/types/_ActivatableSkillDuration.d.ts +204 -0
- package/lib/types/_ActivatableSkillDuration.js +138 -0
- package/lib/types/_ActivatableSkillEffect.d.ts +16 -0
- package/lib/types/_ActivatableSkillEffect.js +65 -0
- package/lib/types/_ActivatableSkillRange.d.ts +62 -0
- package/lib/types/_ActivatableSkillRange.js +106 -0
- package/lib/types/_ActivatableSkillTargetCategory.d.ts +14 -0
- package/lib/types/_ActivatableSkillTargetCategory.js +30 -0
- package/lib/types/_AlternativeNames.d.ts +5 -0
- package/lib/types/_AlternativeNames.js +14 -0
- package/lib/types/_ArcaneTradition.d.ts +30 -0
- package/lib/types/_ArcaneTradition.js +14 -0
- package/lib/types/_Blessed.d.ts +8 -0
- package/lib/types/_Blessed.js +22 -0
- package/lib/types/_Color.d.ts +19 -0
- package/lib/types/_Color.js +27 -0
- package/lib/types/_CommonnessRatedAdvantageDisadvantage.d.ts +7 -0
- package/lib/types/_CommonnessRatedAdvantageDisadvantage.js +19 -0
- package/lib/types/_Dice.d.ts +6 -0
- package/lib/types/_Dice.js +23 -0
- package/lib/types/_DiseasePoison.d.ts +59 -0
- package/lib/types/_DiseasePoison.js +110 -0
- package/lib/types/_Enhancements.d.ts +170 -0
- package/lib/types/_Enhancements.js +80 -0
- package/lib/types/_Identifier.d.ts +170 -0
- package/lib/types/_Identifier.js +325 -0
- package/lib/types/_IdentifierGroup.d.ts +413 -0
- package/lib/types/_IdentifierGroup.js +333 -0
- package/lib/types/_ImprovementCost.d.ts +7 -0
- package/lib/types/_ImprovementCost.js +10 -0
- package/lib/types/_MathExpression.d.ts +12 -0
- package/lib/types/_MathExpression.js +36 -0
- package/lib/types/_Prerequisite.d.ts +421 -0
- package/lib/types/_Prerequisite.js +163 -0
- package/lib/types/_ResponsiveText.d.ts +13 -0
- package/lib/types/_ResponsiveText.js +43 -0
- package/lib/types/_Sex.d.ts +5 -0
- package/lib/types/_Sex.js +8 -0
- package/lib/types/_SizeCategory.d.ts +15 -0
- package/lib/types/_SizeCategory.js +24 -0
- package/lib/types/_SkillCheck.d.ts +11 -0
- package/lib/types/_SkillCheck.js +23 -0
- package/lib/types/_Spellwork.d.ts +17 -0
- package/lib/types/_Spellwork.js +39 -0
- package/lib/types/equipment/EquipmentPackage.d.ts +85 -0
- package/lib/types/equipment/EquipmentPackage.js +41 -0
- package/lib/types/equipment/item/Ammunition.d.ts +72 -0
- package/lib/types/equipment/item/Ammunition.js +44 -0
- package/lib/types/equipment/item/Animal.d.ts +72 -0
- package/lib/types/equipment/item/Animal.js +22 -0
- package/lib/types/equipment/item/AnimalCare.d.ts +87 -0
- package/lib/types/equipment/item/AnimalCare.js +58 -0
- package/lib/types/equipment/item/Armor.d.ts +166 -0
- package/lib/types/equipment/item/Armor.js +181 -0
- package/lib/types/equipment/item/BandageOrRemedy.d.ts +201 -0
- package/lib/types/equipment/item/BandageOrRemedy.js +48 -0
- package/lib/types/equipment/item/Book.d.ts +169 -0
- package/lib/types/equipment/item/Book.js +271 -0
- package/lib/types/equipment/item/CeremonialItem.d.ts +202 -0
- package/lib/types/equipment/item/CeremonialItem.js +53 -0
- package/lib/types/equipment/item/Clothes.d.ts +201 -0
- package/lib/types/equipment/item/Clothes.js +48 -0
- package/lib/types/equipment/item/ClothingPackage.d.ts +63 -0
- package/lib/types/equipment/item/ClothingPackage.js +21 -0
- package/lib/types/equipment/item/Container.d.ts +201 -0
- package/lib/types/equipment/item/Container.js +48 -0
- package/lib/types/equipment/item/Elixir.d.ts +119 -0
- package/lib/types/equipment/item/Elixir.js +110 -0
- package/lib/types/equipment/item/EquipmentOfBlessedOnes.d.ts +215 -0
- package/lib/types/equipment/item/EquipmentOfBlessedOnes.js +44 -0
- package/lib/types/equipment/item/GemOrPreciousStone.d.ts +74 -0
- package/lib/types/equipment/item/GemOrPreciousStone.js +52 -0
- package/lib/types/equipment/item/IlluminationLightSource.d.ts +210 -0
- package/lib/types/equipment/item/IlluminationLightSource.js +78 -0
- package/lib/types/equipment/item/IlluminationRefillOrSupply.d.ts +201 -0
- package/lib/types/equipment/item/IlluminationRefillOrSupply.js +48 -0
- package/lib/types/equipment/item/Jewelry.d.ts +74 -0
- package/lib/types/equipment/item/Jewelry.js +46 -0
- package/lib/types/equipment/item/Laboratory.d.ts +81 -0
- package/lib/types/equipment/item/Laboratory.js +34 -0
- package/lib/types/equipment/item/Liebesspielzeug.d.ts +201 -0
- package/lib/types/equipment/item/Liebesspielzeug.js +48 -0
- package/lib/types/equipment/item/LuxuryGood.d.ts +201 -0
- package/lib/types/equipment/item/LuxuryGood.js +48 -0
- package/lib/types/equipment/item/MagicalArtifact.d.ts +204 -0
- package/lib/types/equipment/item/MagicalArtifact.js +82 -0
- package/lib/types/equipment/item/MusicalInstrument.d.ts +201 -0
- package/lib/types/equipment/item/MusicalInstrument.js +48 -0
- package/lib/types/equipment/item/Newspaper.d.ts +67 -0
- package/lib/types/equipment/item/Newspaper.js +36 -0
- package/lib/types/equipment/item/OrienteeringAid.d.ts +200 -0
- package/lib/types/equipment/item/OrienteeringAid.js +2 -0
- package/lib/types/equipment/item/Poison.d.ts +621 -0
- package/lib/types/equipment/item/Poison.js +486 -0
- package/lib/types/equipment/item/RopeOrChain.d.ts +200 -0
- package/lib/types/equipment/item/RopeOrChain.js +2 -0
- package/lib/types/equipment/item/Stationery.d.ts +200 -0
- package/lib/types/equipment/item/Stationery.js +2 -0
- package/lib/types/equipment/item/ThievesTool.d.ts +200 -0
- package/lib/types/equipment/item/ThievesTool.js +2 -0
- package/lib/types/equipment/item/ToolOfTheTrade.d.ts +83 -0
- package/lib/types/equipment/item/ToolOfTheTrade.js +34 -0
- package/lib/types/equipment/item/TravelGearOrTool.d.ts +201 -0
- package/lib/types/equipment/item/TravelGearOrTool.js +48 -0
- package/lib/types/equipment/item/Vehicle.d.ts +80 -0
- package/lib/types/equipment/item/Vehicle.js +30 -0
- package/lib/types/equipment/item/Weapon.d.ts +225 -0
- package/lib/types/equipment/item/Weapon.js +132 -0
- package/lib/types/equipment/item/WeaponAccessory.d.ts +201 -0
- package/lib/types/equipment/item/WeaponAccessory.js +48 -0
- package/lib/types/equipment/item/WorkingSupernaturalCreature.d.ts +72 -0
- package/lib/types/equipment/item/WorkingSupernaturalCreature.js +44 -0
- package/lib/types/equipment/item/_Herbary.d.ts +76 -0
- package/lib/types/equipment/item/_Herbary.js +48 -0
- package/lib/types/equipment/item/_Item.d.ts +414 -0
- package/lib/types/equipment/item/_Item.js +254 -0
- package/lib/types/equipment/item/_MeleeWeapon.d.ts +62 -0
- package/lib/types/equipment/item/_MeleeWeapon.js +100 -0
- package/lib/types/equipment/item/_RangedWeapon.d.ts +38 -0
- package/lib/types/equipment/item/_RangedWeapon.js +93 -0
- package/lib/types/equipment/item/_Weapon.d.ts +25 -0
- package/lib/types/equipment/item/_Weapon.js +77 -0
- package/lib/types/equipment/item/sub/ArmorType.d.ts +7 -0
- package/lib/types/equipment/item/sub/ArmorType.js +25 -0
- package/lib/types/equipment/item/sub/Reach.d.ts +7 -0
- package/lib/types/equipment/item/sub/Reach.js +28 -0
- package/lib/types/index.d.ts +160 -0
- package/lib/types/index.js +160 -0
- package/lib/types/magicalActions/AnimistPower.d.ts +302 -0
- package/lib/types/magicalActions/AnimistPower.js +204 -0
- package/lib/types/magicalActions/AnimistPower_Tribe.d.ts +30 -0
- package/lib/types/magicalActions/AnimistPower_Tribe.js +26 -0
- package/lib/types/magicalActions/Bannzeichen.d.ts +244 -0
- package/lib/types/magicalActions/Bannzeichen.js +231 -0
- package/lib/types/magicalActions/Curse.d.ts +219 -0
- package/lib/types/magicalActions/Curse.js +133 -0
- package/lib/types/magicalActions/DominationRitual.d.ts +204 -0
- package/lib/types/magicalActions/DominationRitual.js +133 -0
- package/lib/types/magicalActions/ElvenMagicalSong.d.ts +126 -0
- package/lib/types/magicalActions/ElvenMagicalSong.js +117 -0
- package/lib/types/magicalActions/GeodeRitual.d.ts +227 -0
- package/lib/types/magicalActions/GeodeRitual.js +142 -0
- package/lib/types/magicalActions/GoblinRitual.d.ts +286 -0
- package/lib/types/magicalActions/GoblinRitual.js +196 -0
- package/lib/types/magicalActions/JesterTrick.d.ts +305 -0
- package/lib/types/magicalActions/JesterTrick.js +160 -0
- package/lib/types/magicalActions/MagicalDance.d.ts +129 -0
- package/lib/types/magicalActions/MagicalDance.js +119 -0
- package/lib/types/magicalActions/MagicalMelody.d.ts +133 -0
- package/lib/types/magicalActions/MagicalMelody.js +123 -0
- package/lib/types/magicalActions/MagicalRune.d.ts +279 -0
- package/lib/types/magicalActions/MagicalRune.js +292 -0
- package/lib/types/magicalActions/ZibiljaRitual.d.ts +420 -0
- package/lib/types/magicalActions/ZibiljaRitual.js +90 -0
- package/lib/types/magicalActions/_MusicTradition.d.ts +17 -0
- package/lib/types/magicalActions/_MusicTradition.js +43 -0
- package/lib/types/prerequisites/ConditionalPrerequisites.d.ts +42 -0
- package/lib/types/prerequisites/ConditionalPrerequisites.js +9 -0
- package/lib/types/prerequisites/DisplayOption.d.ts +13 -0
- package/lib/types/prerequisites/DisplayOption.js +27 -0
- package/lib/types/prerequisites/PrerequisiteGroups.d.ts +2053 -0
- package/lib/types/prerequisites/PrerequisiteGroups.js +180 -0
- package/lib/types/prerequisites/single/ActivatablePrerequisite.d.ts +133 -0
- package/lib/types/prerequisites/single/ActivatablePrerequisite.js +32 -0
- package/lib/types/prerequisites/single/AncestorBloodPrerequisite.d.ts +4 -0
- package/lib/types/prerequisites/single/AncestorBloodPrerequisite.js +4 -0
- package/lib/types/prerequisites/single/AnimistPowerPrerequisite.d.ts +18 -0
- package/lib/types/prerequisites/single/AnimistPowerPrerequisite.js +24 -0
- package/lib/types/prerequisites/single/CulturePrerequisite.d.ts +16 -0
- package/lib/types/prerequisites/single/CulturePrerequisite.js +16 -0
- package/lib/types/prerequisites/single/EnhancementPrerequisite.d.ts +4 -0
- package/lib/types/prerequisites/single/EnhancementPrerequisite.js +12 -0
- package/lib/types/prerequisites/single/InfluencePrerequisite.d.ts +17 -0
- package/lib/types/prerequisites/single/InfluencePrerequisite.js +19 -0
- package/lib/types/prerequisites/single/PactPrerequisite.d.ts +18 -0
- package/lib/types/prerequisites/single/PactPrerequisite.js +24 -0
- package/lib/types/prerequisites/single/PersonalityTraitPrerequisite.d.ts +17 -0
- package/lib/types/prerequisites/single/PersonalityTraitPrerequisite.js +19 -0
- package/lib/types/prerequisites/single/PrimaryAttributePrerequisite.d.ts +20 -0
- package/lib/types/prerequisites/single/PrimaryAttributePrerequisite.js +25 -0
- package/lib/types/prerequisites/single/ProfessionPrerequisite.d.ts +16 -0
- package/lib/types/prerequisites/single/ProfessionPrerequisite.js +16 -0
- package/lib/types/prerequisites/single/PublicationPrerequisite.d.ts +16 -0
- package/lib/types/prerequisites/single/PublicationPrerequisite.js +15 -0
- package/lib/types/prerequisites/single/RacePrerequisite.d.ts +17 -0
- package/lib/types/prerequisites/single/RacePrerequisite.js +19 -0
- package/lib/types/prerequisites/single/RatedMinimumNumberPrerequisite.d.ts +51 -0
- package/lib/types/prerequisites/single/RatedMinimumNumberPrerequisite.js +82 -0
- package/lib/types/prerequisites/single/RatedPrerequisite.d.ts +26 -0
- package/lib/types/prerequisites/single/RatedPrerequisite.js +19 -0
- package/lib/types/prerequisites/single/RatedSumPrerequisite.d.ts +17 -0
- package/lib/types/prerequisites/single/RatedSumPrerequisite.js +19 -0
- package/lib/types/prerequisites/single/RulePrerequisite.d.ts +19 -0
- package/lib/types/prerequisites/single/RulePrerequisite.js +15 -0
- package/lib/types/prerequisites/single/SexPrerequisite.d.ts +19 -0
- package/lib/types/prerequisites/single/SexPrerequisite.js +15 -0
- package/lib/types/prerequisites/single/SexualCharacteristicPrerequisite.d.ts +7 -0
- package/lib/types/prerequisites/single/SexualCharacteristicPrerequisite.js +17 -0
- package/lib/types/prerequisites/single/SocialStatusPrerequisite.d.ts +16 -0
- package/lib/types/prerequisites/single/SocialStatusPrerequisite.js +16 -0
- package/lib/types/prerequisites/single/StatePrerequisite.d.ts +16 -0
- package/lib/types/prerequisites/single/StatePrerequisite.js +15 -0
- package/lib/types/prerequisites/single/TextPrerequisite.d.ts +19 -0
- package/lib/types/prerequisites/single/TextPrerequisite.js +53 -0
- package/lib/types/prerequisites/single/TraditionPrerequisite.d.ts +37 -0
- package/lib/types/prerequisites/single/TraditionPrerequisite.js +42 -0
- package/lib/types/rule/AlternativeRule.d.ts +54 -0
- package/lib/types/rule/AlternativeRule.js +40 -0
- package/lib/types/rule/AlternativeRule_PlayerType.d.ts +6 -0
- package/lib/types/rule/AlternativeRule_PlayerType.js +16 -0
- package/lib/types/rule/CoreRule.d.ts +143 -0
- package/lib/types/rule/CoreRule.js +181 -0
- package/lib/types/rule/FocusRule.d.ts +79 -0
- package/lib/types/rule/FocusRule.js +48 -0
- package/lib/types/rule/FocusRule_Subject.d.ts +6 -0
- package/lib/types/rule/FocusRule_Subject.js +22 -0
- package/lib/types/rule/OptionalRule.d.ts +83 -0
- package/lib/types/rule/OptionalRule.js +59 -0
- package/lib/types/source/Publication.d.ts +50 -0
- package/lib/types/source/Publication.js +64 -0
- package/lib/types/source/_Erratum.d.ts +12 -0
- package/lib/types/source/_Erratum.js +22 -0
- package/lib/types/source/_PublicationRef.d.ts +168 -0
- package/lib/types/source/_PublicationRef.js +164 -0
- package/lib/types/specialAbility/AdvancedCombatSpecialAbility.d.ts +1234 -0
- package/lib/types/specialAbility/AdvancedCombatSpecialAbility.js +52 -0
- package/lib/types/specialAbility/AdvancedKarmaSpecialAbility.d.ts +1116 -0
- package/lib/types/specialAbility/AdvancedKarmaSpecialAbility.js +47 -0
- package/lib/types/specialAbility/AdvancedMagicalSpecialAbility.d.ts +1116 -0
- package/lib/types/specialAbility/AdvancedMagicalSpecialAbility.js +47 -0
- package/lib/types/specialAbility/AdvancedSkillSpecialAbility.d.ts +1116 -0
- package/lib/types/specialAbility/AdvancedSkillSpecialAbility.js +47 -0
- package/lib/types/specialAbility/AncestorGlyph.d.ts +1063 -0
- package/lib/types/specialAbility/AncestorGlyph.js +48 -0
- package/lib/types/specialAbility/BlessedTradition.d.ts +1141 -0
- package/lib/types/specialAbility/BlessedTradition.js +147 -0
- package/lib/types/specialAbility/BrawlingSpecialAbility.d.ts +1127 -0
- package/lib/types/specialAbility/BrawlingSpecialAbility.js +46 -0
- package/lib/types/specialAbility/CeremonialItemSpecialAbility.d.ts +1117 -0
- package/lib/types/specialAbility/CeremonialItemSpecialAbility.js +53 -0
- package/lib/types/specialAbility/CombatSpecialAbility.d.ts +1235 -0
- package/lib/types/specialAbility/CombatSpecialAbility.js +52 -0
- package/lib/types/specialAbility/CombatStyleSpecialAbility.d.ts +1286 -0
- package/lib/types/specialAbility/CombatStyleSpecialAbility.js +54 -0
- package/lib/types/specialAbility/CommandSpecialAbility.d.ts +1127 -0
- package/lib/types/specialAbility/CommandSpecialAbility.js +46 -0
- package/lib/types/specialAbility/FamiliarSpecialAbility.d.ts +1062 -0
- package/lib/types/specialAbility/FamiliarSpecialAbility.js +43 -0
- package/lib/types/specialAbility/FatePointSexSpecialAbility.d.ts +1062 -0
- package/lib/types/specialAbility/FatePointSexSpecialAbility.js +43 -0
- package/lib/types/specialAbility/FatePointSpecialAbility.d.ts +1116 -0
- package/lib/types/specialAbility/FatePointSpecialAbility.js +46 -0
- package/lib/types/specialAbility/GeneralSpecialAbility.d.ts +1117 -0
- package/lib/types/specialAbility/GeneralSpecialAbility.js +47 -0
- package/lib/types/specialAbility/KarmaSpecialAbility.d.ts +1062 -0
- package/lib/types/specialAbility/KarmaSpecialAbility.js +43 -0
- package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.d.ts +1165 -0
- package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.js +49 -0
- package/lib/types/specialAbility/LycantropicGift.d.ts +1062 -0
- package/lib/types/specialAbility/LycantropicGift.js +43 -0
- package/lib/types/specialAbility/MagicStyleSpecialAbility.d.ts +1165 -0
- package/lib/types/specialAbility/MagicStyleSpecialAbility.js +49 -0
- package/lib/types/specialAbility/MagicalSign.d.ts +127 -0
- package/lib/types/specialAbility/MagicalSign.js +66 -0
- package/lib/types/specialAbility/MagicalSpecialAbility.d.ts +1117 -0
- package/lib/types/specialAbility/MagicalSpecialAbility.js +47 -0
- package/lib/types/specialAbility/MagicalTradition.d.ts +1138 -0
- package/lib/types/specialAbility/MagicalTradition.js +115 -0
- package/lib/types/specialAbility/PactGift.d.ts +1143 -0
- package/lib/types/specialAbility/PactGift.js +76 -0
- package/lib/types/specialAbility/ProtectiveWardingCircleSpecialAbility.d.ts +1064 -0
- package/lib/types/specialAbility/ProtectiveWardingCircleSpecialAbility.js +54 -0
- package/lib/types/specialAbility/Sermon.d.ts +1062 -0
- package/lib/types/specialAbility/Sermon.js +43 -0
- package/lib/types/specialAbility/SexSpecialAbility.d.ts +1116 -0
- package/lib/types/specialAbility/SexSpecialAbility.js +46 -0
- package/lib/types/specialAbility/SikaryanDrainSpecialAbility.d.ts +1062 -0
- package/lib/types/specialAbility/SikaryanDrainSpecialAbility.js +43 -0
- package/lib/types/specialAbility/SkillStyleSpecialAbility.d.ts +1111 -0
- package/lib/types/specialAbility/SkillStyleSpecialAbility.js +46 -0
- package/lib/types/specialAbility/VampiricGift.d.ts +1062 -0
- package/lib/types/specialAbility/VampiricGift.js +43 -0
- package/lib/types/specialAbility/Vision.d.ts +1062 -0
- package/lib/types/specialAbility/Vision.js +43 -0
- package/lib/types/specialAbility/_Tradition.d.ts +5 -0
- package/lib/types/specialAbility/_Tradition.js +14 -0
- package/lib/types/specialAbility/sub/Language.d.ts +108 -0
- package/lib/types/specialAbility/sub/Language.js +98 -0
- package/lib/types/specialAbility/sub/Script.d.ts +62 -0
- package/lib/types/specialAbility/sub/Script.js +50 -0
- package/lib/types/specialAbility/sub/TradeSecret.d.ts +972 -0
- package/lib/types/specialAbility/sub/TradeSecret.js +76 -0
- package/lib/types/specialAbility/sub/_LanguageScript.d.ts +5 -0
- package/lib/types/specialAbility/sub/_LanguageScript.js +15 -0
- package/lib/types/traditionArtifacts/ArcaneOrbEnchantment.d.ts +1282 -0
- package/lib/types/traditionArtifacts/ArcaneOrbEnchantment.js +50 -0
- package/lib/types/traditionArtifacts/AttireEnchantment.d.ts +1282 -0
- package/lib/types/traditionArtifacts/AttireEnchantment.js +50 -0
- package/lib/types/traditionArtifacts/Beutelzauber.d.ts +1282 -0
- package/lib/types/traditionArtifacts/Beutelzauber.js +50 -0
- package/lib/types/traditionArtifacts/BowlEnchantment.d.ts +1282 -0
- package/lib/types/traditionArtifacts/BowlEnchantment.js +50 -0
- package/lib/types/traditionArtifacts/CauldronEnchantment.d.ts +1283 -0
- package/lib/types/traditionArtifacts/CauldronEnchantment.js +55 -0
- package/lib/types/traditionArtifacts/ChronicleEnchantment.d.ts +1282 -0
- package/lib/types/traditionArtifacts/ChronicleEnchantment.js +50 -0
- package/lib/types/traditionArtifacts/DaggerRitual.d.ts +1294 -0
- package/lib/types/traditionArtifacts/DaggerRitual.js +85 -0
- package/lib/types/traditionArtifacts/FoolsHatEnchantment.d.ts +1282 -0
- package/lib/types/traditionArtifacts/FoolsHatEnchantment.js +52 -0
- package/lib/types/traditionArtifacts/Haubenzauber.d.ts +1282 -0
- package/lib/types/traditionArtifacts/Haubenzauber.js +50 -0
- package/lib/types/traditionArtifacts/InstrumentEnchantment.d.ts +1282 -0
- package/lib/types/traditionArtifacts/InstrumentEnchantment.js +50 -0
- package/lib/types/traditionArtifacts/Krallenkettenzauber.d.ts +1282 -0
- package/lib/types/traditionArtifacts/Krallenkettenzauber.js +50 -0
- package/lib/types/traditionArtifacts/Kristallkugelzauber.d.ts +1282 -0
- package/lib/types/traditionArtifacts/Kristallkugelzauber.js +50 -0
- package/lib/types/traditionArtifacts/OrbEnchantment.d.ts +1282 -0
- package/lib/types/traditionArtifacts/OrbEnchantment.js +50 -0
- package/lib/types/traditionArtifacts/RingEnchantment.d.ts +1282 -0
- package/lib/types/traditionArtifacts/RingEnchantment.js +50 -0
- package/lib/types/traditionArtifacts/SickleRitual.d.ts +1282 -0
- package/lib/types/traditionArtifacts/SickleRitual.js +50 -0
- package/lib/types/traditionArtifacts/SpellSwordEnchantment.d.ts +1282 -0
- package/lib/types/traditionArtifacts/SpellSwordEnchantment.js +50 -0
- package/lib/types/traditionArtifacts/StaffEnchantment.d.ts +1286 -0
- package/lib/types/traditionArtifacts/StaffEnchantment.js +55 -0
- package/lib/types/traditionArtifacts/ToyEnchantment.d.ts +1282 -0
- package/lib/types/traditionArtifacts/ToyEnchantment.js +50 -0
- package/lib/types/traditionArtifacts/Trinkhornzauber.d.ts +1282 -0
- package/lib/types/traditionArtifacts/Trinkhornzauber.js +50 -0
- package/lib/types/traditionArtifacts/WandEnchantment.d.ts +1231 -0
- package/lib/types/traditionArtifacts/WandEnchantment.js +49 -0
- package/lib/types/traditionArtifacts/WeaponEnchantment.d.ts +1282 -0
- package/lib/types/traditionArtifacts/WeaponEnchantment.js +50 -0
- package/lib/types/traditionArtifacts/sub/AnimalShape.d.ts +8 -0
- package/lib/types/traditionArtifacts/sub/AnimalShape.js +24 -0
- package/lib/types/traditionArtifacts/sub/AnimalShapePath.d.ts +6 -0
- package/lib/types/traditionArtifacts/sub/AnimalShapePath.js +15 -0
- package/lib/types/traditionArtifacts/sub/AnimalShapeSize.d.ts +8 -0
- package/lib/types/traditionArtifacts/sub/AnimalShapeSize.js +23 -0
- package/lib/types/traditionArtifacts/sub/Brew.d.ts +6 -0
- package/lib/types/traditionArtifacts/sub/Brew.js +15 -0
- package/package.json +61 -0
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import * as DB from "tsondb/schema/dsl";
|
|
2
|
+
export declare const IlluminationLightSource: DB.Entity<"IlluminationLightSource", {
|
|
3
|
+
cost: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"Cost", {
|
|
4
|
+
Free: DB.EnumCase<null>;
|
|
5
|
+
Various: DB.EnumCase<null>;
|
|
6
|
+
Invaluable: DB.EnumCase<null>;
|
|
7
|
+
Fixed: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"FixedCost", DB.Object<{
|
|
8
|
+
value: DB.MemberDecl<DB.Float, true>;
|
|
9
|
+
translations: DB.MemberDecl<DB.NestedEntityMap<"FixedCostTranslation", {
|
|
10
|
+
wrap_in_text: DB.MemberDecl<DB.String, true>;
|
|
11
|
+
}>, false>;
|
|
12
|
+
}>, []>>>;
|
|
13
|
+
Range: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"CostRange", DB.Object<{
|
|
14
|
+
from: DB.MemberDecl<DB.Float, true>;
|
|
15
|
+
to: DB.MemberDecl<DB.Float, true>;
|
|
16
|
+
translations: DB.MemberDecl<DB.NestedEntityMap<"CostRangeTranslation", {
|
|
17
|
+
wrap_in_text: DB.MemberDecl<DB.String, true>;
|
|
18
|
+
}>, false>;
|
|
19
|
+
}>, []>>>;
|
|
20
|
+
}, []>>, true>;
|
|
21
|
+
weight: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"Weight", DB.Float, []>>, true>;
|
|
22
|
+
complexity: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"Complexity", {
|
|
23
|
+
Primitive: DB.EnumCase<null>;
|
|
24
|
+
Simple: DB.EnumCase<null>;
|
|
25
|
+
Complex: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ComplexComplexity", DB.Object<{
|
|
26
|
+
ap_value: DB.MemberDecl<DB.Integer, true>;
|
|
27
|
+
}>, []>>>;
|
|
28
|
+
}, []>>, false>;
|
|
29
|
+
structure_points: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"StructurePoints", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"StructurePointsComponent", DB.Object<{
|
|
30
|
+
points: DB.MemberDecl<DB.Integer, true>;
|
|
31
|
+
}>, []>>>, []>>, true>;
|
|
32
|
+
burning_time: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"BurningTime", {
|
|
33
|
+
Unlimited: DB.EnumCase<null>;
|
|
34
|
+
Limited: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"LimitedBurningTime", DB.Object<{
|
|
35
|
+
value: DB.MemberDecl<DB.Float, true>;
|
|
36
|
+
unit: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"LimitedBurningTimeUnit", {
|
|
37
|
+
Hours: DB.EnumCase<null>;
|
|
38
|
+
}, []>>, true>;
|
|
39
|
+
}>, []>>>;
|
|
40
|
+
}, []>>, true>;
|
|
41
|
+
combat_use: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"CombatUse", {
|
|
42
|
+
Weapon: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ImprovisedWeapon", DB.Object<{
|
|
43
|
+
melee_uses: DB.MemberDecl<DB.NestedEntityMap<string, {
|
|
44
|
+
damage: DB.MemberDecl<DB.TypeArgument<DB.Param<"Damage", DB.Type>>, true>;
|
|
45
|
+
damage_threshold: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"PrimaryAttributeDamageThreshold", {
|
|
46
|
+
Default: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"DefaultPrimaryAttributeDamageThreshold", DB.Object<{
|
|
47
|
+
threshold: DB.MemberDecl<DB.Integer, true>;
|
|
48
|
+
}>, []>>>;
|
|
49
|
+
List: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"PrimaryAttributeDamageThresholdList", DB.Object<{
|
|
50
|
+
list: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SinglePrimaryAttributeDamageThreshold", DB.Object<{
|
|
51
|
+
attribute: DB.MemberDecl<DB.ReferenceIdentifier, true>;
|
|
52
|
+
threshold: DB.MemberDecl<DB.Integer, true>;
|
|
53
|
+
}>, []>>>, true>;
|
|
54
|
+
}>, []>>>;
|
|
55
|
+
}, []>>, false>;
|
|
56
|
+
attackModifier: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"AttackModifier", DB.Integer, []>>, false>;
|
|
57
|
+
parryModifier: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ParryModifier", DB.Integer, []>>, false>;
|
|
58
|
+
reach: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, false>;
|
|
59
|
+
length: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"Length", DB.Integer, []>>, false>;
|
|
60
|
+
size: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"ShieldSize", {
|
|
61
|
+
Small: DB.EnumCase<null>;
|
|
62
|
+
Medium: DB.EnumCase<null>;
|
|
63
|
+
Large: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"LargeShieldSize", DB.Object<{
|
|
64
|
+
attack_penalty: DB.MemberDecl<DB.Integer, false>;
|
|
65
|
+
}>, []>>>;
|
|
66
|
+
}, []>>, false>;
|
|
67
|
+
is_parrying_weapon: DB.MemberDecl<DB.Boolean, true>;
|
|
68
|
+
is_two_handed_weapon: DB.MemberDecl<DB.Boolean, true>;
|
|
69
|
+
is_improvised_weapon: DB.MemberDecl<DB.Boolean, true>;
|
|
70
|
+
}>, false>;
|
|
71
|
+
ranged_uses: DB.MemberDecl<DB.NestedEntityMap<string, {
|
|
72
|
+
damage: DB.MemberDecl<DB.TypeArgument<DB.Param<"Damage", DB.Type>>, true>;
|
|
73
|
+
reload_time: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"ReloadTime", DB.Object<{
|
|
74
|
+
value: DB.MemberDecl<DB.Integer, true>;
|
|
75
|
+
}>, []>>>, true>;
|
|
76
|
+
range: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"RangeBrackets", DB.Object<{
|
|
77
|
+
close: DB.MemberDecl<DB.Integer, true>;
|
|
78
|
+
medium: DB.MemberDecl<DB.Integer, true>;
|
|
79
|
+
far: DB.MemberDecl<DB.Integer, true>;
|
|
80
|
+
}>, []>>, true>;
|
|
81
|
+
ammunition: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"AmmunitionishIdentifier", {
|
|
82
|
+
Ammunition: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
83
|
+
Weapon: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
84
|
+
}, []>>, false>;
|
|
85
|
+
length: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"Length", DB.Integer, []>>, false>;
|
|
86
|
+
is_improvised_weapon: DB.MemberDecl<DB.Boolean, true>;
|
|
87
|
+
}>, false>;
|
|
88
|
+
restrictedTo: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"RestrictedTo", DB.Object<{
|
|
89
|
+
races: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"RestrictedToRaces", DB.Object<{
|
|
90
|
+
scope: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
|
|
91
|
+
}>, []>>, false>;
|
|
92
|
+
cultures: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"RestrictedToCultures", DB.Object<{
|
|
93
|
+
scope: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
|
|
94
|
+
}>, []>>, false>;
|
|
95
|
+
professions: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"RestrictedToProfessions", DB.Object<{
|
|
96
|
+
scope: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
|
|
97
|
+
}>, []>>, false>;
|
|
98
|
+
magicalTraditions: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"RestrictedToMagicalTraditions", DB.Object<{
|
|
99
|
+
scope: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
|
|
100
|
+
}>, []>>, false>;
|
|
101
|
+
blessedTraditions: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"RestrictedToBlessedTraditions", DB.Object<{
|
|
102
|
+
scope: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"RestrictedToBlessedTraditionsScope", {
|
|
103
|
+
Specific: DB.EnumCase<DB.Array<DB.ReferenceIdentifier>>;
|
|
104
|
+
Church: DB.EnumCase<null>;
|
|
105
|
+
Shamanistic: DB.EnumCase<null>;
|
|
106
|
+
}, []>>, true>;
|
|
107
|
+
isSanctifiedBy: DB.MemberDecl<DB.Boolean, true>;
|
|
108
|
+
}>, []>>, false>;
|
|
109
|
+
}>, []>>, false>;
|
|
110
|
+
translations: DB.MemberDecl<DB.NestedEntityMap<"ImprovisedWeaponTranslation", {
|
|
111
|
+
advantage: DB.MemberDecl<DB.String, false>;
|
|
112
|
+
disadvantage: DB.MemberDecl<DB.String, false>;
|
|
113
|
+
}>, false>;
|
|
114
|
+
}>, []>>>;
|
|
115
|
+
Armor: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"SecondaryArmor", DB.Object<{
|
|
116
|
+
protection: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"Protection", DB.Integer, []>>, true>;
|
|
117
|
+
encumbrance: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"Encumbrance", DB.Integer, []>>, true>;
|
|
118
|
+
has_additional_penalties: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"HasAdditionalPenalties", DB.Boolean, []>>, true>;
|
|
119
|
+
armor_type: DB.MemberDecl<DB.ReferenceIdentifier, true>;
|
|
120
|
+
hit_zone: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"HitZone", {
|
|
121
|
+
Head: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"HeadHitZone", DB.Object<{
|
|
122
|
+
combination_possibilities: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"HeadHitZoneCombinationPossibilities", DB.Object<{
|
|
123
|
+
armors: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
|
|
124
|
+
protection: DB.MemberDecl<DB.Integer, false>;
|
|
125
|
+
}>, []>>, false>;
|
|
126
|
+
}>, []>>>;
|
|
127
|
+
Torso: DB.EnumCase<null>;
|
|
128
|
+
Arms: DB.EnumCase<null>;
|
|
129
|
+
Legs: DB.EnumCase<null>;
|
|
130
|
+
}, []>>, false>;
|
|
131
|
+
restrictedTo: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"RestrictedTo", DB.Object<{
|
|
132
|
+
races: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"RestrictedToRaces", DB.Object<{
|
|
133
|
+
scope: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
|
|
134
|
+
}>, []>>, false>;
|
|
135
|
+
cultures: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"RestrictedToCultures", DB.Object<{
|
|
136
|
+
scope: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
|
|
137
|
+
}>, []>>, false>;
|
|
138
|
+
professions: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"RestrictedToProfessions", DB.Object<{
|
|
139
|
+
scope: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
|
|
140
|
+
}>, []>>, false>;
|
|
141
|
+
magicalTraditions: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"RestrictedToMagicalTraditions", DB.Object<{
|
|
142
|
+
scope: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
|
|
143
|
+
}>, []>>, false>;
|
|
144
|
+
blessedTraditions: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"RestrictedToBlessedTraditions", DB.Object<{
|
|
145
|
+
scope: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"RestrictedToBlessedTraditionsScope", {
|
|
146
|
+
Specific: DB.EnumCase<DB.Array<DB.ReferenceIdentifier>>;
|
|
147
|
+
Church: DB.EnumCase<null>;
|
|
148
|
+
Shamanistic: DB.EnumCase<null>;
|
|
149
|
+
}, []>>, true>;
|
|
150
|
+
isSanctifiedBy: DB.MemberDecl<DB.Boolean, true>;
|
|
151
|
+
}>, []>>, false>;
|
|
152
|
+
}>, []>>, false>;
|
|
153
|
+
translations: DB.MemberDecl<DB.NestedEntityMap<"SecondaryArmorTranslation", {
|
|
154
|
+
advantage: DB.MemberDecl<DB.String, false>;
|
|
155
|
+
disadvantage: DB.MemberDecl<DB.String, false>;
|
|
156
|
+
}>, false>;
|
|
157
|
+
}>, []>>>;
|
|
158
|
+
}, []>>, false>;
|
|
159
|
+
src: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"PublicationRefs", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"PublicationRef", DB.Object<{
|
|
160
|
+
id: DB.MemberDecl<DB.ReferenceIdentifier, true>;
|
|
161
|
+
occurrences: DB.MemberDecl<DB.NestedEntityMap<string, {
|
|
162
|
+
initial: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"InitialOccurrence", DB.Object<{
|
|
163
|
+
printing: DB.MemberDecl<DB.Integer, false>;
|
|
164
|
+
pages: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"PageRange", DB.Object<{
|
|
165
|
+
first_page: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"Page", {
|
|
166
|
+
InsideCoverFront: DB.EnumCase<null>;
|
|
167
|
+
InsideCoverBack: DB.EnumCase<null>;
|
|
168
|
+
Numbered: DB.EnumCase<DB.Integer>;
|
|
169
|
+
}, []>>, true>;
|
|
170
|
+
last_page: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"Page", {
|
|
171
|
+
InsideCoverFront: DB.EnumCase<null>;
|
|
172
|
+
InsideCoverBack: DB.EnumCase<null>;
|
|
173
|
+
Numbered: DB.EnumCase<DB.Integer>;
|
|
174
|
+
}, []>>, false>;
|
|
175
|
+
}>, []>>>, true>;
|
|
176
|
+
isRemoved: DB.MemberDecl<DB.Boolean, false>;
|
|
177
|
+
}>, []>>, true>;
|
|
178
|
+
revisions: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.Enum<"Revision", {
|
|
179
|
+
Since: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"Since", DB.Object<{
|
|
180
|
+
printing: DB.MemberDecl<DB.Integer, true>;
|
|
181
|
+
pages: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"PageRange", DB.Object<{
|
|
182
|
+
first_page: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"Page", {
|
|
183
|
+
InsideCoverFront: DB.EnumCase<null>;
|
|
184
|
+
InsideCoverBack: DB.EnumCase<null>;
|
|
185
|
+
Numbered: DB.EnumCase<DB.Integer>;
|
|
186
|
+
}, []>>, true>;
|
|
187
|
+
last_page: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"Page", {
|
|
188
|
+
InsideCoverFront: DB.EnumCase<null>;
|
|
189
|
+
InsideCoverBack: DB.EnumCase<null>;
|
|
190
|
+
Numbered: DB.EnumCase<DB.Integer>;
|
|
191
|
+
}, []>>, false>;
|
|
192
|
+
}>, []>>>, true>;
|
|
193
|
+
}>, []>>>;
|
|
194
|
+
Deprecated: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"Deprecation", DB.Object<{
|
|
195
|
+
printing: DB.MemberDecl<DB.Integer, true>;
|
|
196
|
+
}>, []>>>;
|
|
197
|
+
}, []>>>, false>;
|
|
198
|
+
}>, true>;
|
|
199
|
+
}>, []>>>, []>>, true>;
|
|
200
|
+
translations: DB.MemberDecl<DB.NestedEntityMap<`${string}Translation`, {
|
|
201
|
+
name: DB.MemberDecl<DB.String, true>;
|
|
202
|
+
secondary_name: DB.MemberDecl<DB.String, false>;
|
|
203
|
+
note: DB.MemberDecl<DB.String, false>;
|
|
204
|
+
rules: DB.MemberDecl<DB.String, false>;
|
|
205
|
+
errata: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"Errata", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"Erratum", DB.Object<{
|
|
206
|
+
date: DB.MemberDecl<DB.Date, true>;
|
|
207
|
+
description: DB.MemberDecl<DB.String, true>;
|
|
208
|
+
}>, []>>>, []>>, false>;
|
|
209
|
+
}>, true>;
|
|
210
|
+
}, undefined>;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import * as DB from "tsondb/schema/dsl";
|
|
2
|
+
import { src } from "../../source/_PublicationRef.js";
|
|
3
|
+
import { CombatUse, Complexity, Cost, DefaultItemTranslations, StructurePoints, Weight, } from "./_Item.js";
|
|
4
|
+
import { checkWeaponCombatTechniqueIntegrity } from "./_Weapon.js";
|
|
5
|
+
export const IlluminationLightSource = DB.Entity(import.meta.url, {
|
|
6
|
+
name: "IlluminationLightSource",
|
|
7
|
+
namePlural: "IlluminationLightSources",
|
|
8
|
+
type: () => DB.Object({
|
|
9
|
+
cost: DB.Required({
|
|
10
|
+
comment: "The cost in silverthalers.",
|
|
11
|
+
type: DB.IncludeIdentifier(Cost),
|
|
12
|
+
}),
|
|
13
|
+
weight: DB.Required({
|
|
14
|
+
comment: "The weight in kg.",
|
|
15
|
+
type: DB.IncludeIdentifier(Weight),
|
|
16
|
+
}),
|
|
17
|
+
complexity: DB.Optional({
|
|
18
|
+
comment: "The complexity of crafting the item.",
|
|
19
|
+
type: DB.IncludeIdentifier(Complexity),
|
|
20
|
+
}),
|
|
21
|
+
structure_points: DB.Required({
|
|
22
|
+
comment: "The structure points of the item. Use an array if the item consists of multiple components that have individual structure points.",
|
|
23
|
+
type: DB.IncludeIdentifier(StructurePoints),
|
|
24
|
+
}),
|
|
25
|
+
burning_time: DB.Required({
|
|
26
|
+
comment: "The burning time is the time how long the light source can be lit. After that time you have to use a new light source.",
|
|
27
|
+
type: DB.IncludeIdentifier(BurningTime),
|
|
28
|
+
}),
|
|
29
|
+
combat_use: DB.Optional({
|
|
30
|
+
comment: "The item can also be used either as an improvised weapon or as an armor, although this is not the primary use case of the item.",
|
|
31
|
+
type: DB.IncludeIdentifier(CombatUse),
|
|
32
|
+
}),
|
|
33
|
+
src,
|
|
34
|
+
translations: DefaultItemTranslations("IlluminationLightSource"),
|
|
35
|
+
}),
|
|
36
|
+
instanceDisplayName: {},
|
|
37
|
+
uniqueConstraints: [
|
|
38
|
+
{
|
|
39
|
+
entityMapKeyPath: "translations",
|
|
40
|
+
keyPathInEntityMap: "name",
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
customConstraints: ({ instanceContent, ...rest }) => {
|
|
44
|
+
if (instanceContent.combat_use && instanceContent.combat_use.kind === "Weapon") {
|
|
45
|
+
return checkWeaponCombatTechniqueIntegrity({
|
|
46
|
+
...rest,
|
|
47
|
+
instanceContent: instanceContent.combat_use.Weapon,
|
|
48
|
+
}, { secondary: true });
|
|
49
|
+
}
|
|
50
|
+
return [];
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
const BurningTime = DB.Enum(import.meta.url, {
|
|
54
|
+
name: "BurningTime",
|
|
55
|
+
values: () => ({
|
|
56
|
+
Unlimited: DB.EnumCase({ type: null }),
|
|
57
|
+
Limited: DB.EnumCase({ type: DB.IncludeIdentifier(LimitedBurningTime) }),
|
|
58
|
+
}),
|
|
59
|
+
});
|
|
60
|
+
const LimitedBurningTime = DB.TypeAlias(import.meta.url, {
|
|
61
|
+
name: "LimitedBurningTime",
|
|
62
|
+
type: () => DB.Object({
|
|
63
|
+
value: DB.Required({
|
|
64
|
+
comment: "The (unitless) time value.",
|
|
65
|
+
type: DB.Float({ minimum: { value: 0, isExclusive: true } }),
|
|
66
|
+
}),
|
|
67
|
+
unit: DB.Required({
|
|
68
|
+
comment: "The time unit.",
|
|
69
|
+
type: DB.IncludeIdentifier(LimitedBurningTimeUnit),
|
|
70
|
+
}),
|
|
71
|
+
}),
|
|
72
|
+
});
|
|
73
|
+
const LimitedBurningTimeUnit = DB.Enum(import.meta.url, {
|
|
74
|
+
name: "LimitedBurningTimeUnit",
|
|
75
|
+
values: () => ({
|
|
76
|
+
Hours: DB.EnumCase({ type: null }),
|
|
77
|
+
}),
|
|
78
|
+
});
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import * as DB from "tsondb/schema/dsl";
|
|
2
|
+
export declare const IlluminationRefillOrSupply: DB.Entity<"IlluminationRefillOrSupply", {
|
|
3
|
+
cost: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"Cost", {
|
|
4
|
+
Free: DB.EnumCase<null>;
|
|
5
|
+
Various: DB.EnumCase<null>;
|
|
6
|
+
Invaluable: DB.EnumCase<null>;
|
|
7
|
+
Fixed: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"FixedCost", DB.Object<{
|
|
8
|
+
value: DB.MemberDecl<DB.Float, true>;
|
|
9
|
+
translations: DB.MemberDecl<DB.NestedEntityMap<"FixedCostTranslation", {
|
|
10
|
+
wrap_in_text: DB.MemberDecl<DB.String, true>;
|
|
11
|
+
}>, false>;
|
|
12
|
+
}>, []>>>;
|
|
13
|
+
Range: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"CostRange", DB.Object<{
|
|
14
|
+
from: DB.MemberDecl<DB.Float, true>;
|
|
15
|
+
to: DB.MemberDecl<DB.Float, true>;
|
|
16
|
+
translations: DB.MemberDecl<DB.NestedEntityMap<"CostRangeTranslation", {
|
|
17
|
+
wrap_in_text: DB.MemberDecl<DB.String, true>;
|
|
18
|
+
}>, false>;
|
|
19
|
+
}>, []>>>;
|
|
20
|
+
}, []>>, true>;
|
|
21
|
+
weight: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"Weight", DB.Float, []>>, true>;
|
|
22
|
+
complexity: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"Complexity", {
|
|
23
|
+
Primitive: DB.EnumCase<null>;
|
|
24
|
+
Simple: DB.EnumCase<null>;
|
|
25
|
+
Complex: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ComplexComplexity", DB.Object<{
|
|
26
|
+
ap_value: DB.MemberDecl<DB.Integer, true>;
|
|
27
|
+
}>, []>>>;
|
|
28
|
+
}, []>>, false>;
|
|
29
|
+
structure_points: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"StructurePoints", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"StructurePointsComponent", DB.Object<{
|
|
30
|
+
points: DB.MemberDecl<DB.Integer, true>;
|
|
31
|
+
}>, []>>>, []>>, false>;
|
|
32
|
+
combat_use: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"CombatUse", {
|
|
33
|
+
Weapon: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ImprovisedWeapon", DB.Object<{
|
|
34
|
+
melee_uses: DB.MemberDecl<DB.NestedEntityMap<string, {
|
|
35
|
+
damage: DB.MemberDecl<DB.TypeArgument<DB.Param<"Damage", DB.Type>>, true>;
|
|
36
|
+
damage_threshold: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"PrimaryAttributeDamageThreshold", {
|
|
37
|
+
Default: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"DefaultPrimaryAttributeDamageThreshold", DB.Object<{
|
|
38
|
+
threshold: DB.MemberDecl<DB.Integer, true>;
|
|
39
|
+
}>, []>>>;
|
|
40
|
+
List: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"PrimaryAttributeDamageThresholdList", DB.Object<{
|
|
41
|
+
list: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SinglePrimaryAttributeDamageThreshold", DB.Object<{
|
|
42
|
+
attribute: DB.MemberDecl<DB.ReferenceIdentifier, true>;
|
|
43
|
+
threshold: DB.MemberDecl<DB.Integer, true>;
|
|
44
|
+
}>, []>>>, true>;
|
|
45
|
+
}>, []>>>;
|
|
46
|
+
}, []>>, false>;
|
|
47
|
+
attackModifier: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"AttackModifier", DB.Integer, []>>, false>;
|
|
48
|
+
parryModifier: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ParryModifier", DB.Integer, []>>, false>;
|
|
49
|
+
reach: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, false>;
|
|
50
|
+
length: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"Length", DB.Integer, []>>, false>;
|
|
51
|
+
size: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"ShieldSize", {
|
|
52
|
+
Small: DB.EnumCase<null>;
|
|
53
|
+
Medium: DB.EnumCase<null>;
|
|
54
|
+
Large: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"LargeShieldSize", DB.Object<{
|
|
55
|
+
attack_penalty: DB.MemberDecl<DB.Integer, false>;
|
|
56
|
+
}>, []>>>;
|
|
57
|
+
}, []>>, false>;
|
|
58
|
+
is_parrying_weapon: DB.MemberDecl<DB.Boolean, true>;
|
|
59
|
+
is_two_handed_weapon: DB.MemberDecl<DB.Boolean, true>;
|
|
60
|
+
is_improvised_weapon: DB.MemberDecl<DB.Boolean, true>;
|
|
61
|
+
}>, false>;
|
|
62
|
+
ranged_uses: DB.MemberDecl<DB.NestedEntityMap<string, {
|
|
63
|
+
damage: DB.MemberDecl<DB.TypeArgument<DB.Param<"Damage", DB.Type>>, true>;
|
|
64
|
+
reload_time: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"ReloadTime", DB.Object<{
|
|
65
|
+
value: DB.MemberDecl<DB.Integer, true>;
|
|
66
|
+
}>, []>>>, true>;
|
|
67
|
+
range: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"RangeBrackets", DB.Object<{
|
|
68
|
+
close: DB.MemberDecl<DB.Integer, true>;
|
|
69
|
+
medium: DB.MemberDecl<DB.Integer, true>;
|
|
70
|
+
far: DB.MemberDecl<DB.Integer, true>;
|
|
71
|
+
}>, []>>, true>;
|
|
72
|
+
ammunition: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"AmmunitionishIdentifier", {
|
|
73
|
+
Ammunition: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
74
|
+
Weapon: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
75
|
+
}, []>>, false>;
|
|
76
|
+
length: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"Length", DB.Integer, []>>, false>;
|
|
77
|
+
is_improvised_weapon: DB.MemberDecl<DB.Boolean, true>;
|
|
78
|
+
}>, false>;
|
|
79
|
+
restrictedTo: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"RestrictedTo", DB.Object<{
|
|
80
|
+
races: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"RestrictedToRaces", DB.Object<{
|
|
81
|
+
scope: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
|
|
82
|
+
}>, []>>, false>;
|
|
83
|
+
cultures: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"RestrictedToCultures", DB.Object<{
|
|
84
|
+
scope: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
|
|
85
|
+
}>, []>>, false>;
|
|
86
|
+
professions: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"RestrictedToProfessions", DB.Object<{
|
|
87
|
+
scope: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
|
|
88
|
+
}>, []>>, false>;
|
|
89
|
+
magicalTraditions: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"RestrictedToMagicalTraditions", DB.Object<{
|
|
90
|
+
scope: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
|
|
91
|
+
}>, []>>, false>;
|
|
92
|
+
blessedTraditions: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"RestrictedToBlessedTraditions", DB.Object<{
|
|
93
|
+
scope: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"RestrictedToBlessedTraditionsScope", {
|
|
94
|
+
Specific: DB.EnumCase<DB.Array<DB.ReferenceIdentifier>>;
|
|
95
|
+
Church: DB.EnumCase<null>;
|
|
96
|
+
Shamanistic: DB.EnumCase<null>;
|
|
97
|
+
}, []>>, true>;
|
|
98
|
+
isSanctifiedBy: DB.MemberDecl<DB.Boolean, true>;
|
|
99
|
+
}>, []>>, false>;
|
|
100
|
+
}>, []>>, false>;
|
|
101
|
+
translations: DB.MemberDecl<DB.NestedEntityMap<"ImprovisedWeaponTranslation", {
|
|
102
|
+
advantage: DB.MemberDecl<DB.String, false>;
|
|
103
|
+
disadvantage: DB.MemberDecl<DB.String, false>;
|
|
104
|
+
}>, false>;
|
|
105
|
+
}>, []>>>;
|
|
106
|
+
Armor: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"SecondaryArmor", DB.Object<{
|
|
107
|
+
protection: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"Protection", DB.Integer, []>>, true>;
|
|
108
|
+
encumbrance: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"Encumbrance", DB.Integer, []>>, true>;
|
|
109
|
+
has_additional_penalties: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"HasAdditionalPenalties", DB.Boolean, []>>, true>;
|
|
110
|
+
armor_type: DB.MemberDecl<DB.ReferenceIdentifier, true>;
|
|
111
|
+
hit_zone: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"HitZone", {
|
|
112
|
+
Head: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"HeadHitZone", DB.Object<{
|
|
113
|
+
combination_possibilities: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"HeadHitZoneCombinationPossibilities", DB.Object<{
|
|
114
|
+
armors: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
|
|
115
|
+
protection: DB.MemberDecl<DB.Integer, false>;
|
|
116
|
+
}>, []>>, false>;
|
|
117
|
+
}>, []>>>;
|
|
118
|
+
Torso: DB.EnumCase<null>;
|
|
119
|
+
Arms: DB.EnumCase<null>;
|
|
120
|
+
Legs: DB.EnumCase<null>;
|
|
121
|
+
}, []>>, false>;
|
|
122
|
+
restrictedTo: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"RestrictedTo", DB.Object<{
|
|
123
|
+
races: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"RestrictedToRaces", DB.Object<{
|
|
124
|
+
scope: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
|
|
125
|
+
}>, []>>, false>;
|
|
126
|
+
cultures: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"RestrictedToCultures", DB.Object<{
|
|
127
|
+
scope: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
|
|
128
|
+
}>, []>>, false>;
|
|
129
|
+
professions: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"RestrictedToProfessions", DB.Object<{
|
|
130
|
+
scope: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
|
|
131
|
+
}>, []>>, false>;
|
|
132
|
+
magicalTraditions: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"RestrictedToMagicalTraditions", DB.Object<{
|
|
133
|
+
scope: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
|
|
134
|
+
}>, []>>, false>;
|
|
135
|
+
blessedTraditions: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"RestrictedToBlessedTraditions", DB.Object<{
|
|
136
|
+
scope: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"RestrictedToBlessedTraditionsScope", {
|
|
137
|
+
Specific: DB.EnumCase<DB.Array<DB.ReferenceIdentifier>>;
|
|
138
|
+
Church: DB.EnumCase<null>;
|
|
139
|
+
Shamanistic: DB.EnumCase<null>;
|
|
140
|
+
}, []>>, true>;
|
|
141
|
+
isSanctifiedBy: DB.MemberDecl<DB.Boolean, true>;
|
|
142
|
+
}>, []>>, false>;
|
|
143
|
+
}>, []>>, false>;
|
|
144
|
+
translations: DB.MemberDecl<DB.NestedEntityMap<"SecondaryArmorTranslation", {
|
|
145
|
+
advantage: DB.MemberDecl<DB.String, false>;
|
|
146
|
+
disadvantage: DB.MemberDecl<DB.String, false>;
|
|
147
|
+
}>, false>;
|
|
148
|
+
}>, []>>>;
|
|
149
|
+
}, []>>, false>;
|
|
150
|
+
src: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"PublicationRefs", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"PublicationRef", DB.Object<{
|
|
151
|
+
id: DB.MemberDecl<DB.ReferenceIdentifier, true>;
|
|
152
|
+
occurrences: DB.MemberDecl<DB.NestedEntityMap<string, {
|
|
153
|
+
initial: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"InitialOccurrence", DB.Object<{
|
|
154
|
+
printing: DB.MemberDecl<DB.Integer, false>;
|
|
155
|
+
pages: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"PageRange", DB.Object<{
|
|
156
|
+
first_page: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"Page", {
|
|
157
|
+
InsideCoverFront: DB.EnumCase<null>;
|
|
158
|
+
InsideCoverBack: DB.EnumCase<null>;
|
|
159
|
+
Numbered: DB.EnumCase<DB.Integer>;
|
|
160
|
+
}, []>>, true>;
|
|
161
|
+
last_page: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"Page", {
|
|
162
|
+
InsideCoverFront: DB.EnumCase<null>;
|
|
163
|
+
InsideCoverBack: DB.EnumCase<null>;
|
|
164
|
+
Numbered: DB.EnumCase<DB.Integer>;
|
|
165
|
+
}, []>>, false>;
|
|
166
|
+
}>, []>>>, true>;
|
|
167
|
+
isRemoved: DB.MemberDecl<DB.Boolean, false>;
|
|
168
|
+
}>, []>>, true>;
|
|
169
|
+
revisions: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.Enum<"Revision", {
|
|
170
|
+
Since: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"Since", DB.Object<{
|
|
171
|
+
printing: DB.MemberDecl<DB.Integer, true>;
|
|
172
|
+
pages: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"PageRange", DB.Object<{
|
|
173
|
+
first_page: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"Page", {
|
|
174
|
+
InsideCoverFront: DB.EnumCase<null>;
|
|
175
|
+
InsideCoverBack: DB.EnumCase<null>;
|
|
176
|
+
Numbered: DB.EnumCase<DB.Integer>;
|
|
177
|
+
}, []>>, true>;
|
|
178
|
+
last_page: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"Page", {
|
|
179
|
+
InsideCoverFront: DB.EnumCase<null>;
|
|
180
|
+
InsideCoverBack: DB.EnumCase<null>;
|
|
181
|
+
Numbered: DB.EnumCase<DB.Integer>;
|
|
182
|
+
}, []>>, false>;
|
|
183
|
+
}>, []>>>, true>;
|
|
184
|
+
}>, []>>>;
|
|
185
|
+
Deprecated: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"Deprecation", DB.Object<{
|
|
186
|
+
printing: DB.MemberDecl<DB.Integer, true>;
|
|
187
|
+
}>, []>>>;
|
|
188
|
+
}, []>>>, false>;
|
|
189
|
+
}>, true>;
|
|
190
|
+
}>, []>>>, []>>, true>;
|
|
191
|
+
translations: DB.MemberDecl<DB.NestedEntityMap<`${string}Translation`, {
|
|
192
|
+
name: DB.MemberDecl<DB.String, true>;
|
|
193
|
+
secondary_name: DB.MemberDecl<DB.String, false>;
|
|
194
|
+
note: DB.MemberDecl<DB.String, false>;
|
|
195
|
+
rules: DB.MemberDecl<DB.String, false>;
|
|
196
|
+
errata: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"Errata", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"Erratum", DB.Object<{
|
|
197
|
+
date: DB.MemberDecl<DB.Date, true>;
|
|
198
|
+
description: DB.MemberDecl<DB.String, true>;
|
|
199
|
+
}>, []>>>, []>>, false>;
|
|
200
|
+
}>, true>;
|
|
201
|
+
}, undefined>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as DB from "tsondb/schema/dsl";
|
|
2
|
+
import { src } from "../../source/_PublicationRef.js";
|
|
3
|
+
import { CombatUse, Complexity, Cost, DefaultItemTranslations, StructurePoints, Weight, } from "./_Item.js";
|
|
4
|
+
import { checkWeaponCombatTechniqueIntegrity } from "./_Weapon.js";
|
|
5
|
+
export const IlluminationRefillOrSupply = DB.Entity(import.meta.url, {
|
|
6
|
+
name: "IlluminationRefillOrSupply",
|
|
7
|
+
namePlural: "IlluminationRefillsAndSupplies",
|
|
8
|
+
type: () => DB.Object({
|
|
9
|
+
cost: DB.Required({
|
|
10
|
+
comment: "The cost in silverthalers.",
|
|
11
|
+
type: DB.IncludeIdentifier(Cost),
|
|
12
|
+
}),
|
|
13
|
+
weight: DB.Required({
|
|
14
|
+
comment: "The weight in kg.",
|
|
15
|
+
type: DB.IncludeIdentifier(Weight),
|
|
16
|
+
}),
|
|
17
|
+
complexity: DB.Optional({
|
|
18
|
+
comment: "The complexity of crafting the item.",
|
|
19
|
+
type: DB.IncludeIdentifier(Complexity),
|
|
20
|
+
}),
|
|
21
|
+
structure_points: DB.Optional({
|
|
22
|
+
comment: "The structure points of the item. Use an array if the item consists of multiple components that have individual structure points.",
|
|
23
|
+
type: DB.IncludeIdentifier(StructurePoints),
|
|
24
|
+
}),
|
|
25
|
+
combat_use: DB.Optional({
|
|
26
|
+
comment: "The item can also be used either as an improvised weapon or as an armor, although this is not the primary use case of the item.",
|
|
27
|
+
type: DB.IncludeIdentifier(CombatUse),
|
|
28
|
+
}),
|
|
29
|
+
src,
|
|
30
|
+
translations: DefaultItemTranslations("IlluminationRefillOrSupply"),
|
|
31
|
+
}),
|
|
32
|
+
instanceDisplayName: {},
|
|
33
|
+
uniqueConstraints: [
|
|
34
|
+
{
|
|
35
|
+
entityMapKeyPath: "translations",
|
|
36
|
+
keyPathInEntityMap: "name",
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
customConstraints: ({ instanceContent, ...rest }) => {
|
|
40
|
+
if (instanceContent.combat_use && instanceContent.combat_use.kind === "Weapon") {
|
|
41
|
+
return checkWeaponCombatTechniqueIntegrity({
|
|
42
|
+
...rest,
|
|
43
|
+
instanceContent: instanceContent.combat_use.Weapon,
|
|
44
|
+
}, { secondary: true });
|
|
45
|
+
}
|
|
46
|
+
return [];
|
|
47
|
+
},
|
|
48
|
+
});
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import * as DB from "tsondb/schema/dsl";
|
|
2
|
+
export declare const Jewelry: DB.Entity<"Jewelry", {
|
|
3
|
+
cost: DB.MemberDecl<DB.IncludeIdentifier<DB.Param<string, DB.Type>[], DB.TypeAlias<"JewelryMaterialDifference", DB.Object<{
|
|
4
|
+
bronze: DB.MemberDecl<DB.TypeArgument<DB.Param<"T", DB.Type>>, true>;
|
|
5
|
+
silver: DB.MemberDecl<DB.TypeArgument<DB.Param<"T", DB.Type>>, true>;
|
|
6
|
+
gold: DB.MemberDecl<DB.TypeArgument<DB.Param<"T", DB.Type>>, true>;
|
|
7
|
+
}>, [T: DB.Param<"T", DB.Type>]>>, true>;
|
|
8
|
+
weight: DB.MemberDecl<DB.IncludeIdentifier<DB.Param<string, DB.Type>[], DB.TypeAlias<"JewelryMaterialDifference", DB.Object<{
|
|
9
|
+
bronze: DB.MemberDecl<DB.TypeArgument<DB.Param<"T", DB.Type>>, true>;
|
|
10
|
+
silver: DB.MemberDecl<DB.TypeArgument<DB.Param<"T", DB.Type>>, true>;
|
|
11
|
+
gold: DB.MemberDecl<DB.TypeArgument<DB.Param<"T", DB.Type>>, true>;
|
|
12
|
+
}>, [T: DB.Param<"T", DB.Type>]>>, true>;
|
|
13
|
+
complexity: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"Complexity", {
|
|
14
|
+
Primitive: DB.EnumCase<null>;
|
|
15
|
+
Simple: DB.EnumCase<null>;
|
|
16
|
+
Complex: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ComplexComplexity", DB.Object<{
|
|
17
|
+
ap_value: DB.MemberDecl<DB.Integer, true>;
|
|
18
|
+
}>, []>>>;
|
|
19
|
+
}, []>>, false>;
|
|
20
|
+
structure_points: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"StructurePoints", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"StructurePointsComponent", DB.Object<{
|
|
21
|
+
points: DB.MemberDecl<DB.Integer, true>;
|
|
22
|
+
}>, []>>>, []>>, true>;
|
|
23
|
+
src: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"PublicationRefs", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"PublicationRef", DB.Object<{
|
|
24
|
+
id: DB.MemberDecl<DB.ReferenceIdentifier, true>;
|
|
25
|
+
occurrences: DB.MemberDecl<DB.NestedEntityMap<string, {
|
|
26
|
+
initial: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"InitialOccurrence", DB.Object<{
|
|
27
|
+
printing: DB.MemberDecl<DB.Integer, false>;
|
|
28
|
+
pages: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"PageRange", DB.Object<{
|
|
29
|
+
first_page: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"Page", {
|
|
30
|
+
InsideCoverFront: DB.EnumCase<null>;
|
|
31
|
+
InsideCoverBack: DB.EnumCase<null>;
|
|
32
|
+
Numbered: DB.EnumCase<DB.Integer>;
|
|
33
|
+
}, []>>, true>;
|
|
34
|
+
last_page: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"Page", {
|
|
35
|
+
InsideCoverFront: DB.EnumCase<null>;
|
|
36
|
+
InsideCoverBack: DB.EnumCase<null>;
|
|
37
|
+
Numbered: DB.EnumCase<DB.Integer>;
|
|
38
|
+
}, []>>, false>;
|
|
39
|
+
}>, []>>>, true>;
|
|
40
|
+
isRemoved: DB.MemberDecl<DB.Boolean, false>;
|
|
41
|
+
}>, []>>, true>;
|
|
42
|
+
revisions: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.Enum<"Revision", {
|
|
43
|
+
Since: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"Since", DB.Object<{
|
|
44
|
+
printing: DB.MemberDecl<DB.Integer, true>;
|
|
45
|
+
pages: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"PageRange", DB.Object<{
|
|
46
|
+
first_page: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"Page", {
|
|
47
|
+
InsideCoverFront: DB.EnumCase<null>;
|
|
48
|
+
InsideCoverBack: DB.EnumCase<null>;
|
|
49
|
+
Numbered: DB.EnumCase<DB.Integer>;
|
|
50
|
+
}, []>>, true>;
|
|
51
|
+
last_page: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"Page", {
|
|
52
|
+
InsideCoverFront: DB.EnumCase<null>;
|
|
53
|
+
InsideCoverBack: DB.EnumCase<null>;
|
|
54
|
+
Numbered: DB.EnumCase<DB.Integer>;
|
|
55
|
+
}, []>>, false>;
|
|
56
|
+
}>, []>>>, true>;
|
|
57
|
+
}>, []>>>;
|
|
58
|
+
Deprecated: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"Deprecation", DB.Object<{
|
|
59
|
+
printing: DB.MemberDecl<DB.Integer, true>;
|
|
60
|
+
}>, []>>>;
|
|
61
|
+
}, []>>>, false>;
|
|
62
|
+
}>, true>;
|
|
63
|
+
}>, []>>>, []>>, true>;
|
|
64
|
+
translations: DB.MemberDecl<DB.NestedEntityMap<`${string}Translation`, {
|
|
65
|
+
name: DB.MemberDecl<DB.String, true>;
|
|
66
|
+
secondary_name: DB.MemberDecl<DB.String, false>;
|
|
67
|
+
note: DB.MemberDecl<DB.String, false>;
|
|
68
|
+
rules: DB.MemberDecl<DB.String, false>;
|
|
69
|
+
errata: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"Errata", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"Erratum", DB.Object<{
|
|
70
|
+
date: DB.MemberDecl<DB.Date, true>;
|
|
71
|
+
description: DB.MemberDecl<DB.String, true>;
|
|
72
|
+
}>, []>>>, []>>, false>;
|
|
73
|
+
}>, true>;
|
|
74
|
+
}, undefined>;
|