@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.
Files changed (488) hide show
  1. package/AUTHORS +1 -0
  2. package/CHANGELOG.md +1789 -0
  3. package/LICENSE +378 -0
  4. package/README.md +34 -0
  5. package/gen/types.d.ts +24682 -0
  6. package/lib/cache/activatableSelectOptions.d.ts +18 -0
  7. package/lib/cache/activatableSelectOptions.js +762 -0
  8. package/lib/cache/ancestorBloodAdvantages.d.ts +4 -0
  9. package/lib/cache/ancestorBloodAdvantages.js +13 -0
  10. package/lib/cache/index.d.ts +31 -0
  11. package/lib/cache/index.js +22 -0
  12. package/lib/cache/internal.d.ts +4 -0
  13. package/lib/cache/internal.js +1 -0
  14. package/lib/cache/magicalAndBlessedAdvantagesAndDisadvantages.d.ts +3 -0
  15. package/lib/cache/magicalAndBlessedAdvantagesAndDisadvantages.js +103 -0
  16. package/lib/cache/newApplicationsAndUses.d.ts +22 -0
  17. package/lib/cache/newApplicationsAndUses.js +12 -0
  18. package/lib/main.d.ts +17 -0
  19. package/lib/main.js +226 -0
  20. package/lib/test.d.ts +1 -0
  21. package/lib/test.js +11 -0
  22. package/lib/types/Advantage.d.ts +1193 -0
  23. package/lib/types/Advantage.js +58 -0
  24. package/lib/types/AnimalDisease.d.ts +91 -0
  25. package/lib/types/AnimalDisease.js +35 -0
  26. package/lib/types/AnimalType.d.ts +6 -0
  27. package/lib/types/AnimalType.js +21 -0
  28. package/lib/types/ArcaneBardTradition.d.ts +30 -0
  29. package/lib/types/ArcaneBardTradition.js +14 -0
  30. package/lib/types/ArcaneDancerTradition.d.ts +30 -0
  31. package/lib/types/ArcaneDancerTradition.js +14 -0
  32. package/lib/types/Aspect.d.ts +7 -0
  33. package/lib/types/Aspect.js +27 -0
  34. package/lib/types/Attribute.d.ts +19 -0
  35. package/lib/types/Attribute.js +49 -0
  36. package/lib/types/Blessing.d.ts +106 -0
  37. package/lib/types/Blessing.js +102 -0
  38. package/lib/types/Cantrip.d.ts +134 -0
  39. package/lib/types/Cantrip.js +166 -0
  40. package/lib/types/Ceremony.d.ts +685 -0
  41. package/lib/types/Ceremony.js +94 -0
  42. package/lib/types/CombatTechnique.d.ts +153 -0
  43. package/lib/types/CombatTechnique.js +133 -0
  44. package/lib/types/Condition.d.ts +53 -0
  45. package/lib/types/Condition.js +38 -0
  46. package/lib/types/Continent.d.ts +6 -0
  47. package/lib/types/Continent.js +22 -0
  48. package/lib/types/Culture.d.ts +158 -0
  49. package/lib/types/Culture.js +374 -0
  50. package/lib/types/DerivedCharacteristic.d.ts +267 -0
  51. package/lib/types/DerivedCharacteristic.js +227 -0
  52. package/lib/types/Disadvantage.d.ts +1120 -0
  53. package/lib/types/Disadvantage.js +59 -0
  54. package/lib/types/Disease.d.ts +111 -0
  55. package/lib/types/Disease.js +35 -0
  56. package/lib/types/Element.d.ts +6 -0
  57. package/lib/types/Element.js +21 -0
  58. package/lib/types/ExperienceLevel.d.ts +13 -0
  59. package/lib/types/ExperienceLevel.js +56 -0
  60. package/lib/types/EyeColor.d.ts +6 -0
  61. package/lib/types/EyeColor.js +21 -0
  62. package/lib/types/FamiliarsTrick.d.ts +192 -0
  63. package/lib/types/FamiliarsTrick.js +202 -0
  64. package/lib/types/HairColor.d.ts +6 -0
  65. package/lib/types/HairColor.js +21 -0
  66. package/lib/types/HomunculusType.d.ts +6 -0
  67. package/lib/types/HomunculusType.js +15 -0
  68. package/lib/types/Influence.d.ts +80 -0
  69. package/lib/types/Influence.js +52 -0
  70. package/lib/types/Lessons.d.ts +181 -0
  71. package/lib/types/Lessons.js +230 -0
  72. package/lib/types/LiturgicalChant.d.ts +685 -0
  73. package/lib/types/LiturgicalChant.js +94 -0
  74. package/lib/types/Locale.d.ts +1607 -0
  75. package/lib/types/Locale.js +1747 -0
  76. package/lib/types/MetaCondition.d.ts +53 -0
  77. package/lib/types/MetaCondition.js +39 -0
  78. package/lib/types/PactCategory.d.ts +75 -0
  79. package/lib/types/PactCategory.js +102 -0
  80. package/lib/types/Patron.d.ts +101 -0
  81. package/lib/types/Patron.js +203 -0
  82. package/lib/types/PatronCategory.d.ts +7 -0
  83. package/lib/types/PatronCategory.js +26 -0
  84. package/lib/types/PersonalityTrait.d.ts +81 -0
  85. package/lib/types/PersonalityTrait.js +58 -0
  86. package/lib/types/Profession.d.ts +2120 -0
  87. package/lib/types/Profession.js +631 -0
  88. package/lib/types/Property.d.ts +7 -0
  89. package/lib/types/Property.js +26 -0
  90. package/lib/types/Race.d.ts +207 -0
  91. package/lib/types/Race.js +332 -0
  92. package/lib/types/Region.d.ts +6 -0
  93. package/lib/types/Region.js +21 -0
  94. package/lib/types/Ritual.d.ts +688 -0
  95. package/lib/types/Ritual.js +96 -0
  96. package/lib/types/Service.d.ts +56 -0
  97. package/lib/types/Service.js +45 -0
  98. package/lib/types/SexPractice.d.ts +51 -0
  99. package/lib/types/SexPractice.js +39 -0
  100. package/lib/types/Skill.d.ts +116 -0
  101. package/lib/types/Skill.js +139 -0
  102. package/lib/types/SkillGroup.d.ts +17 -0
  103. package/lib/types/SkillGroup.js +45 -0
  104. package/lib/types/SkillModificationLevel.d.ts +34 -0
  105. package/lib/types/SkillModificationLevel.js +116 -0
  106. package/lib/types/SocialStatus.d.ts +7 -0
  107. package/lib/types/SocialStatus.js +26 -0
  108. package/lib/types/Spell.d.ts +688 -0
  109. package/lib/types/Spell.js +96 -0
  110. package/lib/types/State.d.ts +52 -0
  111. package/lib/types/State.js +31 -0
  112. package/lib/types/Talisman.d.ts +135 -0
  113. package/lib/types/Talisman.js +168 -0
  114. package/lib/types/TargetCategory.d.ts +7 -0
  115. package/lib/types/TargetCategory.js +26 -0
  116. package/lib/types/_Activatable.d.ts +12 -0
  117. package/lib/types/_Activatable.js +43 -0
  118. package/lib/types/_ActivatableAdvanced.d.ts +50 -0
  119. package/lib/types/_ActivatableAdvanced.js +101 -0
  120. package/lib/types/_ActivatableAdventurePointsValue.d.ts +159 -0
  121. package/lib/types/_ActivatableAdventurePointsValue.js +148 -0
  122. package/lib/types/_ActivatableAutomatic.d.ts +74 -0
  123. package/lib/types/_ActivatableAutomatic.js +64 -0
  124. package/lib/types/_ActivatableCombat.d.ts +123 -0
  125. package/lib/types/_ActivatableCombat.js +350 -0
  126. package/lib/types/_ActivatableNames.d.ts +15 -0
  127. package/lib/types/_ActivatableNames.js +26 -0
  128. package/lib/types/_ActivatableNonMundane.d.ts +387 -0
  129. package/lib/types/_ActivatableNonMundane.js +536 -0
  130. package/lib/types/_ActivatableSelectOptionCategory.d.ts +1380 -0
  131. package/lib/types/_ActivatableSelectOptionCategory.js +478 -0
  132. package/lib/types/_ActivatableSelectOptions.d.ts +1077 -0
  133. package/lib/types/_ActivatableSelectOptions.js +218 -0
  134. package/lib/types/_ActivatableSkill.d.ts +1231 -0
  135. package/lib/types/_ActivatableSkill.js +89 -0
  136. package/lib/types/_ActivatableSkillApplicationsAndUses.d.ts +109 -0
  137. package/lib/types/_ActivatableSkillApplicationsAndUses.js +80 -0
  138. package/lib/types/_ActivatableSkillCastingTime.d.ts +66 -0
  139. package/lib/types/_ActivatableSkillCastingTime.js +92 -0
  140. package/lib/types/_ActivatableSkillCheckResultBased.d.ts +27 -0
  141. package/lib/types/_ActivatableSkillCheckResultBased.js +45 -0
  142. package/lib/types/_ActivatableSkillCost.d.ts +366 -0
  143. package/lib/types/_ActivatableSkillCost.js +280 -0
  144. package/lib/types/_ActivatableSkillDuration.d.ts +204 -0
  145. package/lib/types/_ActivatableSkillDuration.js +138 -0
  146. package/lib/types/_ActivatableSkillEffect.d.ts +16 -0
  147. package/lib/types/_ActivatableSkillEffect.js +65 -0
  148. package/lib/types/_ActivatableSkillRange.d.ts +62 -0
  149. package/lib/types/_ActivatableSkillRange.js +106 -0
  150. package/lib/types/_ActivatableSkillTargetCategory.d.ts +14 -0
  151. package/lib/types/_ActivatableSkillTargetCategory.js +30 -0
  152. package/lib/types/_AlternativeNames.d.ts +5 -0
  153. package/lib/types/_AlternativeNames.js +14 -0
  154. package/lib/types/_ArcaneTradition.d.ts +30 -0
  155. package/lib/types/_ArcaneTradition.js +14 -0
  156. package/lib/types/_Blessed.d.ts +8 -0
  157. package/lib/types/_Blessed.js +22 -0
  158. package/lib/types/_Color.d.ts +19 -0
  159. package/lib/types/_Color.js +27 -0
  160. package/lib/types/_CommonnessRatedAdvantageDisadvantage.d.ts +7 -0
  161. package/lib/types/_CommonnessRatedAdvantageDisadvantage.js +19 -0
  162. package/lib/types/_Dice.d.ts +6 -0
  163. package/lib/types/_Dice.js +23 -0
  164. package/lib/types/_DiseasePoison.d.ts +59 -0
  165. package/lib/types/_DiseasePoison.js +110 -0
  166. package/lib/types/_Enhancements.d.ts +170 -0
  167. package/lib/types/_Enhancements.js +80 -0
  168. package/lib/types/_Identifier.d.ts +170 -0
  169. package/lib/types/_Identifier.js +325 -0
  170. package/lib/types/_IdentifierGroup.d.ts +413 -0
  171. package/lib/types/_IdentifierGroup.js +333 -0
  172. package/lib/types/_ImprovementCost.d.ts +7 -0
  173. package/lib/types/_ImprovementCost.js +10 -0
  174. package/lib/types/_MathExpression.d.ts +12 -0
  175. package/lib/types/_MathExpression.js +36 -0
  176. package/lib/types/_Prerequisite.d.ts +421 -0
  177. package/lib/types/_Prerequisite.js +163 -0
  178. package/lib/types/_ResponsiveText.d.ts +13 -0
  179. package/lib/types/_ResponsiveText.js +43 -0
  180. package/lib/types/_Sex.d.ts +5 -0
  181. package/lib/types/_Sex.js +8 -0
  182. package/lib/types/_SizeCategory.d.ts +15 -0
  183. package/lib/types/_SizeCategory.js +24 -0
  184. package/lib/types/_SkillCheck.d.ts +11 -0
  185. package/lib/types/_SkillCheck.js +23 -0
  186. package/lib/types/_Spellwork.d.ts +17 -0
  187. package/lib/types/_Spellwork.js +39 -0
  188. package/lib/types/equipment/EquipmentPackage.d.ts +85 -0
  189. package/lib/types/equipment/EquipmentPackage.js +41 -0
  190. package/lib/types/equipment/item/Ammunition.d.ts +72 -0
  191. package/lib/types/equipment/item/Ammunition.js +44 -0
  192. package/lib/types/equipment/item/Animal.d.ts +72 -0
  193. package/lib/types/equipment/item/Animal.js +22 -0
  194. package/lib/types/equipment/item/AnimalCare.d.ts +87 -0
  195. package/lib/types/equipment/item/AnimalCare.js +58 -0
  196. package/lib/types/equipment/item/Armor.d.ts +166 -0
  197. package/lib/types/equipment/item/Armor.js +181 -0
  198. package/lib/types/equipment/item/BandageOrRemedy.d.ts +201 -0
  199. package/lib/types/equipment/item/BandageOrRemedy.js +48 -0
  200. package/lib/types/equipment/item/Book.d.ts +169 -0
  201. package/lib/types/equipment/item/Book.js +271 -0
  202. package/lib/types/equipment/item/CeremonialItem.d.ts +202 -0
  203. package/lib/types/equipment/item/CeremonialItem.js +53 -0
  204. package/lib/types/equipment/item/Clothes.d.ts +201 -0
  205. package/lib/types/equipment/item/Clothes.js +48 -0
  206. package/lib/types/equipment/item/ClothingPackage.d.ts +63 -0
  207. package/lib/types/equipment/item/ClothingPackage.js +21 -0
  208. package/lib/types/equipment/item/Container.d.ts +201 -0
  209. package/lib/types/equipment/item/Container.js +48 -0
  210. package/lib/types/equipment/item/Elixir.d.ts +119 -0
  211. package/lib/types/equipment/item/Elixir.js +110 -0
  212. package/lib/types/equipment/item/EquipmentOfBlessedOnes.d.ts +215 -0
  213. package/lib/types/equipment/item/EquipmentOfBlessedOnes.js +44 -0
  214. package/lib/types/equipment/item/GemOrPreciousStone.d.ts +74 -0
  215. package/lib/types/equipment/item/GemOrPreciousStone.js +52 -0
  216. package/lib/types/equipment/item/IlluminationLightSource.d.ts +210 -0
  217. package/lib/types/equipment/item/IlluminationLightSource.js +78 -0
  218. package/lib/types/equipment/item/IlluminationRefillOrSupply.d.ts +201 -0
  219. package/lib/types/equipment/item/IlluminationRefillOrSupply.js +48 -0
  220. package/lib/types/equipment/item/Jewelry.d.ts +74 -0
  221. package/lib/types/equipment/item/Jewelry.js +46 -0
  222. package/lib/types/equipment/item/Laboratory.d.ts +81 -0
  223. package/lib/types/equipment/item/Laboratory.js +34 -0
  224. package/lib/types/equipment/item/Liebesspielzeug.d.ts +201 -0
  225. package/lib/types/equipment/item/Liebesspielzeug.js +48 -0
  226. package/lib/types/equipment/item/LuxuryGood.d.ts +201 -0
  227. package/lib/types/equipment/item/LuxuryGood.js +48 -0
  228. package/lib/types/equipment/item/MagicalArtifact.d.ts +204 -0
  229. package/lib/types/equipment/item/MagicalArtifact.js +82 -0
  230. package/lib/types/equipment/item/MusicalInstrument.d.ts +201 -0
  231. package/lib/types/equipment/item/MusicalInstrument.js +48 -0
  232. package/lib/types/equipment/item/Newspaper.d.ts +67 -0
  233. package/lib/types/equipment/item/Newspaper.js +36 -0
  234. package/lib/types/equipment/item/OrienteeringAid.d.ts +200 -0
  235. package/lib/types/equipment/item/OrienteeringAid.js +2 -0
  236. package/lib/types/equipment/item/Poison.d.ts +621 -0
  237. package/lib/types/equipment/item/Poison.js +486 -0
  238. package/lib/types/equipment/item/RopeOrChain.d.ts +200 -0
  239. package/lib/types/equipment/item/RopeOrChain.js +2 -0
  240. package/lib/types/equipment/item/Stationery.d.ts +200 -0
  241. package/lib/types/equipment/item/Stationery.js +2 -0
  242. package/lib/types/equipment/item/ThievesTool.d.ts +200 -0
  243. package/lib/types/equipment/item/ThievesTool.js +2 -0
  244. package/lib/types/equipment/item/ToolOfTheTrade.d.ts +83 -0
  245. package/lib/types/equipment/item/ToolOfTheTrade.js +34 -0
  246. package/lib/types/equipment/item/TravelGearOrTool.d.ts +201 -0
  247. package/lib/types/equipment/item/TravelGearOrTool.js +48 -0
  248. package/lib/types/equipment/item/Vehicle.d.ts +80 -0
  249. package/lib/types/equipment/item/Vehicle.js +30 -0
  250. package/lib/types/equipment/item/Weapon.d.ts +225 -0
  251. package/lib/types/equipment/item/Weapon.js +132 -0
  252. package/lib/types/equipment/item/WeaponAccessory.d.ts +201 -0
  253. package/lib/types/equipment/item/WeaponAccessory.js +48 -0
  254. package/lib/types/equipment/item/WorkingSupernaturalCreature.d.ts +72 -0
  255. package/lib/types/equipment/item/WorkingSupernaturalCreature.js +44 -0
  256. package/lib/types/equipment/item/_Herbary.d.ts +76 -0
  257. package/lib/types/equipment/item/_Herbary.js +48 -0
  258. package/lib/types/equipment/item/_Item.d.ts +414 -0
  259. package/lib/types/equipment/item/_Item.js +254 -0
  260. package/lib/types/equipment/item/_MeleeWeapon.d.ts +62 -0
  261. package/lib/types/equipment/item/_MeleeWeapon.js +100 -0
  262. package/lib/types/equipment/item/_RangedWeapon.d.ts +38 -0
  263. package/lib/types/equipment/item/_RangedWeapon.js +93 -0
  264. package/lib/types/equipment/item/_Weapon.d.ts +25 -0
  265. package/lib/types/equipment/item/_Weapon.js +77 -0
  266. package/lib/types/equipment/item/sub/ArmorType.d.ts +7 -0
  267. package/lib/types/equipment/item/sub/ArmorType.js +25 -0
  268. package/lib/types/equipment/item/sub/Reach.d.ts +7 -0
  269. package/lib/types/equipment/item/sub/Reach.js +28 -0
  270. package/lib/types/index.d.ts +160 -0
  271. package/lib/types/index.js +160 -0
  272. package/lib/types/magicalActions/AnimistPower.d.ts +302 -0
  273. package/lib/types/magicalActions/AnimistPower.js +204 -0
  274. package/lib/types/magicalActions/AnimistPower_Tribe.d.ts +30 -0
  275. package/lib/types/magicalActions/AnimistPower_Tribe.js +26 -0
  276. package/lib/types/magicalActions/Bannzeichen.d.ts +244 -0
  277. package/lib/types/magicalActions/Bannzeichen.js +231 -0
  278. package/lib/types/magicalActions/Curse.d.ts +219 -0
  279. package/lib/types/magicalActions/Curse.js +133 -0
  280. package/lib/types/magicalActions/DominationRitual.d.ts +204 -0
  281. package/lib/types/magicalActions/DominationRitual.js +133 -0
  282. package/lib/types/magicalActions/ElvenMagicalSong.d.ts +126 -0
  283. package/lib/types/magicalActions/ElvenMagicalSong.js +117 -0
  284. package/lib/types/magicalActions/GeodeRitual.d.ts +227 -0
  285. package/lib/types/magicalActions/GeodeRitual.js +142 -0
  286. package/lib/types/magicalActions/GoblinRitual.d.ts +286 -0
  287. package/lib/types/magicalActions/GoblinRitual.js +196 -0
  288. package/lib/types/magicalActions/JesterTrick.d.ts +305 -0
  289. package/lib/types/magicalActions/JesterTrick.js +160 -0
  290. package/lib/types/magicalActions/MagicalDance.d.ts +129 -0
  291. package/lib/types/magicalActions/MagicalDance.js +119 -0
  292. package/lib/types/magicalActions/MagicalMelody.d.ts +133 -0
  293. package/lib/types/magicalActions/MagicalMelody.js +123 -0
  294. package/lib/types/magicalActions/MagicalRune.d.ts +279 -0
  295. package/lib/types/magicalActions/MagicalRune.js +292 -0
  296. package/lib/types/magicalActions/ZibiljaRitual.d.ts +420 -0
  297. package/lib/types/magicalActions/ZibiljaRitual.js +90 -0
  298. package/lib/types/magicalActions/_MusicTradition.d.ts +17 -0
  299. package/lib/types/magicalActions/_MusicTradition.js +43 -0
  300. package/lib/types/prerequisites/ConditionalPrerequisites.d.ts +42 -0
  301. package/lib/types/prerequisites/ConditionalPrerequisites.js +9 -0
  302. package/lib/types/prerequisites/DisplayOption.d.ts +13 -0
  303. package/lib/types/prerequisites/DisplayOption.js +27 -0
  304. package/lib/types/prerequisites/PrerequisiteGroups.d.ts +2053 -0
  305. package/lib/types/prerequisites/PrerequisiteGroups.js +180 -0
  306. package/lib/types/prerequisites/single/ActivatablePrerequisite.d.ts +133 -0
  307. package/lib/types/prerequisites/single/ActivatablePrerequisite.js +32 -0
  308. package/lib/types/prerequisites/single/AncestorBloodPrerequisite.d.ts +4 -0
  309. package/lib/types/prerequisites/single/AncestorBloodPrerequisite.js +4 -0
  310. package/lib/types/prerequisites/single/AnimistPowerPrerequisite.d.ts +18 -0
  311. package/lib/types/prerequisites/single/AnimistPowerPrerequisite.js +24 -0
  312. package/lib/types/prerequisites/single/CulturePrerequisite.d.ts +16 -0
  313. package/lib/types/prerequisites/single/CulturePrerequisite.js +16 -0
  314. package/lib/types/prerequisites/single/EnhancementPrerequisite.d.ts +4 -0
  315. package/lib/types/prerequisites/single/EnhancementPrerequisite.js +12 -0
  316. package/lib/types/prerequisites/single/InfluencePrerequisite.d.ts +17 -0
  317. package/lib/types/prerequisites/single/InfluencePrerequisite.js +19 -0
  318. package/lib/types/prerequisites/single/PactPrerequisite.d.ts +18 -0
  319. package/lib/types/prerequisites/single/PactPrerequisite.js +24 -0
  320. package/lib/types/prerequisites/single/PersonalityTraitPrerequisite.d.ts +17 -0
  321. package/lib/types/prerequisites/single/PersonalityTraitPrerequisite.js +19 -0
  322. package/lib/types/prerequisites/single/PrimaryAttributePrerequisite.d.ts +20 -0
  323. package/lib/types/prerequisites/single/PrimaryAttributePrerequisite.js +25 -0
  324. package/lib/types/prerequisites/single/ProfessionPrerequisite.d.ts +16 -0
  325. package/lib/types/prerequisites/single/ProfessionPrerequisite.js +16 -0
  326. package/lib/types/prerequisites/single/PublicationPrerequisite.d.ts +16 -0
  327. package/lib/types/prerequisites/single/PublicationPrerequisite.js +15 -0
  328. package/lib/types/prerequisites/single/RacePrerequisite.d.ts +17 -0
  329. package/lib/types/prerequisites/single/RacePrerequisite.js +19 -0
  330. package/lib/types/prerequisites/single/RatedMinimumNumberPrerequisite.d.ts +51 -0
  331. package/lib/types/prerequisites/single/RatedMinimumNumberPrerequisite.js +82 -0
  332. package/lib/types/prerequisites/single/RatedPrerequisite.d.ts +26 -0
  333. package/lib/types/prerequisites/single/RatedPrerequisite.js +19 -0
  334. package/lib/types/prerequisites/single/RatedSumPrerequisite.d.ts +17 -0
  335. package/lib/types/prerequisites/single/RatedSumPrerequisite.js +19 -0
  336. package/lib/types/prerequisites/single/RulePrerequisite.d.ts +19 -0
  337. package/lib/types/prerequisites/single/RulePrerequisite.js +15 -0
  338. package/lib/types/prerequisites/single/SexPrerequisite.d.ts +19 -0
  339. package/lib/types/prerequisites/single/SexPrerequisite.js +15 -0
  340. package/lib/types/prerequisites/single/SexualCharacteristicPrerequisite.d.ts +7 -0
  341. package/lib/types/prerequisites/single/SexualCharacteristicPrerequisite.js +17 -0
  342. package/lib/types/prerequisites/single/SocialStatusPrerequisite.d.ts +16 -0
  343. package/lib/types/prerequisites/single/SocialStatusPrerequisite.js +16 -0
  344. package/lib/types/prerequisites/single/StatePrerequisite.d.ts +16 -0
  345. package/lib/types/prerequisites/single/StatePrerequisite.js +15 -0
  346. package/lib/types/prerequisites/single/TextPrerequisite.d.ts +19 -0
  347. package/lib/types/prerequisites/single/TextPrerequisite.js +53 -0
  348. package/lib/types/prerequisites/single/TraditionPrerequisite.d.ts +37 -0
  349. package/lib/types/prerequisites/single/TraditionPrerequisite.js +42 -0
  350. package/lib/types/rule/AlternativeRule.d.ts +54 -0
  351. package/lib/types/rule/AlternativeRule.js +40 -0
  352. package/lib/types/rule/AlternativeRule_PlayerType.d.ts +6 -0
  353. package/lib/types/rule/AlternativeRule_PlayerType.js +16 -0
  354. package/lib/types/rule/CoreRule.d.ts +143 -0
  355. package/lib/types/rule/CoreRule.js +181 -0
  356. package/lib/types/rule/FocusRule.d.ts +79 -0
  357. package/lib/types/rule/FocusRule.js +48 -0
  358. package/lib/types/rule/FocusRule_Subject.d.ts +6 -0
  359. package/lib/types/rule/FocusRule_Subject.js +22 -0
  360. package/lib/types/rule/OptionalRule.d.ts +83 -0
  361. package/lib/types/rule/OptionalRule.js +59 -0
  362. package/lib/types/source/Publication.d.ts +50 -0
  363. package/lib/types/source/Publication.js +64 -0
  364. package/lib/types/source/_Erratum.d.ts +12 -0
  365. package/lib/types/source/_Erratum.js +22 -0
  366. package/lib/types/source/_PublicationRef.d.ts +168 -0
  367. package/lib/types/source/_PublicationRef.js +164 -0
  368. package/lib/types/specialAbility/AdvancedCombatSpecialAbility.d.ts +1234 -0
  369. package/lib/types/specialAbility/AdvancedCombatSpecialAbility.js +52 -0
  370. package/lib/types/specialAbility/AdvancedKarmaSpecialAbility.d.ts +1116 -0
  371. package/lib/types/specialAbility/AdvancedKarmaSpecialAbility.js +47 -0
  372. package/lib/types/specialAbility/AdvancedMagicalSpecialAbility.d.ts +1116 -0
  373. package/lib/types/specialAbility/AdvancedMagicalSpecialAbility.js +47 -0
  374. package/lib/types/specialAbility/AdvancedSkillSpecialAbility.d.ts +1116 -0
  375. package/lib/types/specialAbility/AdvancedSkillSpecialAbility.js +47 -0
  376. package/lib/types/specialAbility/AncestorGlyph.d.ts +1063 -0
  377. package/lib/types/specialAbility/AncestorGlyph.js +48 -0
  378. package/lib/types/specialAbility/BlessedTradition.d.ts +1141 -0
  379. package/lib/types/specialAbility/BlessedTradition.js +147 -0
  380. package/lib/types/specialAbility/BrawlingSpecialAbility.d.ts +1127 -0
  381. package/lib/types/specialAbility/BrawlingSpecialAbility.js +46 -0
  382. package/lib/types/specialAbility/CeremonialItemSpecialAbility.d.ts +1117 -0
  383. package/lib/types/specialAbility/CeremonialItemSpecialAbility.js +53 -0
  384. package/lib/types/specialAbility/CombatSpecialAbility.d.ts +1235 -0
  385. package/lib/types/specialAbility/CombatSpecialAbility.js +52 -0
  386. package/lib/types/specialAbility/CombatStyleSpecialAbility.d.ts +1286 -0
  387. package/lib/types/specialAbility/CombatStyleSpecialAbility.js +54 -0
  388. package/lib/types/specialAbility/CommandSpecialAbility.d.ts +1127 -0
  389. package/lib/types/specialAbility/CommandSpecialAbility.js +46 -0
  390. package/lib/types/specialAbility/FamiliarSpecialAbility.d.ts +1062 -0
  391. package/lib/types/specialAbility/FamiliarSpecialAbility.js +43 -0
  392. package/lib/types/specialAbility/FatePointSexSpecialAbility.d.ts +1062 -0
  393. package/lib/types/specialAbility/FatePointSexSpecialAbility.js +43 -0
  394. package/lib/types/specialAbility/FatePointSpecialAbility.d.ts +1116 -0
  395. package/lib/types/specialAbility/FatePointSpecialAbility.js +46 -0
  396. package/lib/types/specialAbility/GeneralSpecialAbility.d.ts +1117 -0
  397. package/lib/types/specialAbility/GeneralSpecialAbility.js +47 -0
  398. package/lib/types/specialAbility/KarmaSpecialAbility.d.ts +1062 -0
  399. package/lib/types/specialAbility/KarmaSpecialAbility.js +43 -0
  400. package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.d.ts +1165 -0
  401. package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.js +49 -0
  402. package/lib/types/specialAbility/LycantropicGift.d.ts +1062 -0
  403. package/lib/types/specialAbility/LycantropicGift.js +43 -0
  404. package/lib/types/specialAbility/MagicStyleSpecialAbility.d.ts +1165 -0
  405. package/lib/types/specialAbility/MagicStyleSpecialAbility.js +49 -0
  406. package/lib/types/specialAbility/MagicalSign.d.ts +127 -0
  407. package/lib/types/specialAbility/MagicalSign.js +66 -0
  408. package/lib/types/specialAbility/MagicalSpecialAbility.d.ts +1117 -0
  409. package/lib/types/specialAbility/MagicalSpecialAbility.js +47 -0
  410. package/lib/types/specialAbility/MagicalTradition.d.ts +1138 -0
  411. package/lib/types/specialAbility/MagicalTradition.js +115 -0
  412. package/lib/types/specialAbility/PactGift.d.ts +1143 -0
  413. package/lib/types/specialAbility/PactGift.js +76 -0
  414. package/lib/types/specialAbility/ProtectiveWardingCircleSpecialAbility.d.ts +1064 -0
  415. package/lib/types/specialAbility/ProtectiveWardingCircleSpecialAbility.js +54 -0
  416. package/lib/types/specialAbility/Sermon.d.ts +1062 -0
  417. package/lib/types/specialAbility/Sermon.js +43 -0
  418. package/lib/types/specialAbility/SexSpecialAbility.d.ts +1116 -0
  419. package/lib/types/specialAbility/SexSpecialAbility.js +46 -0
  420. package/lib/types/specialAbility/SikaryanDrainSpecialAbility.d.ts +1062 -0
  421. package/lib/types/specialAbility/SikaryanDrainSpecialAbility.js +43 -0
  422. package/lib/types/specialAbility/SkillStyleSpecialAbility.d.ts +1111 -0
  423. package/lib/types/specialAbility/SkillStyleSpecialAbility.js +46 -0
  424. package/lib/types/specialAbility/VampiricGift.d.ts +1062 -0
  425. package/lib/types/specialAbility/VampiricGift.js +43 -0
  426. package/lib/types/specialAbility/Vision.d.ts +1062 -0
  427. package/lib/types/specialAbility/Vision.js +43 -0
  428. package/lib/types/specialAbility/_Tradition.d.ts +5 -0
  429. package/lib/types/specialAbility/_Tradition.js +14 -0
  430. package/lib/types/specialAbility/sub/Language.d.ts +108 -0
  431. package/lib/types/specialAbility/sub/Language.js +98 -0
  432. package/lib/types/specialAbility/sub/Script.d.ts +62 -0
  433. package/lib/types/specialAbility/sub/Script.js +50 -0
  434. package/lib/types/specialAbility/sub/TradeSecret.d.ts +972 -0
  435. package/lib/types/specialAbility/sub/TradeSecret.js +76 -0
  436. package/lib/types/specialAbility/sub/_LanguageScript.d.ts +5 -0
  437. package/lib/types/specialAbility/sub/_LanguageScript.js +15 -0
  438. package/lib/types/traditionArtifacts/ArcaneOrbEnchantment.d.ts +1282 -0
  439. package/lib/types/traditionArtifacts/ArcaneOrbEnchantment.js +50 -0
  440. package/lib/types/traditionArtifacts/AttireEnchantment.d.ts +1282 -0
  441. package/lib/types/traditionArtifacts/AttireEnchantment.js +50 -0
  442. package/lib/types/traditionArtifacts/Beutelzauber.d.ts +1282 -0
  443. package/lib/types/traditionArtifacts/Beutelzauber.js +50 -0
  444. package/lib/types/traditionArtifacts/BowlEnchantment.d.ts +1282 -0
  445. package/lib/types/traditionArtifacts/BowlEnchantment.js +50 -0
  446. package/lib/types/traditionArtifacts/CauldronEnchantment.d.ts +1283 -0
  447. package/lib/types/traditionArtifacts/CauldronEnchantment.js +55 -0
  448. package/lib/types/traditionArtifacts/ChronicleEnchantment.d.ts +1282 -0
  449. package/lib/types/traditionArtifacts/ChronicleEnchantment.js +50 -0
  450. package/lib/types/traditionArtifacts/DaggerRitual.d.ts +1294 -0
  451. package/lib/types/traditionArtifacts/DaggerRitual.js +85 -0
  452. package/lib/types/traditionArtifacts/FoolsHatEnchantment.d.ts +1282 -0
  453. package/lib/types/traditionArtifacts/FoolsHatEnchantment.js +52 -0
  454. package/lib/types/traditionArtifacts/Haubenzauber.d.ts +1282 -0
  455. package/lib/types/traditionArtifacts/Haubenzauber.js +50 -0
  456. package/lib/types/traditionArtifacts/InstrumentEnchantment.d.ts +1282 -0
  457. package/lib/types/traditionArtifacts/InstrumentEnchantment.js +50 -0
  458. package/lib/types/traditionArtifacts/Krallenkettenzauber.d.ts +1282 -0
  459. package/lib/types/traditionArtifacts/Krallenkettenzauber.js +50 -0
  460. package/lib/types/traditionArtifacts/Kristallkugelzauber.d.ts +1282 -0
  461. package/lib/types/traditionArtifacts/Kristallkugelzauber.js +50 -0
  462. package/lib/types/traditionArtifacts/OrbEnchantment.d.ts +1282 -0
  463. package/lib/types/traditionArtifacts/OrbEnchantment.js +50 -0
  464. package/lib/types/traditionArtifacts/RingEnchantment.d.ts +1282 -0
  465. package/lib/types/traditionArtifacts/RingEnchantment.js +50 -0
  466. package/lib/types/traditionArtifacts/SickleRitual.d.ts +1282 -0
  467. package/lib/types/traditionArtifacts/SickleRitual.js +50 -0
  468. package/lib/types/traditionArtifacts/SpellSwordEnchantment.d.ts +1282 -0
  469. package/lib/types/traditionArtifacts/SpellSwordEnchantment.js +50 -0
  470. package/lib/types/traditionArtifacts/StaffEnchantment.d.ts +1286 -0
  471. package/lib/types/traditionArtifacts/StaffEnchantment.js +55 -0
  472. package/lib/types/traditionArtifacts/ToyEnchantment.d.ts +1282 -0
  473. package/lib/types/traditionArtifacts/ToyEnchantment.js +50 -0
  474. package/lib/types/traditionArtifacts/Trinkhornzauber.d.ts +1282 -0
  475. package/lib/types/traditionArtifacts/Trinkhornzauber.js +50 -0
  476. package/lib/types/traditionArtifacts/WandEnchantment.d.ts +1231 -0
  477. package/lib/types/traditionArtifacts/WandEnchantment.js +49 -0
  478. package/lib/types/traditionArtifacts/WeaponEnchantment.d.ts +1282 -0
  479. package/lib/types/traditionArtifacts/WeaponEnchantment.js +50 -0
  480. package/lib/types/traditionArtifacts/sub/AnimalShape.d.ts +8 -0
  481. package/lib/types/traditionArtifacts/sub/AnimalShape.js +24 -0
  482. package/lib/types/traditionArtifacts/sub/AnimalShapePath.d.ts +6 -0
  483. package/lib/types/traditionArtifacts/sub/AnimalShapePath.js +15 -0
  484. package/lib/types/traditionArtifacts/sub/AnimalShapeSize.d.ts +8 -0
  485. package/lib/types/traditionArtifacts/sub/AnimalShapeSize.js +23 -0
  486. package/lib/types/traditionArtifacts/sub/Brew.d.ts +6 -0
  487. package/lib/types/traditionArtifacts/sub/Brew.js +15 -0
  488. package/package.json +61 -0
