@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,486 @@
|
|
|
1
|
+
import * as DB from "tsondb/schema/dsl";
|
|
2
|
+
import { NestedTranslationMap } from "../../Locale.js";
|
|
3
|
+
import { AlternativeName } from "../../_AlternativeNames.js";
|
|
4
|
+
import { Dice } from "../../_Dice.js";
|
|
5
|
+
import { Reduceable, Resistance } from "../../_DiseasePoison.js";
|
|
6
|
+
import { DiseaseIdentifier } from "../../_Identifier.js";
|
|
7
|
+
import { MathOperation } from "../../_MathExpression.js";
|
|
8
|
+
import { Errata } from "../../source/_Erratum.js";
|
|
9
|
+
import { src } from "../../source/_PublicationRef.js";
|
|
10
|
+
import { EffectType, LaboratoryLevel, RecipeComplexity, RecipeTradeSecret } from "./_Herbary.js";
|
|
11
|
+
export const Poison = DB.Entity(import.meta.url, {
|
|
12
|
+
name: "Poison",
|
|
13
|
+
namePlural: "Poisons",
|
|
14
|
+
type: () => DB.Object({
|
|
15
|
+
application_type: DB.Required({
|
|
16
|
+
comment: "The poison’s application type(s).",
|
|
17
|
+
type: DB.Array(DB.IncludeIdentifier(PoisonApplicationType), {
|
|
18
|
+
minItems: 1,
|
|
19
|
+
uniqueItems: true,
|
|
20
|
+
}),
|
|
21
|
+
}),
|
|
22
|
+
source_type: DB.Required({
|
|
23
|
+
comment: "The poison’s source type and dependent additional values.",
|
|
24
|
+
type: DB.IncludeIdentifier(PoisonSourceType),
|
|
25
|
+
}),
|
|
26
|
+
resistance: DB.Required({
|
|
27
|
+
comment: "Use Spirit or Toughness as a modifier for the poison.",
|
|
28
|
+
type: DB.IncludeIdentifier(Resistance),
|
|
29
|
+
}),
|
|
30
|
+
start: DB.Required({
|
|
31
|
+
comment: "When the poison takes effect.",
|
|
32
|
+
type: DB.IncludeIdentifier(PoisonStart),
|
|
33
|
+
}),
|
|
34
|
+
duration: DB.Required({
|
|
35
|
+
comment: "The normal and degraded poison’s duration.",
|
|
36
|
+
type: DB.GenIncludeIdentifier(Reduceable, [DB.IncludeIdentifier(PoisonDuration)]),
|
|
37
|
+
}),
|
|
38
|
+
value: DB.Optional({
|
|
39
|
+
comment: "The raw (ingredients) value per level, in silverthalers.",
|
|
40
|
+
type: DB.Integer({ minimum: 1 }),
|
|
41
|
+
}),
|
|
42
|
+
cost: DB.Optional({
|
|
43
|
+
comment: "Price for one dose, in silverthalers.",
|
|
44
|
+
type: DB.IncludeIdentifier(PoisonCost),
|
|
45
|
+
}),
|
|
46
|
+
src,
|
|
47
|
+
translations: NestedTranslationMap(DB.Required, "Poison", DB.Object({
|
|
48
|
+
name: DB.Required({
|
|
49
|
+
comment: "The name of the poison.",
|
|
50
|
+
type: DB.String({ minLength: 1 }),
|
|
51
|
+
}),
|
|
52
|
+
alternative_names: DB.Optional({
|
|
53
|
+
comment: "A list of alternative names.",
|
|
54
|
+
type: DB.Array(DB.IncludeIdentifier(AlternativeName), { minItems: 1 }),
|
|
55
|
+
}),
|
|
56
|
+
effect: DB.Required({
|
|
57
|
+
comment: "The normal and degraded poison’s effects.",
|
|
58
|
+
type: DB.GenIncludeIdentifier(Reduceable, [
|
|
59
|
+
DB.String({ minLength: 1, markdown: "block" }),
|
|
60
|
+
]),
|
|
61
|
+
}),
|
|
62
|
+
notes: DB.Optional({
|
|
63
|
+
comment: "Notes on the poison’s special features.",
|
|
64
|
+
type: DB.String({ minLength: 1, markdown: "block" }),
|
|
65
|
+
}),
|
|
66
|
+
errata: DB.Optional({
|
|
67
|
+
type: DB.IncludeIdentifier(Errata),
|
|
68
|
+
}),
|
|
69
|
+
})),
|
|
70
|
+
}),
|
|
71
|
+
instanceDisplayName: {},
|
|
72
|
+
uniqueConstraints: [
|
|
73
|
+
{
|
|
74
|
+
entityMapKeyPath: "translations",
|
|
75
|
+
keyPathInEntityMap: "name",
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
});
|
|
79
|
+
const PoisonApplicationType = DB.Enum(import.meta.url, {
|
|
80
|
+
name: "PoisonApplicationType",
|
|
81
|
+
values: () => ({
|
|
82
|
+
Weapon: DB.EnumCase({ type: null }),
|
|
83
|
+
Ingestion: DB.EnumCase({ type: null }),
|
|
84
|
+
Inhalation: DB.EnumCase({ type: null }),
|
|
85
|
+
Contact: DB.EnumCase({ type: null }),
|
|
86
|
+
}),
|
|
87
|
+
});
|
|
88
|
+
const PoisonStart = DB.Enum(import.meta.url, {
|
|
89
|
+
name: "PoisonStart",
|
|
90
|
+
values: () => ({
|
|
91
|
+
Immediate: DB.EnumCase({ type: null }),
|
|
92
|
+
ExpressionBased: DB.EnumCase({ type: DB.IncludeIdentifier(ExpressionBasedPoisonTime) }),
|
|
93
|
+
Indefinite: DB.EnumCase({ type: DB.IncludeIdentifier(IndefinitePoisonTime) }),
|
|
94
|
+
}),
|
|
95
|
+
});
|
|
96
|
+
const PoisonDuration = DB.Enum(import.meta.url, {
|
|
97
|
+
name: "PoisonDuration",
|
|
98
|
+
values: () => ({
|
|
99
|
+
Instant: DB.EnumCase({ type: null }),
|
|
100
|
+
ExpressionBased: DB.EnumCase({ type: DB.IncludeIdentifier(ExpressionBasedPoisonTime) }),
|
|
101
|
+
Indefinite: DB.EnumCase({ type: DB.IncludeIdentifier(IndefinitePoisonTime) }),
|
|
102
|
+
}),
|
|
103
|
+
});
|
|
104
|
+
const PoisonCost = DB.Enum(import.meta.url, {
|
|
105
|
+
name: "PoisonCost",
|
|
106
|
+
values: () => ({
|
|
107
|
+
CannotBeExtracted: DB.EnumCase({ type: null }),
|
|
108
|
+
None: DB.EnumCase({ type: DB.IncludeIdentifier(NoPoisonCost) }),
|
|
109
|
+
Constant: DB.EnumCase({ type: DB.Float({ minimum: { value: 0, isExclusive: true } }) }),
|
|
110
|
+
Indefinite: DB.EnumCase({ type: DB.IncludeIdentifier(IndefinitePoisonCost) }),
|
|
111
|
+
DependingOnPurchaseOrSale: DB.EnumCase({
|
|
112
|
+
comment: "The cost depends on whether the poison is being purchased or sold.",
|
|
113
|
+
type: DB.IncludeIdentifier(DependingOnPurchaseOrSalePoisonCost),
|
|
114
|
+
}),
|
|
115
|
+
}),
|
|
116
|
+
});
|
|
117
|
+
export const NoPoisonCost = DB.TypeAlias(import.meta.url, {
|
|
118
|
+
name: "NoPoisonCost",
|
|
119
|
+
type: () => DB.Object({
|
|
120
|
+
translations: NestedTranslationMap(DB.Optional, "NoPoisonCost", DB.Object({
|
|
121
|
+
description: DB.Required({
|
|
122
|
+
comment: "A description of the cost.",
|
|
123
|
+
type: DB.String({ minLength: 1, markdown: "block" }),
|
|
124
|
+
}),
|
|
125
|
+
})),
|
|
126
|
+
}),
|
|
127
|
+
});
|
|
128
|
+
export const IndefinitePoisonCost = DB.TypeAlias(import.meta.url, {
|
|
129
|
+
name: "IndefinitePoisonCost",
|
|
130
|
+
type: () => DB.Object({
|
|
131
|
+
translations: NestedTranslationMap(DB.Required, "IndefinitePoisonCost", DB.Object({
|
|
132
|
+
description: DB.Required({
|
|
133
|
+
comment: "A description of the cost.",
|
|
134
|
+
type: DB.String({ minLength: 1, markdown: "block" }),
|
|
135
|
+
}),
|
|
136
|
+
})),
|
|
137
|
+
}),
|
|
138
|
+
});
|
|
139
|
+
const DependingOnPurchaseOrSalePoisonCost = DB.TypeAlias(import.meta.url, {
|
|
140
|
+
name: "DependingOnPurchaseOrSalePoisonCost",
|
|
141
|
+
comment: "The cost depends on whether the poison is being purchased or sold.",
|
|
142
|
+
type: () => DB.Object({
|
|
143
|
+
purchase: DB.Required({
|
|
144
|
+
comment: "The cost when purchasing the poison.",
|
|
145
|
+
type: DB.Float({ minimum: { value: 0, isExclusive: true } }),
|
|
146
|
+
}),
|
|
147
|
+
sale: DB.Required({
|
|
148
|
+
comment: "The cost when selling the poison.",
|
|
149
|
+
type: DB.Float({ minimum: { value: 0, isExclusive: true } }),
|
|
150
|
+
}),
|
|
151
|
+
}),
|
|
152
|
+
});
|
|
153
|
+
export const ExpressionBasedPoisonTime = DB.TypeAlias(import.meta.url, {
|
|
154
|
+
name: "ExpressionBasedPoisonTime",
|
|
155
|
+
type: () => DB.Object({
|
|
156
|
+
value: DB.Required({
|
|
157
|
+
type: DB.IncludeIdentifier(ExpressionBasedPoisonTimeValue),
|
|
158
|
+
}),
|
|
159
|
+
unit: DB.Required({
|
|
160
|
+
type: DB.IncludeIdentifier(PoisonTimeUnit),
|
|
161
|
+
}),
|
|
162
|
+
}),
|
|
163
|
+
});
|
|
164
|
+
export const ExpressionBasedPoisonTimeValue = DB.TypeAlias(import.meta.url, {
|
|
165
|
+
name: "ExpressionBasedPoisonTimeValue",
|
|
166
|
+
type: () => DB.GenIncludeIdentifier(MathOperation, [
|
|
167
|
+
DB.IncludeIdentifier(ExpressionBasedPoisonTimeExpressionValue),
|
|
168
|
+
]),
|
|
169
|
+
});
|
|
170
|
+
export const ExpressionBasedPoisonTimeExpressionValue = DB.Enum(import.meta.url, {
|
|
171
|
+
name: "ExpressionBasedPoisonTimeExpressionValue",
|
|
172
|
+
values: () => ({
|
|
173
|
+
Constant: DB.EnumCase({ type: DB.Integer({ minimum: 1 }) }),
|
|
174
|
+
Dice: DB.EnumCase({ type: DB.IncludeIdentifier(Dice) }),
|
|
175
|
+
CircleOfDamnation: DB.EnumCase({ type: null }),
|
|
176
|
+
}),
|
|
177
|
+
});
|
|
178
|
+
const PoisonTimeUnit = DB.Enum(import.meta.url, {
|
|
179
|
+
name: "PoisonTimeUnit",
|
|
180
|
+
values: () => ({
|
|
181
|
+
CombatRounds: DB.EnumCase({ type: null }),
|
|
182
|
+
Minutes: DB.EnumCase({ type: null }),
|
|
183
|
+
Hours: DB.EnumCase({ type: null }),
|
|
184
|
+
Days: DB.EnumCase({ type: null }),
|
|
185
|
+
}),
|
|
186
|
+
});
|
|
187
|
+
export const IndefinitePoisonTime = DB.TypeAlias(import.meta.url, {
|
|
188
|
+
name: "IndefinitePoisonTime",
|
|
189
|
+
type: () => DB.Object({
|
|
190
|
+
translations: NestedTranslationMap(DB.Optional, "IndefinitePoisonTime", DB.Object({
|
|
191
|
+
description: DB.Optional({
|
|
192
|
+
comment: "A description of the duration.",
|
|
193
|
+
type: DB.String({ minLength: 1, markdown: "block" }),
|
|
194
|
+
}),
|
|
195
|
+
}, { minProperties: 1 })),
|
|
196
|
+
}),
|
|
197
|
+
});
|
|
198
|
+
const PoisonSourceType = DB.Enum(import.meta.url, {
|
|
199
|
+
name: "PoisonSourceType",
|
|
200
|
+
values: () => ({
|
|
201
|
+
AnimalVenom: DB.EnumCase({ type: DB.IncludeIdentifier(AnimalVenom) }),
|
|
202
|
+
AlchemicalPoison: DB.EnumCase({ type: DB.IncludeIdentifier(AlchemicalPoison) }),
|
|
203
|
+
AlchemicalPactGiftPoison: DB.EnumCase({
|
|
204
|
+
comment: "An alchemical poison that is part of a pact gift and cannot be obtained or brewed by means typical for an alchemical poison.",
|
|
205
|
+
type: null,
|
|
206
|
+
}),
|
|
207
|
+
MineralPoison: DB.EnumCase({ type: DB.IncludeIdentifier(MineralPoison) }),
|
|
208
|
+
PlantPoison: DB.EnumCase({ type: DB.IncludeIdentifier(PlantPoison) }),
|
|
209
|
+
DemonicPoison: DB.EnumCase({ type: DB.IncludeIdentifier(DemonicPoison) }),
|
|
210
|
+
}),
|
|
211
|
+
});
|
|
212
|
+
export const AnimalVenom = DB.TypeAlias(import.meta.url, {
|
|
213
|
+
name: "AnimalVenom",
|
|
214
|
+
type: () => DB.Object({
|
|
215
|
+
level: DB.Required({
|
|
216
|
+
comment: "The poison’s level.",
|
|
217
|
+
type: DB.IncludeIdentifier(AnimalVenomLevel),
|
|
218
|
+
}),
|
|
219
|
+
is_extractable: DB.Required({
|
|
220
|
+
comment: "If `false`, the poison cannot be extracted.",
|
|
221
|
+
type: DB.Boolean(),
|
|
222
|
+
}),
|
|
223
|
+
complexity: DB.Optional({
|
|
224
|
+
comment: "The complexity of the poison. Complex poisons define AP value and prerequisites of the poison’s trade secret.",
|
|
225
|
+
type: DB.IncludeIdentifier(RecipeComplexity),
|
|
226
|
+
}),
|
|
227
|
+
}),
|
|
228
|
+
});
|
|
229
|
+
const AnimalVenomLevel = DB.Enum(import.meta.url, {
|
|
230
|
+
name: "AnimalVenomLevel",
|
|
231
|
+
values: () => ({
|
|
232
|
+
QualityLevel: DB.EnumCase({ type: null }),
|
|
233
|
+
Constant: DB.EnumCase({ type: DB.Integer({ minimum: 1, maximum: 6 }) }),
|
|
234
|
+
BySubtype: DB.EnumCase({ type: DB.IncludeIdentifier(AnimalVenomLevelBySubType) }),
|
|
235
|
+
}),
|
|
236
|
+
});
|
|
237
|
+
const AnimalVenomLevelBySubType = DB.TypeAlias(import.meta.url, {
|
|
238
|
+
name: "AnimalVenomLevelBySubType",
|
|
239
|
+
type: () => DB.Array(DB.Object({
|
|
240
|
+
value: DB.Required({
|
|
241
|
+
comment: "The poison’s level.",
|
|
242
|
+
type: DB.Integer({ minimum: 1, maximum: 6 }),
|
|
243
|
+
}),
|
|
244
|
+
translations: NestedTranslationMap(DB.Required, "AnimalVenomLevelBySubType", DB.Object({
|
|
245
|
+
name: DB.Required({
|
|
246
|
+
comment: "The subtype name. If there are multiple subtypes with the same level, specify them separately.",
|
|
247
|
+
type: DB.String({ minLength: 1 }),
|
|
248
|
+
}),
|
|
249
|
+
})),
|
|
250
|
+
}), { minItems: 1 }),
|
|
251
|
+
});
|
|
252
|
+
export const AlchemicalPoison = DB.TypeAlias(import.meta.url, {
|
|
253
|
+
name: "AlchemicalPoison",
|
|
254
|
+
type: () => DB.Object({
|
|
255
|
+
effect_types: DB.Required({
|
|
256
|
+
comment: "Effect type(s) of an alchemical poison.",
|
|
257
|
+
type: DB.Array(DB.IncludeIdentifier(EffectType), { minItems: 1, uniqueItems: true }),
|
|
258
|
+
}),
|
|
259
|
+
cost_per_ingredient_level: DB.Required({
|
|
260
|
+
comment: "The cost per ingredient level in silverthalers.",
|
|
261
|
+
type: DB.Integer({ minimum: 1 }),
|
|
262
|
+
}),
|
|
263
|
+
laboratory: DB.Required({
|
|
264
|
+
comment: "The laboratory level needed to brew the poison.",
|
|
265
|
+
type: DB.IncludeIdentifier(LaboratoryLevel),
|
|
266
|
+
}),
|
|
267
|
+
brewing_difficulty: DB.Required({
|
|
268
|
+
comment: "The brewing difficulty, which represents the challenge of creating a poison.",
|
|
269
|
+
type: DB.Integer(),
|
|
270
|
+
}),
|
|
271
|
+
trade_secret: DB.Required({
|
|
272
|
+
comment: "AP value and prerequisites of the poison recipe’s trade secret.",
|
|
273
|
+
type: DB.IncludeIdentifier(RecipeTradeSecret),
|
|
274
|
+
}),
|
|
275
|
+
intoxicant: DB.Optional({
|
|
276
|
+
comment: "Additional information if the poison is an intoxicant.",
|
|
277
|
+
type: DB.IncludeIdentifier(Intoxicant),
|
|
278
|
+
}),
|
|
279
|
+
isDemonic: DB.Optional({
|
|
280
|
+
displayName: "Is demonic?",
|
|
281
|
+
comment: "Whether the poison is of demonic nature or not.",
|
|
282
|
+
type: DB.Boolean(),
|
|
283
|
+
}),
|
|
284
|
+
translations: NestedTranslationMap(DB.Required, "AlchemicalPoison", DB.Object({
|
|
285
|
+
typical_ingredients: DB.Required({
|
|
286
|
+
comment: "A list of typical ingredients.",
|
|
287
|
+
type: DB.Array(DB.String({ minLength: 1 }), { minItems: 1, uniqueItems: true }),
|
|
288
|
+
}),
|
|
289
|
+
brewing_process_prerequisites: DB.Optional({
|
|
290
|
+
comment: "Prerequsites for the brewing process, if any.",
|
|
291
|
+
type: DB.String({ minLength: 1, markdown: "block" }),
|
|
292
|
+
}),
|
|
293
|
+
})),
|
|
294
|
+
}),
|
|
295
|
+
});
|
|
296
|
+
export const MineralPoison = DB.TypeAlias(import.meta.url, {
|
|
297
|
+
name: "MineralPoison",
|
|
298
|
+
type: () => DB.Object({
|
|
299
|
+
level: DB.Required({
|
|
300
|
+
comment: "The poison’s level.",
|
|
301
|
+
type: DB.Integer({ minimum: 1, maximum: 6 }),
|
|
302
|
+
}),
|
|
303
|
+
}),
|
|
304
|
+
});
|
|
305
|
+
export const PlantPoison = DB.TypeAlias(import.meta.url, {
|
|
306
|
+
name: "PlantPoison",
|
|
307
|
+
type: () => DB.Object({
|
|
308
|
+
effect_types: DB.Required({
|
|
309
|
+
comment: "Effect type(s) of a plant poison.",
|
|
310
|
+
type: DB.Array(DB.IncludeIdentifier(EffectType), { minItems: 1, uniqueItems: true }),
|
|
311
|
+
}),
|
|
312
|
+
level: DB.Required({
|
|
313
|
+
comment: "The poison’s level.",
|
|
314
|
+
type: DB.Integer({ minimum: 1, maximum: 6 }),
|
|
315
|
+
}),
|
|
316
|
+
intoxicant: DB.Optional({
|
|
317
|
+
comment: "Additional information if the poison is an intoxicant.",
|
|
318
|
+
type: DB.IncludeIdentifier(Intoxicant),
|
|
319
|
+
}),
|
|
320
|
+
}),
|
|
321
|
+
});
|
|
322
|
+
export const DemonicPoison = DB.TypeAlias(import.meta.url, {
|
|
323
|
+
name: "DemonicPoison",
|
|
324
|
+
type: () => DB.Object({
|
|
325
|
+
level: DB.Required({
|
|
326
|
+
comment: "The poison’s level.",
|
|
327
|
+
type: DB.IncludeIdentifier(DemonicPoisonLevel),
|
|
328
|
+
}),
|
|
329
|
+
translations: NestedTranslationMap(DB.Optional, "DemonicPoison", DB.Object({
|
|
330
|
+
note: DB.Optional({
|
|
331
|
+
comment: "A note, if any.",
|
|
332
|
+
type: DB.String({ minLength: 1, markdown: "block" }),
|
|
333
|
+
}),
|
|
334
|
+
}, { minProperties: 1 })),
|
|
335
|
+
}),
|
|
336
|
+
});
|
|
337
|
+
const DemonicPoisonLevel = DB.Enum(import.meta.url, {
|
|
338
|
+
name: "DemonicPoisonLevel",
|
|
339
|
+
values: () => ({
|
|
340
|
+
QualityLevel: DB.EnumCase({ type: DB.IncludeIdentifier(QualityLevelDemonicPoisonLevel) }),
|
|
341
|
+
Constant: DB.EnumCase({ type: DB.IncludeIdentifier(ConstantDemonicPoisonLevel) }),
|
|
342
|
+
}),
|
|
343
|
+
});
|
|
344
|
+
export const QualityLevelDemonicPoisonLevel = DB.TypeAlias(import.meta.url, {
|
|
345
|
+
name: "QualityLevelDemonicPoisonLevel",
|
|
346
|
+
type: () => DB.Object({
|
|
347
|
+
source: DB.Required({
|
|
348
|
+
type: DB.IncludeIdentifier(QualityLevelDemonicPoisonLevelSource),
|
|
349
|
+
}),
|
|
350
|
+
}),
|
|
351
|
+
});
|
|
352
|
+
const QualityLevelDemonicPoisonLevelSource = DB.Enum(import.meta.url, {
|
|
353
|
+
name: "QualityLevelDemonicPoisonLevelSource",
|
|
354
|
+
values: () => ({
|
|
355
|
+
Spellwork: DB.EnumCase({ type: null }),
|
|
356
|
+
}),
|
|
357
|
+
});
|
|
358
|
+
export const ConstantDemonicPoisonLevel = DB.TypeAlias(import.meta.url, {
|
|
359
|
+
name: "ConstantDemonicPoisonLevel",
|
|
360
|
+
type: () => DB.Object({
|
|
361
|
+
value: DB.Required({
|
|
362
|
+
comment: "The poison’s level.",
|
|
363
|
+
type: DB.Integer({ minimum: 1, maximum: 6 }),
|
|
364
|
+
}),
|
|
365
|
+
}),
|
|
366
|
+
});
|
|
367
|
+
export const Intoxicant = DB.TypeAlias(import.meta.url, {
|
|
368
|
+
name: "Intoxicant",
|
|
369
|
+
type: () => DB.Object({
|
|
370
|
+
legality: DB.Required({
|
|
371
|
+
comment: "Whether the use of the intoxicant is legal or not, usually from the perspective of most middle-Aventurian an northern-Aventurian nations.",
|
|
372
|
+
type: DB.IncludeIdentifier(IntoxicantLegality),
|
|
373
|
+
}),
|
|
374
|
+
addiction: DB.Optional({
|
|
375
|
+
comment: "The chance of getting addicted after an ingestion in addition to the maximum interval at which it, while addicted, must be ingested to not suffer from withdrawal symptoms.",
|
|
376
|
+
type: DB.IncludeIdentifier(IntoxicantAddiction),
|
|
377
|
+
}),
|
|
378
|
+
translations: NestedTranslationMap(DB.Required, "Intoxicant", DB.Object({
|
|
379
|
+
ingestion: DB.Required({
|
|
380
|
+
comment: "How to ingest the intoxicant.",
|
|
381
|
+
type: DB.String({ minLength: 1, markdown: "block" }),
|
|
382
|
+
}),
|
|
383
|
+
side_effect: DB.Optional({
|
|
384
|
+
comment: "The intoxicants side effects that always happen, no matter whether the intoxicant has the default or the reduced effect.",
|
|
385
|
+
type: DB.String({ minLength: 1, markdown: "block" }),
|
|
386
|
+
}),
|
|
387
|
+
overdose: DB.Optional({
|
|
388
|
+
comment: "What happens if the intoxicant has been overdosed, that is, it has been ingested another time within the duration.",
|
|
389
|
+
type: DB.String({ minLength: 1, markdown: "block" }),
|
|
390
|
+
}),
|
|
391
|
+
special: DB.Optional({
|
|
392
|
+
comment: "Special information about the intoxicant.",
|
|
393
|
+
type: DB.String({ minLength: 1, markdown: "block" }),
|
|
394
|
+
}),
|
|
395
|
+
})),
|
|
396
|
+
}),
|
|
397
|
+
});
|
|
398
|
+
export const IntoxicantLegality = DB.TypeAlias(import.meta.url, {
|
|
399
|
+
name: "IntoxicantLegality",
|
|
400
|
+
comment: "Whether the use of the intoxicant is legal or not, usually from the perspective of most middle-Aventurian an northern-Aventurian nations.",
|
|
401
|
+
type: () => DB.Object({
|
|
402
|
+
is_legal: DB.Required({
|
|
403
|
+
type: DB.Boolean(),
|
|
404
|
+
}),
|
|
405
|
+
}),
|
|
406
|
+
});
|
|
407
|
+
export const IntoxicantAddiction = DB.TypeAlias(import.meta.url, {
|
|
408
|
+
name: "IntoxicantAddiction",
|
|
409
|
+
comment: "The chance of getting addicted after an ingestion in addition to the maximum interval at which it, while addicted, must be ingested to not suffer from withdrawal symptoms.",
|
|
410
|
+
type: () => DB.Object({
|
|
411
|
+
chance: DB.Optional({
|
|
412
|
+
comment: "The chance of getting addicted after an ingestion in percent. Some intoxicants do not have a contant chance of addiction.",
|
|
413
|
+
type: DB.Integer({ minimum: 0, maximum: 100, multipleOf: 5 }),
|
|
414
|
+
}),
|
|
415
|
+
check: DB.Optional({
|
|
416
|
+
comment: "The interval at which to check for addiction after an ingestion. If set to one, every ingestion has to be checked for addiction. If set to two, every second ingestion has to be checked, and so on.",
|
|
417
|
+
type: DB.IncludeIdentifier(IntoxicantAddictionCheck),
|
|
418
|
+
}),
|
|
419
|
+
withdrawalPrevention: DB.Optional({
|
|
420
|
+
comment: "The maximum interval at which it, while addicted, must be ingested to not suffer from withdrawal symptoms.",
|
|
421
|
+
type: DB.IncludeIdentifier(IntoxicantAddictionWithdrawalPrevention),
|
|
422
|
+
}),
|
|
423
|
+
disease: DB.Optional({
|
|
424
|
+
comment: "The disease that represents the addiction.",
|
|
425
|
+
type: DiseaseIdentifier(),
|
|
426
|
+
}),
|
|
427
|
+
translations: NestedTranslationMap(DB.Optional, "IntoxicantAddiction", DB.Object({
|
|
428
|
+
chance: DB.Required({
|
|
429
|
+
comment: "The chance of getting addicted after an ingestion. Use if and only if the plain constant percent is not sufficient.",
|
|
430
|
+
type: DB.String({ minLength: 1, markdown: "inline" }),
|
|
431
|
+
}),
|
|
432
|
+
})),
|
|
433
|
+
}),
|
|
434
|
+
});
|
|
435
|
+
const IntoxicantAddictionCheck = DB.TypeAlias(import.meta.url, {
|
|
436
|
+
name: "IntoxicantAddictionCheck",
|
|
437
|
+
comment: "The interval at which to check for addiction after an ingestion. If set to one, every ingestion has to be checked for addiction. If set to two, every second ingestion has to be checked, and so on.",
|
|
438
|
+
type: () => DB.Object({
|
|
439
|
+
interval: DB.Required({
|
|
440
|
+
type: DB.Integer({ minimum: 1 }),
|
|
441
|
+
}),
|
|
442
|
+
onlySameMonth: DB.Optional({
|
|
443
|
+
comment: "If true, only ingestions in the same month count for the check interval.",
|
|
444
|
+
type: DB.Boolean(),
|
|
445
|
+
}),
|
|
446
|
+
}),
|
|
447
|
+
});
|
|
448
|
+
const IntoxicantAddictionWithdrawalPrevention = DB.TypeAlias(import.meta.url, {
|
|
449
|
+
name: "IntoxicantAddictionWithdrawalPrevention",
|
|
450
|
+
type: () => DB.Object({
|
|
451
|
+
amount: DB.Required({
|
|
452
|
+
comment: "The amount that must be ingested within the interval to prevent withdrawal symptoms.",
|
|
453
|
+
type: DB.Integer({ minimum: 1 }),
|
|
454
|
+
}),
|
|
455
|
+
interval: DB.Required({
|
|
456
|
+
comment: "The maximum interval at which it, while addicted, must be ingested to not suffer from withdrawal symptoms.",
|
|
457
|
+
type: DB.IncludeIdentifier(IntoxicantAddictionWithdrawalPreventionInterval),
|
|
458
|
+
}),
|
|
459
|
+
}),
|
|
460
|
+
});
|
|
461
|
+
const IntoxicantAddictionWithdrawalPreventionInterval = DB.Enum(import.meta.url, {
|
|
462
|
+
name: "IntoxicantAddictionWithdrawalPreventionInterval",
|
|
463
|
+
comment: "The maximum interval at which it, while addicted, must be ingested to not suffer from withdrawal symptoms.",
|
|
464
|
+
values: () => ({
|
|
465
|
+
Constant: DB.EnumCase({ type: DB.IncludeIdentifier(ConstantIntoxicantAddictionInterval) }),
|
|
466
|
+
DiceBased: DB.EnumCase({ type: DB.IncludeIdentifier(DiceBasedIntoxicantAddictionInterval) }),
|
|
467
|
+
}),
|
|
468
|
+
});
|
|
469
|
+
export const ConstantIntoxicantAddictionInterval = DB.TypeAlias(import.meta.url, {
|
|
470
|
+
name: "ConstantIntoxicantAddictionInterval",
|
|
471
|
+
type: () => DB.Object({
|
|
472
|
+
value: DB.Required({
|
|
473
|
+
comment: "The interval value in days.",
|
|
474
|
+
type: DB.Integer({ minimum: 1 }),
|
|
475
|
+
}),
|
|
476
|
+
}),
|
|
477
|
+
});
|
|
478
|
+
export const DiceBasedIntoxicantAddictionInterval = DB.TypeAlias(import.meta.url, {
|
|
479
|
+
name: "DiceBasedIntoxicantAddictionInterval",
|
|
480
|
+
type: () => DB.Object({
|
|
481
|
+
dice: DB.Required({
|
|
482
|
+
comment: "The dice that define the interval value in days.",
|
|
483
|
+
type: DB.IncludeIdentifier(Dice),
|
|
484
|
+
}),
|
|
485
|
+
}),
|
|
486
|
+
});
|