@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,267 @@
|
|
|
1
|
+
import * as DB from "tsondb/schema/dsl";
|
|
2
|
+
import type { DerivedCharacteristicBase } from "../../gen/types.js";
|
|
3
|
+
import { MathOperation } from "./_MathExpression.ts";
|
|
4
|
+
export declare const DerivedCharacteristic: DB.Entity<"DerivedCharacteristic", {
|
|
5
|
+
position: DB.MemberDecl<DB.Integer, true>;
|
|
6
|
+
type: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"DerivedCharacteristicType", {
|
|
7
|
+
Energy: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"EnergyType", DB.Object<{
|
|
8
|
+
purchase: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"DerivedCharacteristicPurchase", DB.Object<{
|
|
9
|
+
improvementCost: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"ImprovementCost", {
|
|
10
|
+
A: DB.EnumCase<null>;
|
|
11
|
+
B: DB.EnumCase<null>;
|
|
12
|
+
C: DB.EnumCase<null>;
|
|
13
|
+
D: DB.EnumCase<null>;
|
|
14
|
+
}, []>>, true>;
|
|
15
|
+
maximum: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"DerivedCharacteristicBase", DB.IncludeIdentifier<DB.Param<string, DB.Type>[], MathOperation>, []>>, true>;
|
|
16
|
+
}>, []>>, false>;
|
|
17
|
+
permanentLoss: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"DerivedCharacteristicPermanentLoss", DB.Object<{
|
|
18
|
+
canBeBoughtBack: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"DerivedCharacteristicBuyBack", DB.Object<{
|
|
19
|
+
cost: DB.MemberDecl<DB.Integer, true>;
|
|
20
|
+
}>, []>>, false>;
|
|
21
|
+
}>, []>>, false>;
|
|
22
|
+
}>, []>>>;
|
|
23
|
+
Resistance: DB.EnumCase<null>;
|
|
24
|
+
}, []>>, false>;
|
|
25
|
+
calculation: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"DerivedCharacteristicCalculation", DB.Object<{
|
|
26
|
+
base: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"DerivedCharacteristicBase", DB.IncludeIdentifier<DB.Param<string, DB.Type>[], MathOperation>, []>>, true>;
|
|
27
|
+
modifiers: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"DerivedCharacteristicModifier", DB.Object<{
|
|
28
|
+
source: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"DerivedCharacteristicModifierPrerequisiteGroup", {
|
|
29
|
+
Rule: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"RulePrerequisite", DB.Object<{
|
|
30
|
+
id: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"ExtensionRuleIdentifier", {
|
|
31
|
+
FocusRule: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
32
|
+
OptionalRule: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
33
|
+
}, []>>, true>;
|
|
34
|
+
display_option: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"DisplayOption", {
|
|
35
|
+
Hide: DB.EnumCase<null>;
|
|
36
|
+
ReplaceWith: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ReplacementDisplayOption", DB.Object<{
|
|
37
|
+
sentence_type: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SentenceType", {
|
|
38
|
+
Standalone: DB.EnumCase<null>;
|
|
39
|
+
Connected: DB.EnumCase<null>;
|
|
40
|
+
}, []>>, false>;
|
|
41
|
+
translations: DB.MemberDecl<DB.NestedEntityMap<"ReplacementDisplayOptionTranslation", {
|
|
42
|
+
replacement: DB.MemberDecl<DB.String, true>;
|
|
43
|
+
}>, true>;
|
|
44
|
+
}>, []>>>;
|
|
45
|
+
}, []>>, false>;
|
|
46
|
+
}>, []>>>;
|
|
47
|
+
Activatable: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ActivatablePrerequisite", DB.Object<{
|
|
48
|
+
id: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"ActivatableIdentifier", {
|
|
49
|
+
AdvancedCombatSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
50
|
+
AdvancedKarmaSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
51
|
+
AdvancedMagicalSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
52
|
+
AdvancedSkillSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
53
|
+
AncestorGlyph: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
54
|
+
ArcaneOrbEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
55
|
+
AttireEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
56
|
+
Beutelzauber: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
57
|
+
BlessedTradition: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
58
|
+
BowlEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
59
|
+
BrawlingSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
60
|
+
CauldronEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
61
|
+
CeremonialItemSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
62
|
+
ChronicleEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
63
|
+
CombatSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
64
|
+
CombatStyleSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
65
|
+
CommandSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
66
|
+
DaggerRitual: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
67
|
+
FamiliarSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
68
|
+
FatePointSexSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
69
|
+
FatePointSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
70
|
+
FoolsHatEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
71
|
+
GeneralSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
72
|
+
Haubenzauber: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
73
|
+
InstrumentEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
74
|
+
KarmaSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
75
|
+
Krallenkettenzauber: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
76
|
+
Kristallkugelzauber: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
77
|
+
LiturgicalStyleSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
78
|
+
LycantropicGift: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
79
|
+
MagicalSign: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
80
|
+
MagicalSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
81
|
+
MagicalTradition: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
82
|
+
MagicStyleSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
83
|
+
OrbEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
84
|
+
PactGift: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
85
|
+
ProtectiveWardingCircleSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
86
|
+
RingEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
87
|
+
Sermon: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
88
|
+
SexSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
89
|
+
SickleRitual: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
90
|
+
SikaryanDrainSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
91
|
+
SkillStyleSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
92
|
+
SpellSwordEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
93
|
+
StaffEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
94
|
+
ToyEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
95
|
+
Trinkhornzauber: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
96
|
+
VampiricGift: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
97
|
+
Vision: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
98
|
+
WandEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
99
|
+
WeaponEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
100
|
+
Advantage: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
101
|
+
Disadvantage: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
102
|
+
}, []>>, true>;
|
|
103
|
+
active: DB.MemberDecl<DB.Boolean, true>;
|
|
104
|
+
level: DB.MemberDecl<DB.Integer, false>;
|
|
105
|
+
options: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.Enum<"RequirableSelectOptionIdentifier", {
|
|
106
|
+
General: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
107
|
+
Race: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
108
|
+
Skill: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
109
|
+
SkillApplication: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
110
|
+
CloseCombatTechnique: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
111
|
+
RangedCombatTechnique: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
112
|
+
Property: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
113
|
+
Aspect: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
114
|
+
Language: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
115
|
+
AnimalShape: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
116
|
+
LiturgicalChant: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
117
|
+
Ceremony: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
118
|
+
Spell: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
119
|
+
Ritual: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
120
|
+
TradeSecret: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
121
|
+
ArcaneBardTradition: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
122
|
+
ArcaneDancerTradition: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
123
|
+
Element: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
124
|
+
}, []>>>, false>;
|
|
125
|
+
display_option: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"DisplayOption", {
|
|
126
|
+
Hide: DB.EnumCase<null>;
|
|
127
|
+
ReplaceWith: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ReplacementDisplayOption", DB.Object<{
|
|
128
|
+
sentence_type: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SentenceType", {
|
|
129
|
+
Standalone: DB.EnumCase<null>;
|
|
130
|
+
Connected: DB.EnumCase<null>;
|
|
131
|
+
}, []>>, false>;
|
|
132
|
+
translations: DB.MemberDecl<DB.NestedEntityMap<"ReplacementDisplayOptionTranslation", {
|
|
133
|
+
replacement: DB.MemberDecl<DB.String, true>;
|
|
134
|
+
}>, true>;
|
|
135
|
+
}>, []>>>;
|
|
136
|
+
}, []>>, false>;
|
|
137
|
+
when: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"Preconditions", DB.Array<DB.IncludeIdentifier<[], DB.Enum<"PreconditionGroup", {
|
|
138
|
+
Publication: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"PublicationPrerequisite", DB.Object<{
|
|
139
|
+
id: DB.MemberDecl<DB.ReferenceIdentifier, true>;
|
|
140
|
+
display_option: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"DisplayOption", {
|
|
141
|
+
Hide: DB.EnumCase<null>;
|
|
142
|
+
ReplaceWith: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ReplacementDisplayOption", DB.Object<{
|
|
143
|
+
sentence_type: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SentenceType", {
|
|
144
|
+
Standalone: DB.EnumCase<null>;
|
|
145
|
+
Connected: DB.EnumCase<null>;
|
|
146
|
+
}, []>>, false>;
|
|
147
|
+
translations: DB.MemberDecl<DB.NestedEntityMap<"ReplacementDisplayOptionTranslation", {
|
|
148
|
+
replacement: DB.MemberDecl<DB.String, true>;
|
|
149
|
+
}>, true>;
|
|
150
|
+
}>, []>>>;
|
|
151
|
+
}, []>>, false>;
|
|
152
|
+
}>, []>>>;
|
|
153
|
+
Rule: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"RulePrerequisite", DB.Object<{
|
|
154
|
+
id: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"ExtensionRuleIdentifier", {
|
|
155
|
+
FocusRule: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
156
|
+
OptionalRule: DB.EnumCase<DB.ReferenceIdentifier>;
|
|
157
|
+
}, []>>, true>;
|
|
158
|
+
display_option: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"DisplayOption", {
|
|
159
|
+
Hide: DB.EnumCase<null>;
|
|
160
|
+
ReplaceWith: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ReplacementDisplayOption", DB.Object<{
|
|
161
|
+
sentence_type: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SentenceType", {
|
|
162
|
+
Standalone: DB.EnumCase<null>;
|
|
163
|
+
Connected: DB.EnumCase<null>;
|
|
164
|
+
}, []>>, false>;
|
|
165
|
+
translations: DB.MemberDecl<DB.NestedEntityMap<"ReplacementDisplayOptionTranslation", {
|
|
166
|
+
replacement: DB.MemberDecl<DB.String, true>;
|
|
167
|
+
}>, true>;
|
|
168
|
+
}>, []>>>;
|
|
169
|
+
}, []>>, false>;
|
|
170
|
+
}>, []>>>;
|
|
171
|
+
SexualCharacteristic: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"SexualCharacteristicPrerequisite", DB.Object<{
|
|
172
|
+
id: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SexualCharacteristic", {
|
|
173
|
+
Penis: DB.EnumCase<null>;
|
|
174
|
+
Vagina: DB.EnumCase<null>;
|
|
175
|
+
}, []>>, true>;
|
|
176
|
+
}>, []>>>;
|
|
177
|
+
}, []>>>, []>>, false>;
|
|
178
|
+
}>, []>>>;
|
|
179
|
+
}, []>>, true>;
|
|
180
|
+
operation: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"DerivedCharacteristicModifierOperation", {
|
|
181
|
+
Addition: DB.EnumCase<null>;
|
|
182
|
+
Subtraction: DB.EnumCase<null>;
|
|
183
|
+
Multiplication: DB.EnumCase<null>;
|
|
184
|
+
Division: DB.EnumCase<null>;
|
|
185
|
+
}, []>>, true>;
|
|
186
|
+
value: DB.MemberDecl<DB.Integer, true>;
|
|
187
|
+
}>, []>>>, false>;
|
|
188
|
+
}>, []>>, true>;
|
|
189
|
+
prerequisites: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"DerivedCharacteristicPrerequisites", DB.IncludeIdentifier<DB.Param<string, DB.Type>[], DB.TypeAlias<"PlainPrerequisites", DB.Array<DB.IncludeIdentifier<DB.Param<string, DB.Type>[], DB.Enum<"PrerequisitesElement", {
|
|
190
|
+
Single: DB.EnumCase<DB.TypeArgument<DB.Param<"T", DB.Type>>>;
|
|
191
|
+
Disjunction: DB.EnumCase<DB.IncludeIdentifier<DB.Param<string, DB.Type>[], DB.TypeAlias<"PrerequisitesDisjunction", DB.Object<{
|
|
192
|
+
list: DB.MemberDecl<DB.Array<DB.TypeArgument<DB.Param<"T", DB.Type>>>, true>;
|
|
193
|
+
display_option: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"DisplayOption", {
|
|
194
|
+
Hide: DB.EnumCase<null>;
|
|
195
|
+
ReplaceWith: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ReplacementDisplayOption", DB.Object<{
|
|
196
|
+
sentence_type: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SentenceType", {
|
|
197
|
+
Standalone: DB.EnumCase<null>;
|
|
198
|
+
Connected: DB.EnumCase<null>;
|
|
199
|
+
}, []>>, false>;
|
|
200
|
+
translations: DB.MemberDecl<DB.NestedEntityMap<"ReplacementDisplayOptionTranslation", {
|
|
201
|
+
replacement: DB.MemberDecl<DB.String, true>;
|
|
202
|
+
}>, true>;
|
|
203
|
+
}>, []>>>;
|
|
204
|
+
}, []>>, false>;
|
|
205
|
+
}>, [T: DB.Param<"T", DB.Type>]>>>;
|
|
206
|
+
Group: DB.EnumCase<DB.IncludeIdentifier<DB.Param<string, DB.Type>[], DB.TypeAlias<"PrerequisiteGroup", DB.Object<{
|
|
207
|
+
list: DB.MemberDecl<DB.Array<DB.TypeArgument<DB.Param<"T", DB.Type>>>, true>;
|
|
208
|
+
translations: DB.MemberDecl<DB.NestedEntityMap<"PrerequisiteGroupTranslation", {
|
|
209
|
+
text: DB.MemberDecl<DB.String, true>;
|
|
210
|
+
}>, true>;
|
|
211
|
+
}>, [T: DB.Param<"T", DB.Type>]>>>;
|
|
212
|
+
}, [T: DB.Param<"T", DB.Type>]>>>, [T: DB.Param<"T", DB.Type>]>>, []>>, false>;
|
|
213
|
+
src: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"PublicationRefs", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"PublicationRef", DB.Object<{
|
|
214
|
+
id: DB.MemberDecl<DB.ReferenceIdentifier, true>;
|
|
215
|
+
occurrences: DB.MemberDecl<DB.NestedEntityMap<string, {
|
|
216
|
+
initial: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"InitialOccurrence", DB.Object<{
|
|
217
|
+
printing: DB.MemberDecl<DB.Integer, false>;
|
|
218
|
+
pages: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"PageRange", DB.Object<{
|
|
219
|
+
first_page: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"Page", {
|
|
220
|
+
InsideCoverFront: DB.EnumCase<null>;
|
|
221
|
+
InsideCoverBack: DB.EnumCase<null>;
|
|
222
|
+
Numbered: DB.EnumCase<DB.Integer>;
|
|
223
|
+
}, []>>, true>;
|
|
224
|
+
last_page: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"Page", {
|
|
225
|
+
InsideCoverFront: DB.EnumCase<null>;
|
|
226
|
+
InsideCoverBack: DB.EnumCase<null>;
|
|
227
|
+
Numbered: DB.EnumCase<DB.Integer>;
|
|
228
|
+
}, []>>, false>;
|
|
229
|
+
}>, []>>>, true>;
|
|
230
|
+
isRemoved: DB.MemberDecl<DB.Boolean, false>;
|
|
231
|
+
}>, []>>, true>;
|
|
232
|
+
revisions: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.Enum<"Revision", {
|
|
233
|
+
Since: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"Since", DB.Object<{
|
|
234
|
+
printing: DB.MemberDecl<DB.Integer, true>;
|
|
235
|
+
pages: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"PageRange", DB.Object<{
|
|
236
|
+
first_page: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"Page", {
|
|
237
|
+
InsideCoverFront: DB.EnumCase<null>;
|
|
238
|
+
InsideCoverBack: DB.EnumCase<null>;
|
|
239
|
+
Numbered: DB.EnumCase<DB.Integer>;
|
|
240
|
+
}, []>>, true>;
|
|
241
|
+
last_page: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"Page", {
|
|
242
|
+
InsideCoverFront: DB.EnumCase<null>;
|
|
243
|
+
InsideCoverBack: DB.EnumCase<null>;
|
|
244
|
+
Numbered: DB.EnumCase<DB.Integer>;
|
|
245
|
+
}, []>>, false>;
|
|
246
|
+
}>, []>>>, true>;
|
|
247
|
+
}>, []>>>;
|
|
248
|
+
Deprecated: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"Deprecation", DB.Object<{
|
|
249
|
+
printing: DB.MemberDecl<DB.Integer, true>;
|
|
250
|
+
}>, []>>>;
|
|
251
|
+
}, []>>>, false>;
|
|
252
|
+
}>, true>;
|
|
253
|
+
}>, []>>>, []>>, true>;
|
|
254
|
+
translations: DB.MemberDecl<DB.NestedEntityMap<"DerivedCharacteristicTranslation", {
|
|
255
|
+
name: DB.MemberDecl<DB.String, true>;
|
|
256
|
+
abbreviation: DB.MemberDecl<DB.String, true>;
|
|
257
|
+
description: DB.MemberDecl<DB.String, false>;
|
|
258
|
+
calculation: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"CalculationTranslation", DB.Object<{
|
|
259
|
+
default: DB.MemberDecl<DB.String, true>;
|
|
260
|
+
half_primary: DB.MemberDecl<DB.String, false>;
|
|
261
|
+
no_primary: DB.MemberDecl<DB.String, false>;
|
|
262
|
+
}>, []>>, false>;
|
|
263
|
+
}>, true>;
|
|
264
|
+
}, undefined>;
|
|
265
|
+
declare const DerivedCharacteristicBase: DB.TypeAlias<"DerivedCharacteristicBase", DB.IncludeIdentifier<DB.Param<string, DB.Type>[], MathOperation>, []>;
|
|
266
|
+
export declare const calculationContainsRaceBase: (base: DerivedCharacteristicBase) => boolean;
|
|
267
|
+
export {};
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { assertExhaustive } from "@elyukai/utils/typeSafety";
|
|
2
|
+
import * as DB from "tsondb/schema/dsl";
|
|
3
|
+
import { fromUniformCase } from "tsondb/schema/gen";
|
|
4
|
+
import { NestedTranslationMap } from "./Locale.js";
|
|
5
|
+
import { AttributeIdentifier } from "./_Identifier.js";
|
|
6
|
+
import { ImprovementCost } from "./_ImprovementCost.js";
|
|
7
|
+
import { MathOperation } from "./_MathExpression.js";
|
|
8
|
+
import { DerivedCharacteristicPrerequisites } from "./_Prerequisite.js";
|
|
9
|
+
import { DerivedCharacteristicModifierPrerequisiteGroup } from "./prerequisites/PrerequisiteGroups.js";
|
|
10
|
+
import { src } from "./source/_PublicationRef.js";
|
|
11
|
+
export const DerivedCharacteristic = DB.Entity(import.meta.url, {
|
|
12
|
+
name: "DerivedCharacteristic",
|
|
13
|
+
namePlural: "DerivedCharacteristics",
|
|
14
|
+
type: () => DB.Object({
|
|
15
|
+
position: DB.Required({
|
|
16
|
+
comment: "The position of the derived characteristic in lists. This has to be a unique value.",
|
|
17
|
+
type: DB.Integer({ minimum: 0 }),
|
|
18
|
+
}),
|
|
19
|
+
type: DB.Optional({
|
|
20
|
+
comment: "The derived characteristic may have a specific use in the game.",
|
|
21
|
+
type: DB.IncludeIdentifier(DerivedCharacteristicType),
|
|
22
|
+
}),
|
|
23
|
+
calculation: DB.Required({
|
|
24
|
+
comment: "Instructions for calculating the derived characteristic’s value.",
|
|
25
|
+
type: DB.IncludeIdentifier(DerivedCharacteristicCalculation),
|
|
26
|
+
}),
|
|
27
|
+
prerequisites: DB.Optional({
|
|
28
|
+
type: DB.IncludeIdentifier(DerivedCharacteristicPrerequisites),
|
|
29
|
+
}),
|
|
30
|
+
src,
|
|
31
|
+
translations: NestedTranslationMap(DB.Required, "DerivedCharacteristic", DB.Object({
|
|
32
|
+
name: DB.Required({
|
|
33
|
+
comment: "The derived characteristic’s name.",
|
|
34
|
+
type: DB.String({ minLength: 1 }),
|
|
35
|
+
}),
|
|
36
|
+
abbreviation: DB.Required({
|
|
37
|
+
comment: "The derived characteristic’s abbreviation.",
|
|
38
|
+
type: DB.String({ minLength: 1 }),
|
|
39
|
+
}),
|
|
40
|
+
description: DB.Optional({
|
|
41
|
+
comment: "The derived characteristic’s description.",
|
|
42
|
+
type: DB.String({ minLength: 1, markdown: "block" }),
|
|
43
|
+
}),
|
|
44
|
+
calculation: DB.Optional({
|
|
45
|
+
comment: "Possible calculation strings for the final value.",
|
|
46
|
+
type: DB.IncludeIdentifier(CalculationTranslation),
|
|
47
|
+
}),
|
|
48
|
+
})),
|
|
49
|
+
}),
|
|
50
|
+
instanceDisplayName: {},
|
|
51
|
+
sortOrder: {
|
|
52
|
+
keyPath: "position",
|
|
53
|
+
},
|
|
54
|
+
uniqueConstraints: [
|
|
55
|
+
{
|
|
56
|
+
keyPath: "position",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
entityMapKeyPath: "translations",
|
|
60
|
+
keyPathInEntityMap: "name",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
entityMapKeyPath: "translations",
|
|
64
|
+
keyPathInEntityMap: "abbreviation",
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
});
|
|
68
|
+
const DerivedCharacteristicType = DB.Enum(import.meta.url, {
|
|
69
|
+
name: "DerivedCharacteristicType",
|
|
70
|
+
comment: "The type of the derived characteristic, which determines how it can be used in the game.",
|
|
71
|
+
values: () => ({
|
|
72
|
+
Energy: DB.EnumCase({
|
|
73
|
+
comment: "The derived characteristic works like an energy in that it can be spent on various actions and abilities, and also be refilled based on certain conditions.",
|
|
74
|
+
type: DB.IncludeIdentifier(EnergyType),
|
|
75
|
+
}),
|
|
76
|
+
Resistance: DB.EnumCase({
|
|
77
|
+
comment: "The derived characteristic represents a resistance against certain effects.",
|
|
78
|
+
type: null,
|
|
79
|
+
}),
|
|
80
|
+
}),
|
|
81
|
+
});
|
|
82
|
+
const EnergyType = DB.TypeAlias(import.meta.url, {
|
|
83
|
+
name: "EnergyType",
|
|
84
|
+
comment: "Additional values that can be defined for an energy.",
|
|
85
|
+
type: () => DB.Object({
|
|
86
|
+
purchase: DB.Optional({
|
|
87
|
+
comment: "If set, the energy’s maximum value can be improved by spending AP.\n\nIf the energy’s permanent losses can be bought back, points will not be able to be purchased unless all permanent losses have been bought back.",
|
|
88
|
+
type: DB.IncludeIdentifier(DerivedCharacteristicPurchase),
|
|
89
|
+
}),
|
|
90
|
+
permanentLoss: DB.Optional({
|
|
91
|
+
comment: "If set, the energy can suffer permanent losses that reduce its maximum value. It may also be possible to buy back these permanent losses.",
|
|
92
|
+
type: DB.IncludeIdentifier(DerivedCharacteristicPermanentLoss),
|
|
93
|
+
}),
|
|
94
|
+
}),
|
|
95
|
+
});
|
|
96
|
+
const DerivedCharacteristicCalculation = DB.TypeAlias(import.meta.url, {
|
|
97
|
+
name: "DerivedCharacteristicCalculation",
|
|
98
|
+
type: () => DB.Object({
|
|
99
|
+
base: DB.Required({
|
|
100
|
+
comment: "The base value for the calculation.",
|
|
101
|
+
type: DB.IncludeIdentifier(DerivedCharacteristicBase),
|
|
102
|
+
}),
|
|
103
|
+
modifiers: DB.Optional({
|
|
104
|
+
comment: "A list of modifiers that are applied to the base value. The modifiers are applied in the order they appear in the list.",
|
|
105
|
+
type: DB.Array(DB.IncludeIdentifier(DerivedCharacteristicModifier), { minItems: 1 }),
|
|
106
|
+
}),
|
|
107
|
+
}),
|
|
108
|
+
});
|
|
109
|
+
const DerivedCharacteristicPrimaryAttributeValue = DB.Enum(import.meta.url, {
|
|
110
|
+
name: "DerivedCharacteristicPrimaryAttributeValue",
|
|
111
|
+
values: () => ({
|
|
112
|
+
Magical: DB.EnumCase({ type: null }),
|
|
113
|
+
Blessed: DB.EnumCase({ type: null }),
|
|
114
|
+
}),
|
|
115
|
+
});
|
|
116
|
+
const DerivedCharacteristicBaseValue = DB.Enum(import.meta.url, {
|
|
117
|
+
name: "DerivedCharacteristicBaseValue",
|
|
118
|
+
values: () => ({
|
|
119
|
+
Constant: DB.EnumCase({ type: DB.Integer() }),
|
|
120
|
+
Attribute: DB.EnumCase({ type: AttributeIdentifier() }),
|
|
121
|
+
RaceBaseValue: DB.EnumCase({ displayName: "Base Value from Race", type: null }),
|
|
122
|
+
PrimaryAttribute: DB.EnumCase({
|
|
123
|
+
type: DB.IncludeIdentifier(DerivedCharacteristicPrimaryAttributeValue),
|
|
124
|
+
}),
|
|
125
|
+
}),
|
|
126
|
+
});
|
|
127
|
+
const DerivedCharacteristicBase = DB.TypeAlias(import.meta.url, {
|
|
128
|
+
name: "DerivedCharacteristicBase",
|
|
129
|
+
type: () => DB.GenIncludeIdentifier(MathOperation, [DB.IncludeIdentifier(DerivedCharacteristicBaseValue)]),
|
|
130
|
+
});
|
|
131
|
+
export const calculationContainsRaceBase = (base) => {
|
|
132
|
+
switch (base.kind) {
|
|
133
|
+
case "Value":
|
|
134
|
+
switch (base.Value.kind) {
|
|
135
|
+
case "RaceBaseValue":
|
|
136
|
+
return true;
|
|
137
|
+
case "Constant":
|
|
138
|
+
case "Attribute":
|
|
139
|
+
case "PrimaryAttribute":
|
|
140
|
+
return false;
|
|
141
|
+
default:
|
|
142
|
+
return assertExhaustive(base.Value);
|
|
143
|
+
}
|
|
144
|
+
case "Addition":
|
|
145
|
+
case "Subtraction":
|
|
146
|
+
case "Multiplication":
|
|
147
|
+
case "Division":
|
|
148
|
+
case "Exponentiation": {
|
|
149
|
+
const [left, right] = fromUniformCase(base);
|
|
150
|
+
return calculationContainsRaceBase(left) || calculationContainsRaceBase(right);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
const DerivedCharacteristicModifierOperation = DB.Enum(import.meta.url, {
|
|
155
|
+
name: "DerivedCharacteristicModifierOperation",
|
|
156
|
+
values: () => ({
|
|
157
|
+
Addition: DB.EnumCase({ type: null }),
|
|
158
|
+
Subtraction: DB.EnumCase({ type: null }),
|
|
159
|
+
Multiplication: DB.EnumCase({ type: null }),
|
|
160
|
+
Division: DB.EnumCase({ type: null }),
|
|
161
|
+
}),
|
|
162
|
+
});
|
|
163
|
+
const DerivedCharacteristicModifier = DB.TypeAlias(import.meta.url, {
|
|
164
|
+
name: "DerivedCharacteristicModifier",
|
|
165
|
+
type: () => DB.Object({
|
|
166
|
+
source: DB.Required({
|
|
167
|
+
comment: "The entry that, when active, causes the modifier.",
|
|
168
|
+
type: DB.IncludeIdentifier(DerivedCharacteristicModifierPrerequisiteGroup),
|
|
169
|
+
}),
|
|
170
|
+
operation: DB.Required({
|
|
171
|
+
comment: "The mathematical operation that modifies the base value. The previous result is on the left side.",
|
|
172
|
+
type: DB.IncludeIdentifier(DerivedCharacteristicModifierOperation),
|
|
173
|
+
}),
|
|
174
|
+
value: DB.Required({
|
|
175
|
+
comment: "The value that is used in the modifier operation. If the source entry has levels, the value is multiplied by the source entry’s level.",
|
|
176
|
+
type: DB.Integer({ minimum: 1 }),
|
|
177
|
+
}),
|
|
178
|
+
}),
|
|
179
|
+
});
|
|
180
|
+
const DerivedCharacteristicPurchase = DB.TypeAlias(import.meta.url, {
|
|
181
|
+
name: "DerivedCharacteristicPurchase",
|
|
182
|
+
type: () => DB.Object({
|
|
183
|
+
improvementCost: DB.Required({
|
|
184
|
+
comment: "The cost for improving the derived characteristic by one.",
|
|
185
|
+
type: DB.IncludeIdentifier(ImprovementCost),
|
|
186
|
+
}),
|
|
187
|
+
maximum: DB.Required({
|
|
188
|
+
comment: "The maximum value that can be achieved for the derived characteristic through improvements.",
|
|
189
|
+
type: DB.IncludeIdentifier(DerivedCharacteristicBase),
|
|
190
|
+
}),
|
|
191
|
+
}),
|
|
192
|
+
});
|
|
193
|
+
const DerivedCharacteristicPermanentLoss = DB.TypeAlias(import.meta.url, {
|
|
194
|
+
name: "DerivedCharacteristicPermanentLoss",
|
|
195
|
+
type: () => DB.Object({
|
|
196
|
+
canBeBoughtBack: DB.Optional({
|
|
197
|
+
comment: "If set, permanent losses to the derived characteristic can be bought back for the specified cost.",
|
|
198
|
+
type: DB.IncludeIdentifier(DerivedCharacteristicBuyBack),
|
|
199
|
+
}),
|
|
200
|
+
}),
|
|
201
|
+
});
|
|
202
|
+
const DerivedCharacteristicBuyBack = DB.TypeAlias(import.meta.url, {
|
|
203
|
+
name: "DerivedCharacteristicBuyBack",
|
|
204
|
+
type: () => DB.Object({
|
|
205
|
+
cost: DB.Required({
|
|
206
|
+
comment: "The AP cost for buying back one point.",
|
|
207
|
+
type: DB.Integer({ minimum: 1 }),
|
|
208
|
+
}),
|
|
209
|
+
}),
|
|
210
|
+
});
|
|
211
|
+
const CalculationTranslation = DB.TypeAlias(import.meta.url, {
|
|
212
|
+
name: "CalculationTranslation",
|
|
213
|
+
type: () => DB.Object({
|
|
214
|
+
default: DB.Required({
|
|
215
|
+
comment: "The default calculation string.",
|
|
216
|
+
type: DB.String({ minLength: 1 }),
|
|
217
|
+
}),
|
|
218
|
+
half_primary: DB.Optional({
|
|
219
|
+
comment: "The calculation string if only half of the primary attribute is used.",
|
|
220
|
+
type: DB.String({ minLength: 1 }),
|
|
221
|
+
}),
|
|
222
|
+
no_primary: DB.Optional({
|
|
223
|
+
comment: "The calculation string if no primary attribute is used.",
|
|
224
|
+
type: DB.String({ minLength: 1 }),
|
|
225
|
+
}),
|
|
226
|
+
}),
|
|
227
|
+
});
|