@@ -0,0 +1,366 @@
1
+ import * as DB from "tsondb/schema/dsl";
2
+ export declare const OneTimeCost: DB.Enum<"OneTimeCost", {
3
+ Single: DB.EnumCase<DB.IncludeIdentifier<[], DB.Enum<"SingleOneTimeCost", {
4
+ Modifiable: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ModifiableOneTimeCost", DB.Object<{
5
+ initial_modification_level: DB.MemberDecl<DB.ReferenceIdentifier, true>;
6
+ permanent_value: DB.MemberDecl<DB.Integer, false>;
7
+ translations: DB.MemberDecl<DB.NestedEntityMap<"ModifiableOneTimeCostTranslation", {
8
+ replacement: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextReplace", DB.Object<{
9
+ full: DB.MemberDecl<DB.String, true>;
10
+ compressed: DB.MemberDecl<DB.String, true>;
11
+ }>, []>>, true>;
12
+ }>, false>;
13
+ }>, []>>>;
14
+ NonModifiable: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"NonModifiableOneTimeCost", DB.Object<{
15
+ is_minimum: DB.MemberDecl<DB.Boolean, false>;
16
+ value: DB.MemberDecl<DB.Integer, true>;
17
+ permanent_value: DB.MemberDecl<DB.Integer, false>;
18
+ per: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"NonModifiableOneTimeCostPerCountable", DB.Object<{
19
+ minimum_total: DB.MemberDecl<DB.Integer, false>;
20
+ translations: DB.MemberDecl<DB.NestedEntityMap<"NonModifiableOneTimeCostPerCountableTranslation", {
21
+ countable: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveText", DB.Object<{
22
+ full: DB.MemberDecl<DB.String, true>;
23
+ compressed: DB.MemberDecl<DB.String, true>;
24
+ }>, []>>, true>;
25
+ }>, true>;
26
+ }>, []>>, false>;
27
+ translations: DB.MemberDecl<DB.NestedEntityMap<"NonModifiableOneTimeCostTranslation", {
28
+ note: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
29
+ full: DB.MemberDecl<DB.String, true>;
30
+ compressed: DB.MemberDecl<DB.String, false>;
31
+ }>, []>>, true>;
32
+ }>, false>;
33
+ }>, []>>>;
34
+ Indefinite: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"IndefiniteOneTimeCost", DB.Object<{
35
+ translations: DB.MemberDecl<DB.NestedEntityMap<"IndefiniteOneTimeCostTranslation", {
36
+ description: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveText", DB.Object<{
37
+ full: DB.MemberDecl<DB.String, true>;
38
+ compressed: DB.MemberDecl<DB.String, true>;
39
+ }>, []>>, true>;
40
+ }>, true>;
41
+ }>, []>>>;
42
+ }, []>>>;
43
+ Conjunction: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"MultipleOneTimeCosts", DB.Array<DB.IncludeIdentifier<[], DB.Enum<"SingleOneTimeCost", {
44
+ Modifiable: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ModifiableOneTimeCost", DB.Object<{
45
+ initial_modification_level: DB.MemberDecl<DB.ReferenceIdentifier, true>;
46
+ permanent_value: DB.MemberDecl<DB.Integer, false>;
47
+ translations: DB.MemberDecl<DB.NestedEntityMap<"ModifiableOneTimeCostTranslation", {
48
+ replacement: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextReplace", DB.Object<{
49
+ full: DB.MemberDecl<DB.String, true>;
50
+ compressed: DB.MemberDecl<DB.String, true>;
51
+ }>, []>>, true>;
52
+ }>, false>;
53
+ }>, []>>>;
54
+ NonModifiable: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"NonModifiableOneTimeCost", DB.Object<{
55
+ is_minimum: DB.MemberDecl<DB.Boolean, false>;
56
+ value: DB.MemberDecl<DB.Integer, true>;
57
+ permanent_value: DB.MemberDecl<DB.Integer, false>;
58
+ per: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"NonModifiableOneTimeCostPerCountable", DB.Object<{
59
+ minimum_total: DB.MemberDecl<DB.Integer, false>;
60
+ translations: DB.MemberDecl<DB.NestedEntityMap<"NonModifiableOneTimeCostPerCountableTranslation", {
61
+ countable: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveText", DB.Object<{
62
+ full: DB.MemberDecl<DB.String, true>;
63
+ compressed: DB.MemberDecl<DB.String, true>;
64
+ }>, []>>, true>;
65
+ }>, true>;
66
+ }>, []>>, false>;
67
+ translations: DB.MemberDecl<DB.NestedEntityMap<"NonModifiableOneTimeCostTranslation", {
68
+ note: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
69
+ full: DB.MemberDecl<DB.String, true>;
70
+ compressed: DB.MemberDecl<DB.String, false>;
71
+ }>, []>>, true>;
72
+ }>, false>;
73
+ }>, []>>>;
74
+ Indefinite: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"IndefiniteOneTimeCost", DB.Object<{
75
+ translations: DB.MemberDecl<DB.NestedEntityMap<"IndefiniteOneTimeCostTranslation", {
76
+ description: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveText", DB.Object<{
77
+ full: DB.MemberDecl<DB.String, true>;
78
+ compressed: DB.MemberDecl<DB.String, true>;
79
+ }>, []>>, true>;
80
+ }>, true>;
81
+ }>, []>>>;
82
+ }, []>>>, []>>>;
83
+ Disjunction: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"MultipleOneTimeCosts", DB.Array<DB.IncludeIdentifier<[], DB.Enum<"SingleOneTimeCost", {
84
+ Modifiable: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ModifiableOneTimeCost", DB.Object<{
85
+ initial_modification_level: DB.MemberDecl<DB.ReferenceIdentifier, true>;
86
+ permanent_value: DB.MemberDecl<DB.Integer, false>;
87
+ translations: DB.MemberDecl<DB.NestedEntityMap<"ModifiableOneTimeCostTranslation", {
88
+ replacement: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextReplace", DB.Object<{
89
+ full: DB.MemberDecl<DB.String, true>;
90
+ compressed: DB.MemberDecl<DB.String, true>;
91
+ }>, []>>, true>;
92
+ }>, false>;
93
+ }>, []>>>;
94
+ NonModifiable: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"NonModifiableOneTimeCost", DB.Object<{
95
+ is_minimum: DB.MemberDecl<DB.Boolean, false>;
96
+ value: DB.MemberDecl<DB.Integer, true>;
97
+ permanent_value: DB.MemberDecl<DB.Integer, false>;
98
+ per: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"NonModifiableOneTimeCostPerCountable", DB.Object<{
99
+ minimum_total: DB.MemberDecl<DB.Integer, false>;
100
+ translations: DB.MemberDecl<DB.NestedEntityMap<"NonModifiableOneTimeCostPerCountableTranslation", {
101
+ countable: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveText", DB.Object<{
102
+ full: DB.MemberDecl<DB.String, true>;
103
+ compressed: DB.MemberDecl<DB.String, true>;
104
+ }>, []>>, true>;
105
+ }>, true>;
106
+ }>, []>>, false>;
107
+ translations: DB.MemberDecl<DB.NestedEntityMap<"NonModifiableOneTimeCostTranslation", {
108
+ note: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
109
+ full: DB.MemberDecl<DB.String, true>;
110
+ compressed: DB.MemberDecl<DB.String, false>;
111
+ }>, []>>, true>;
112
+ }>, false>;
113
+ }>, []>>>;
114
+ Indefinite: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"IndefiniteOneTimeCost", DB.Object<{
115
+ translations: DB.MemberDecl<DB.NestedEntityMap<"IndefiniteOneTimeCostTranslation", {
116
+ description: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveText", DB.Object<{
117
+ full: DB.MemberDecl<DB.String, true>;
118
+ compressed: DB.MemberDecl<DB.String, true>;
119
+ }>, []>>, true>;
120
+ }>, true>;
121
+ }>, []>>>;
122
+ }, []>>>, []>>>;
123
+ Map: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"OneTimeCostMap", DB.Object<{
124
+ options: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"OneTimeCostMapOption", DB.Object<{
125
+ value: DB.MemberDecl<DB.Integer, true>;
126
+ permanent_value: DB.MemberDecl<DB.Integer, false>;
127
+ translations: DB.MemberDecl<DB.NestedEntityMap<"OneTimeCostMapOptionTranslation", {
128
+ label: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
129
+ full: DB.MemberDecl<DB.String, true>;
130
+ compressed: DB.MemberDecl<DB.String, false>;
131
+ }>, []>>, true>;
132
+ label_standalone: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
133
+ full: DB.MemberDecl<DB.String, true>;
134
+ compressed: DB.MemberDecl<DB.String, false>;
135
+ }>, []>>, false>;
136
+ }>, false>;
137
+ }>, []>>>, true>;
138
+ style: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"MapStyle", {
139
+ Compressed: DB.EnumCase<null>;
140
+ Verbose: DB.EnumCase<null>;
141
+ }, []>>, false>;
142
+ translations: DB.MemberDecl<DB.NestedEntityMap<"OneTimeCostMapTranslation", {
143
+ list_prepend: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
144
+ full: DB.MemberDecl<DB.String, true>;
145
+ compressed: DB.MemberDecl<DB.String, false>;
146
+ }>, []>>, false>;
147
+ list_append: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
148
+ full: DB.MemberDecl<DB.String, true>;
149
+ compressed: DB.MemberDecl<DB.String, false>;
150
+ }>, []>>, false>;
151
+ replacement: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
152
+ full: DB.MemberDecl<DB.String, true>;
153
+ compressed: DB.MemberDecl<DB.String, false>;
154
+ }>, []>>, false>;
155
+ }>, false>;
156
+ }>, []>>>;
157
+ }, []>;
158
+ export declare const NonModifiableOneTimeCost: DB.TypeAlias<"NonModifiableOneTimeCost", DB.Object<{
159
+ is_minimum: DB.MemberDecl<DB.Boolean, false>;
160
+ value: DB.MemberDecl<DB.Integer, true>;
161
+ permanent_value: DB.MemberDecl<DB.Integer, false>;
162
+ per: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"NonModifiableOneTimeCostPerCountable", DB.Object<{
163
+ minimum_total: DB.MemberDecl<DB.Integer, false>;
164
+ translations: DB.MemberDecl<DB.NestedEntityMap<"NonModifiableOneTimeCostPerCountableTranslation", {
165
+ countable: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveText", DB.Object<{
166
+ full: DB.MemberDecl<DB.String, true>;
167
+ compressed: DB.MemberDecl<DB.String, true>;
168
+ }>, []>>, true>;
169
+ }>, true>;
170
+ }>, []>>, false>;
171
+ translations: DB.MemberDecl<DB.NestedEntityMap<"NonModifiableOneTimeCostTranslation", {
172
+ note: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
173
+ full: DB.MemberDecl<DB.String, true>;
174
+ compressed: DB.MemberDecl<DB.String, false>;
175
+ }>, []>>, true>;
176
+ }>, false>;
177
+ }>, []>;
178
+ export declare const NonModifiableOneTimeCostPerCountable: DB.TypeAlias<"NonModifiableOneTimeCostPerCountable", DB.Object<{
179
+ minimum_total: DB.MemberDecl<DB.Integer, false>;
180
+ translations: DB.MemberDecl<DB.NestedEntityMap<"NonModifiableOneTimeCostPerCountableTranslation", {
181
+ countable: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveText", DB.Object<{
182
+ full: DB.MemberDecl<DB.String, true>;
183
+ compressed: DB.MemberDecl<DB.String, true>;
184
+ }>, []>>, true>;
185
+ }>, true>;
186
+ }>, []>;
187
+ export declare const IndefiniteOneTimeCost: DB.TypeAlias<"IndefiniteOneTimeCost", DB.Object<{
188
+ translations: DB.MemberDecl<DB.NestedEntityMap<"IndefiniteOneTimeCostTranslation", {
189
+ description: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveText", DB.Object<{
190
+ full: DB.MemberDecl<DB.String, true>;
191
+ compressed: DB.MemberDecl<DB.String, true>;
192
+ }>, []>>, true>;
193
+ }>, true>;
194
+ }>, []>;
195
+ export declare const OneTimeCostMap: DB.TypeAlias<"OneTimeCostMap", DB.Object<{
196
+ options: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"OneTimeCostMapOption", DB.Object<{
197
+ value: DB.MemberDecl<DB.Integer, true>;
198
+ permanent_value: DB.MemberDecl<DB.Integer, false>;
199
+ translations: DB.MemberDecl<DB.NestedEntityMap<"OneTimeCostMapOptionTranslation", {
200
+ label: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
201
+ full: DB.MemberDecl<DB.String, true>;
202
+ compressed: DB.MemberDecl<DB.String, false>;
203
+ }>, []>>, true>;
204
+ label_standalone: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
205
+ full: DB.MemberDecl<DB.String, true>;
206
+ compressed: DB.MemberDecl<DB.String, false>;
207
+ }>, []>>, false>;
208
+ }>, false>;
209
+ }>, []>>>, true>;
210
+ style: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"MapStyle", {
211
+ Compressed: DB.EnumCase<null>;
212
+ Verbose: DB.EnumCase<null>;
213
+ }, []>>, false>;
214
+ translations: DB.MemberDecl<DB.NestedEntityMap<"OneTimeCostMapTranslation", {
215
+ list_prepend: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
216
+ full: DB.MemberDecl<DB.String, true>;
217
+ compressed: DB.MemberDecl<DB.String, false>;
218
+ }>, []>>, false>;
219
+ list_append: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
220
+ full: DB.MemberDecl<DB.String, true>;
221
+ compressed: DB.MemberDecl<DB.String, false>;
222
+ }>, []>>, false>;
223
+ replacement: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
224
+ full: DB.MemberDecl<DB.String, true>;
225
+ compressed: DB.MemberDecl<DB.String, false>;
226
+ }>, []>>, false>;
227
+ }>, false>;
228
+ }>, []>;
229
+ export declare const MapStyle: DB.Enum<"MapStyle", {
230
+ Compressed: DB.EnumCase<null>;
231
+ Verbose: DB.EnumCase<null>;
232
+ }, []>;
233
+ export declare const SustainedCost: DB.Enum<"SustainedCost", {
234
+ Modifiable: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ModifiableSustainedCost", DB.Object<{
235
+ initial_modification_level: DB.MemberDecl<DB.ReferenceIdentifier, true>;
236
+ interval: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"DurationUnitValue", DB.Object<{
237
+ value: DB.MemberDecl<DB.Integer, true>;
238
+ unit: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"DurationUnit", {
239
+ Seconds: DB.EnumCase<null>;
240
+ Minutes: DB.EnumCase<null>;
241
+ Hours: DB.EnumCase<null>;
242
+ Days: DB.EnumCase<null>;
243
+ Weeks: DB.EnumCase<null>;
244
+ Months: DB.EnumCase<null>;
245
+ Years: DB.EnumCase<null>;
246
+ Centuries: DB.EnumCase<null>;
247
+ Actions: DB.EnumCase<null>;
248
+ CombatRounds: DB.EnumCase<null>;
249
+ }, []>>, true>;
250
+ }>, []>>, true>;
251
+ }>, []>>>;
252
+ NonModifiable: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"NonModifiableSustainedCost", DB.Object<{
253
+ is_minimum: DB.MemberDecl<DB.Boolean, false>;
254
+ value: DB.MemberDecl<DB.Integer, true>;
255
+ per: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"NonModifiableSustainedCostPerCountable", DB.Object<{
256
+ minimum_total: DB.MemberDecl<DB.Integer, false>;
257
+ translations: DB.MemberDecl<DB.NestedEntityMap<"NonModifiableSustainedCostPerCountableTranslation", {
258
+ countable: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveText", DB.Object<{
259
+ full: DB.MemberDecl<DB.String, true>;
260
+ compressed: DB.MemberDecl<DB.String, true>;
261
+ }>, []>>, true>;
262
+ }>, true>;
263
+ }>, []>>, false>;
264
+ interval: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"DurationUnitValue", DB.Object<{
265
+ value: DB.MemberDecl<DB.Integer, true>;
266
+ unit: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"DurationUnit", {
267
+ Seconds: DB.EnumCase<null>;
268
+ Minutes: DB.EnumCase<null>;
269
+ Hours: DB.EnumCase<null>;
270
+ Days: DB.EnumCase<null>;
271
+ Weeks: DB.EnumCase<null>;
272
+ Months: DB.EnumCase<null>;
273
+ Years: DB.EnumCase<null>;
274
+ Centuries: DB.EnumCase<null>;
275
+ Actions: DB.EnumCase<null>;
276
+ CombatRounds: DB.EnumCase<null>;
277
+ }, []>>, true>;
278
+ }>, []>>, true>;
279
+ }>, []>>>;
280
+ Map: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"SustainedCostMap", DB.Object<{
281
+ options: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SustainedCostMapOption", DB.Object<{
282
+ value: DB.MemberDecl<DB.Integer, true>;
283
+ translations: DB.MemberDecl<DB.NestedEntityMap<"SustainedCostMapOptionTranslation", {
284
+ label: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
285
+ full: DB.MemberDecl<DB.String, true>;
286
+ compressed: DB.MemberDecl<DB.String, false>;
287
+ }>, []>>, true>;
288
+ standaloneLabel: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
289
+ full: DB.MemberDecl<DB.String, true>;
290
+ compressed: DB.MemberDecl<DB.String, false>;
291
+ }>, []>>, false>;
292
+ }>, false>;
293
+ }>, []>>>, true>;
294
+ translations: DB.MemberDecl<DB.NestedEntityMap<"SustainedCostMapTranslation", {
295
+ listPrefix: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
296
+ full: DB.MemberDecl<DB.String, true>;
297
+ compressed: DB.MemberDecl<DB.String, false>;
298
+ }>, []>>, false>;
299
+ listSuffix: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
300
+ full: DB.MemberDecl<DB.String, true>;
301
+ compressed: DB.MemberDecl<DB.String, false>;
302
+ }>, []>>, false>;
303
+ replacement: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
304
+ full: DB.MemberDecl<DB.String, true>;
305
+ compressed: DB.MemberDecl<DB.String, false>;
306
+ }>, []>>, false>;
307
+ }>, false>;
308
+ }>, []>>>;
309
+ }, []>;
310
+ export declare const NonModifiableSustainedCost: DB.TypeAlias<"NonModifiableSustainedCost", DB.Object<{
311
+ is_minimum: DB.MemberDecl<DB.Boolean, false>;
312
+ value: DB.MemberDecl<DB.Integer, true>;
313
+ per: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"NonModifiableSustainedCostPerCountable", DB.Object<{
314
+ minimum_total: DB.MemberDecl<DB.Integer, false>;
315
+ translations: DB.MemberDecl<DB.NestedEntityMap<"NonModifiableSustainedCostPerCountableTranslation", {
316
+ countable: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveText", DB.Object<{
317
+ full: DB.MemberDecl<DB.String, true>;
318
+ compressed: DB.MemberDecl<DB.String, true>;
319
+ }>, []>>, true>;
320
+ }>, true>;
321
+ }>, []>>, false>;
322
+ interval: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"DurationUnitValue", DB.Object<{
323
+ value: DB.MemberDecl<DB.Integer, true>;
324
+ unit: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"DurationUnit", {
325
+ Seconds: DB.EnumCase<null>;
326
+ Minutes: DB.EnumCase<null>;
327
+ Hours: DB.EnumCase<null>;
328
+ Days: DB.EnumCase<null>;
329
+ Weeks: DB.EnumCase<null>;
330
+ Months: DB.EnumCase<null>;
331
+ Years: DB.EnumCase<null>;
332
+ Centuries: DB.EnumCase<null>;
333
+ Actions: DB.EnumCase<null>;
334
+ CombatRounds: DB.EnumCase<null>;
335
+ }, []>>, true>;
336
+ }>, []>>, true>;
337
+ }>, []>;
338
+ export declare const SustainedCostMap: DB.TypeAlias<"SustainedCostMap", DB.Object<{
339
+ options: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SustainedCostMapOption", DB.Object<{
340
+ value: DB.MemberDecl<DB.Integer, true>;
341
+ translations: DB.MemberDecl<DB.NestedEntityMap<"SustainedCostMapOptionTranslation", {
342
+ label: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
343
+ full: DB.MemberDecl<DB.String, true>;
344
+ compressed: DB.MemberDecl<DB.String, false>;
345
+ }>, []>>, true>;
346
+ standaloneLabel: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
347
+ full: DB.MemberDecl<DB.String, true>;
348
+ compressed: DB.MemberDecl<DB.String, false>;
349
+ }>, []>>, false>;
350
+ }>, false>;
351
+ }>, []>>>, true>;
352
+ translations: DB.MemberDecl<DB.NestedEntityMap<"SustainedCostMapTranslation", {
353
+ listPrefix: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
354
+ full: DB.MemberDecl<DB.String, true>;
355
+ compressed: DB.MemberDecl<DB.String, false>;
356
+ }>, []>>, false>;
357
+ listSuffix: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
358
+ full: DB.MemberDecl<DB.String, true>;
359
+ compressed: DB.MemberDecl<DB.String, false>;
360
+ }>, []>>, false>;
361
+ replacement: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
362
+ full: DB.MemberDecl<DB.String, true>;
363
+ compressed: DB.MemberDecl<DB.String, false>;
364
+ }>, []>>, false>;
365
+ }>, false>;
366
+ }>, []>;
@@ -0,0 +1,280 @@
1
+ import * as DB from "tsondb/schema/dsl";
2
+ import { DurationUnitValue } from "./_ActivatableSkillDuration.js";
3
+ import { SkillModificationLevelIdentifier } from "./_Identifier.js";
4
+ import { ResponsiveText, ResponsiveTextOptional, ResponsiveTextReplace } from "./_ResponsiveText.js";
5
+ import { NestedTranslationMap } from "./Locale.js";
6
+ export const OneTimeCost = DB.Enum(import.meta.url, {
7
+ name: "OneTimeCost",
8
+ values: () => ({
9
+ Single: DB.EnumCase({ type: DB.IncludeIdentifier(SingleOneTimeCost) }),
10
+ Conjunction: DB.EnumCase({ type: DB.IncludeIdentifier(MultipleOneTimeCosts) }),
11
+ Disjunction: DB.EnumCase({ type: DB.IncludeIdentifier(MultipleOneTimeCosts) }),
12
+ Map: DB.EnumCase({ type: DB.IncludeIdentifier(OneTimeCostMap) }),
13
+ }),
14
+ });
15
+ const SingleOneTimeCost = DB.Enum(import.meta.url, {
16
+ name: "SingleOneTimeCost",
17
+ values: () => ({
18
+ Modifiable: DB.EnumCase({ type: DB.IncludeIdentifier(ModifiableOneTimeCost) }),
19
+ NonModifiable: DB.EnumCase({ type: DB.IncludeIdentifier(NonModifiableOneTimeCost) }),
20
+ Indefinite: DB.EnumCase({ type: DB.IncludeIdentifier(IndefiniteOneTimeCost) }),
21
+ }),
22
+ });
23
+ const MultipleOneTimeCosts = DB.TypeAlias(import.meta.url, {
24
+ name: "MultipleOneTimeCosts",
25
+ type: () => DB.Array(DB.IncludeIdentifier(SingleOneTimeCost), {
26
+ minItems: 2,
27
+ }),
28
+ });
29
+ const ModifiableOneTimeCost = DB.TypeAlias(import.meta.url, {
30
+ name: "ModifiableOneTimeCost",
31
+ type: () => DB.Object({
32
+ initial_modification_level: DB.Required({
33
+ comment: "The initial skill modification identifier/level.",
34
+ type: SkillModificationLevelIdentifier(),
35
+ }),
36
+ permanent_value: DB.Optional({
37
+ comment: "The part of the cost value that has to be spent permanently.",
38
+ type: DB.Integer({ minimum: 1 }),
39
+ }),
40
+ translations: NestedTranslationMap(DB.Optional, "ModifiableOneTimeCost", DB.Object({
41
+ replacement: DB.Required({
42
+ comment: "A replacement string.",
43
+ type: DB.IncludeIdentifier(ResponsiveTextReplace),
44
+ }),
45
+ })),
46
+ }),
47
+ });
48
+ export const NonModifiableOneTimeCost = DB.TypeAlias(import.meta.url, {
49
+ name: "NonModifiableOneTimeCost",
50
+ type: () => DB.Object({
51
+ is_minimum: DB.Optional({
52
+ comment: "If `true`, the non-modifiable value is a minimum value.",
53
+ type: DB.Boolean(),
54
+ }),
55
+ value: DB.Required({
56
+ comment: "The AE cost value.",
57
+ type: DB.Integer({ minimum: 1 }),
58
+ }),
59
+ permanent_value: DB.Optional({
60
+ comment: "The part of the cost value that has to be spent permanently.",
61
+ type: DB.Integer({ minimum: 1 }),
62
+ }),
63
+ per: DB.Optional({
64
+ comment: "The cost have to be per a specific countable entity, e.g. `8 KP per person`.",
65
+ type: DB.IncludeIdentifier(NonModifiableOneTimeCostPerCountable),
66
+ }),
67
+ translations: NestedTranslationMap(DB.Optional, "NonModifiableOneTimeCost", DB.Object({
68
+ note: DB.Required({
69
+ comment: "A note, appended to the generated string in parenthesis.",
70
+ type: DB.IncludeIdentifier(ResponsiveTextOptional),
71
+ }),
72
+ })),
73
+ }),
74
+ });
75
+ export const NonModifiableOneTimeCostPerCountable = DB.TypeAlias(import.meta.url, {
76
+ name: "NonModifiableOneTimeCostPerCountable",
77
+ type: () => DB.Object({
78
+ minimum_total: DB.Optional({
79
+ comment: "If defined, the minimum total AE that have to be spent casting the skill.",
80
+ type: DB.Integer({ minimum: 1 }),
81
+ }),
82
+ translations: NestedTranslationMap(DB.Required, "NonModifiableOneTimeCostPerCountable", DB.Object({
83
+ countable: DB.Required({
84
+ comment: "The countable entity name.",
85
+ type: DB.IncludeIdentifier(ResponsiveText),
86
+ }),
87
+ })),
88
+ }),
89
+ });
90
+ export const IndefiniteOneTimeCost = DB.TypeAlias(import.meta.url, {
91
+ name: "IndefiniteOneTimeCost",
92
+ type: () => DB.Object({
93
+ translations: NestedTranslationMap(DB.Required, "IndefiniteOneTimeCost", DB.Object({
94
+ description: DB.Required({
95
+ comment: "A description of where the cost come from.",
96
+ type: DB.IncludeIdentifier(ResponsiveText),
97
+ }),
98
+ })),
99
+ }),
100
+ });
101
+ export const OneTimeCostMap = DB.TypeAlias(import.meta.url, {
102
+ name: "OneTimeCostMap",
103
+ comment: `A content that is \`2/4/8/16 AE for an item the size of a cup/chest/door/castle gate\` may be respresented as the following map:
104
+
105
+ \`\`\`yaml
106
+ options:
107
+ - value: 2
108
+ label: "cup"
109
+ - value: 4
110
+ label: "chest"
111
+ - value: 8
112
+ label: "door"
113
+ - value: 16
114
+ label: "castle gate"
115
+ for_append: "an item the size of a"
116
+ \`\`\`
117
+
118
+ This will generate the exact same string as seen above – given it is set for a spellwork and thus \`AE\` is used.`,
119
+ type: () => DB.Object({
120
+ options: DB.Required({
121
+ comment: "The possible costs and associated labels.",
122
+ type: DB.Array(DB.IncludeIdentifier(OneTimeCostMapOption), {
123
+ minItems: 2,
124
+ }),
125
+ }),
126
+ style: DB.Optional({
127
+ comment: "The style of the generated string. It may either be displayed in a compressed way (e.g. `1/2/3 AE for a small/medium/large object`) or in a verbose way (e.g. `1 AE for a small object, 2 AE for a medium object, 3 AE for a large object`). The default is `compressed`.",
128
+ type: DB.IncludeIdentifier(MapStyle),
129
+ }),
130
+ translations: NestedTranslationMap(DB.Optional, "OneTimeCostMap", DB.Object({
131
+ list_prepend: DB.Optional({
132
+ comment: "Place a string between the `for` and the grouped map option labels.",
133
+ type: DB.IncludeIdentifier(ResponsiveTextOptional),
134
+ }),
135
+ list_append: DB.Optional({
136
+ comment: "Place a string after the grouped map option labels.",
137
+ type: DB.IncludeIdentifier(ResponsiveTextOptional),
138
+ }),
139
+ replacement: DB.Optional({
140
+ comment: "If the string from the book cannot be generated using the default generation technique, use this string. All options still need to be inserted propertly, since it may be used by in-game tools to provide a selection to players.",
141
+ type: DB.IncludeIdentifier(ResponsiveTextOptional),
142
+ }),
143
+ }, { minProperties: 1 })),
144
+ }),
145
+ });
146
+ const OneTimeCostMapOption = DB.TypeAlias(import.meta.url, {
147
+ name: "OneTimeCostMapOption",
148
+ type: () => DB.Object({
149
+ value: DB.Required({
150
+ comment: "The full cost value for this option.",
151
+ type: DB.Integer({ minimum: 1 }),
152
+ }),
153
+ permanent_value: DB.Optional({
154
+ comment: "The part of the `value` that has to be paid permanently.",
155
+ type: DB.Integer({ minimum: 0 }),
156
+ }),
157
+ translations: NestedTranslationMap(DB.Optional, "OneTimeCostMapOption", DB.Object({
158
+ label: DB.Required({
159
+ comment: "The description of the option for cost string generation.",
160
+ type: DB.IncludeIdentifier(ResponsiveTextOptional),
161
+ }),
162
+ label_standalone: DB.Optional({
163
+ comment: "The description of the option if used standalone (e.g. in an in-game tool where you can select how many AE you have to pay). Only used if different from `label`.",
164
+ type: DB.IncludeIdentifier(ResponsiveTextOptional),
165
+ }),
166
+ })),
167
+ }),
168
+ });
169
+ export const MapStyle = DB.Enum(import.meta.url, {
170
+ name: "MapStyle",
171
+ comment: "The style of the generated string. It may either be displayed in a compressed way (e.g. `1/2/3 AE for a small/medium/large object`) or in a verbose way (e.g. `1 AE for a small object, 2 AE for a medium object, 3 AE for a large object`).",
172
+ values: () => ({
173
+ Compressed: DB.EnumCase({ type: null }),
174
+ Verbose: DB.EnumCase({ type: null }),
175
+ }),
176
+ });
177
+ export const SustainedCost = DB.Enum(import.meta.url, {
178
+ name: "SustainedCost",
179
+ values: () => ({
180
+ Modifiable: DB.EnumCase({ type: DB.IncludeIdentifier(ModifiableSustainedCost) }),
181
+ NonModifiable: DB.EnumCase({ type: DB.IncludeIdentifier(NonModifiableSustainedCost) }),
182
+ Map: DB.EnumCase({ type: DB.IncludeIdentifier(SustainedCostMap) }),
183
+ }),
184
+ });
185
+ const ModifiableSustainedCost = DB.TypeAlias(import.meta.url, {
186
+ name: "ModifiableSustainedCost",
187
+ type: () => DB.Object({
188
+ initial_modification_level: DB.Required({
189
+ comment: "The initial skill modification identifier/level.",
190
+ type: SkillModificationLevelIdentifier(),
191
+ }),
192
+ interval: DB.Required({
193
+ comment: "The sustain interval.",
194
+ type: DB.IncludeIdentifier(DurationUnitValue),
195
+ }),
196
+ }),
197
+ });
198
+ export const NonModifiableSustainedCost = DB.TypeAlias(import.meta.url, {
199
+ name: "NonModifiableSustainedCost",
200
+ type: () => DB.Object({
201
+ is_minimum: DB.Optional({
202
+ comment: "If `true`, the non-modifiable value is a minimum value.",
203
+ type: DB.Boolean(),
204
+ }),
205
+ value: DB.Required({
206
+ comment: "The AE cost value.",
207
+ type: DB.Integer({ minimum: 1 }),
208
+ }),
209
+ per: DB.Optional({
210
+ comment: "The cost have to be per a specific countable entity, e.g. `8 KP per person`.",
211
+ type: DB.IncludeIdentifier(NonModifiableSustainedCostPerCountable),
212
+ }),
213
+ interval: DB.Required({
214
+ comment: "The sustain interval.",
215
+ type: DB.IncludeIdentifier(DurationUnitValue),
216
+ }),
217
+ }),
218
+ });
219
+ const NonModifiableSustainedCostPerCountable = DB.TypeAlias(import.meta.url, {
220
+ name: "NonModifiableSustainedCostPerCountable",
221
+ type: () => DB.Object({
222
+ minimum_total: DB.Optional({
223
+ comment: "If defined, the minimum total AE that have to be spent casting the skill.",
224
+ type: DB.Integer({ minimum: 1 }),
225
+ }),
226
+ translations: NestedTranslationMap(DB.Required, "NonModifiableSustainedCostPerCountable", DB.Object({
227
+ countable: DB.Required({
228
+ comment: "The countable entity name.",
229
+ type: DB.IncludeIdentifier(ResponsiveText),
230
+ }),
231
+ })),
232
+ }),
233
+ });
234
+ export const SustainedCostMap = DB.TypeAlias(import.meta.url, {
235
+ name: "SustainedCostMap",
236
+ comment: `A content that is \`2/4/8/16 AE (activation) + 1/2/4/8 per 5 minutes for an item the size of a cup/chest/door/castle gate\` can be represented as a cost map.
237
+
238
+ The \`an item the size of a\` would be the *list prefix* string, while the list of options would contain four options with the activation cost and the name.`,
239
+ type: () => DB.Object({
240
+ options: DB.Required({
241
+ comment: "The possible costs and associated labels.",
242
+ type: DB.Array(DB.IncludeIdentifier(SustainedCostMapOption), {
243
+ minItems: 2,
244
+ }),
245
+ }),
246
+ translations: NestedTranslationMap(DB.Optional, "SustainedCostMap", DB.Object({
247
+ listPrefix: DB.Optional({
248
+ comment: "Place a string between the `for` and the grouped map option labels.",
249
+ type: DB.IncludeIdentifier(ResponsiveTextOptional),
250
+ }),
251
+ listSuffix: DB.Optional({
252
+ comment: "Place a string after the grouped map option labels.",
253
+ type: DB.IncludeIdentifier(ResponsiveTextOptional),
254
+ }),
255
+ replacement: DB.Optional({
256
+ comment: "If the string from the book cannot be generated using the default generation technique, use this string. All options still need to be inserted propertly, since it may be used by in-game tools to provide a selection to players.",
257
+ type: DB.IncludeIdentifier(ResponsiveTextOptional),
258
+ }),
259
+ }, { minProperties: 1 })),
260
+ }),
261
+ });
262
+ const SustainedCostMapOption = DB.TypeAlias(import.meta.url, {
263
+ name: "SustainedCostMapOption",
264
+ type: () => DB.Object({
265
+ value: DB.Required({
266
+ comment: "The activation cost value for this option. The interval cost is always half of this value.",
267
+ type: DB.Integer({ minimum: 1 }),
268
+ }),
269
+ translations: NestedTranslationMap(DB.Optional, "SustainedCostMapOption", DB.Object({
270
+ label: DB.Required({
271
+ comment: "The description of the option for cost string generation.",
272
+ type: DB.IncludeIdentifier(ResponsiveTextOptional),
273
+ }),
274
+ standaloneLabel: DB.Optional({
275
+ comment: "The description of the option if used standalone (e.g. in an in-game tool where you can select how many AE you have to pay). Only used if different from `label`.",
276
+ type: DB.IncludeIdentifier(ResponsiveTextOptional),
277
+ }),
278
+ })),
279
+ }),
280
+ });