optolith-database-schema 0.28.3 → 0.29.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 (161) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/gen/types.d.ts +192 -635
  3. package/lib/cache/activatableSelectOptions.d.ts +18 -0
  4. package/lib/cache/activatableSelectOptions.js +761 -0
  5. package/lib/cache/ancestorBloodAdvantages.d.ts +4 -0
  6. package/lib/cache/ancestorBloodAdvantages.js +13 -0
  7. package/lib/cache/index.d.ts +31 -0
  8. package/lib/cache/index.js +22 -0
  9. package/lib/cache/internal.d.ts +4 -0
  10. package/lib/cache/internal.js +1 -0
  11. package/lib/cache/magicalAndBlessedAdvantagesAndDisadvantages.d.ts +3 -0
  12. package/lib/cache/magicalAndBlessedAdvantagesAndDisadvantages.js +103 -0
  13. package/lib/cache/newApplicationsAndUses.d.ts +22 -0
  14. package/lib/cache/newApplicationsAndUses.js +12 -0
  15. package/lib/types/Advantage.d.ts +26 -26
  16. package/lib/types/AnimalDisease.d.ts +1 -1
  17. package/lib/types/Blessing.d.ts +1 -1
  18. package/lib/types/Cantrip.d.ts +1 -1
  19. package/lib/types/Ceremony.d.ts +2 -2
  20. package/lib/types/CombatTechnique.d.ts +2 -2
  21. package/lib/types/Condition.d.ts +1 -1
  22. package/lib/types/Culture.d.ts +1 -1
  23. package/lib/types/DerivedCharacteristic.d.ts +162 -1
  24. package/lib/types/DerivedCharacteristic.js +120 -0
  25. package/lib/types/Disadvantage.d.ts +24 -24
  26. package/lib/types/Disease.d.ts +1 -1
  27. package/lib/types/FamiliarsTrick.d.ts +1 -1
  28. package/lib/types/Lessons.d.ts +1 -1
  29. package/lib/types/LiturgicalChant.d.ts +2 -2
  30. package/lib/types/Locale.d.ts +10 -0
  31. package/lib/types/Locale.js +15 -0
  32. package/lib/types/MetaCondition.d.ts +1 -1
  33. package/lib/types/PactCategory.d.ts +1 -1
  34. package/lib/types/Patron.d.ts +1 -1
  35. package/lib/types/PersonalityTrait.d.ts +1 -1
  36. package/lib/types/Profession.d.ts +2 -2
  37. package/lib/types/Race.d.ts +1 -1
  38. package/lib/types/Ritual.d.ts +2 -2
  39. package/lib/types/Service.d.ts +1 -1
  40. package/lib/types/SexPractice.d.ts +1 -1
  41. package/lib/types/Skill.d.ts +1 -1
  42. package/lib/types/Spell.d.ts +2 -2
  43. package/lib/types/State.d.ts +1 -1
  44. package/lib/types/Talisman.d.ts +1 -1
  45. package/lib/types/_ActivatableAdventurePointsValue.d.ts +4 -4
  46. package/lib/types/_ActivatableAutomatic.d.ts +2 -2
  47. package/lib/types/_ActivatableSelectOptionCategory.d.ts +32 -32
  48. package/lib/types/_ActivatableSelectOptions.d.ts +24 -24
  49. package/lib/types/_Enhancements.d.ts +2 -2
  50. package/lib/types/_IdentifierGroup.d.ts +5 -5
  51. package/lib/types/_IdentifierGroup.js +2 -108
  52. package/lib/types/_Influence.d.ts +1 -1
  53. package/lib/types/equipment/EquipmentPackage.d.ts +1 -1
  54. package/lib/types/equipment/item/Ammunition.d.ts +1 -1
  55. package/lib/types/equipment/item/Animal.d.ts +1 -1
  56. package/lib/types/equipment/item/AnimalCare.d.ts +1 -1
  57. package/lib/types/equipment/item/Armor.d.ts +1 -1
  58. package/lib/types/equipment/item/BandageOrRemedy.d.ts +1 -1
  59. package/lib/types/equipment/item/Book.d.ts +1 -1
  60. package/lib/types/equipment/item/CeremonialItem.d.ts +1 -1
  61. package/lib/types/equipment/item/Clothes.d.ts +1 -1
  62. package/lib/types/equipment/item/ClothingPackage.d.ts +1 -1
  63. package/lib/types/equipment/item/Container.d.ts +1 -1
  64. package/lib/types/equipment/item/Elixir.d.ts +1 -1
  65. package/lib/types/equipment/item/EquipmentOfBlessedOnes.d.ts +1 -1
  66. package/lib/types/equipment/item/GemOrPreciousStone.d.ts +1 -1
  67. package/lib/types/equipment/item/IlluminationLightSource.d.ts +1 -1
  68. package/lib/types/equipment/item/IlluminationRefillOrSupply.d.ts +1 -1
  69. package/lib/types/equipment/item/Jewelry.d.ts +1 -1
  70. package/lib/types/equipment/item/Laboratory.d.ts +1 -1
  71. package/lib/types/equipment/item/Liebesspielzeug.d.ts +1 -1
  72. package/lib/types/equipment/item/LuxuryGood.d.ts +1 -1
  73. package/lib/types/equipment/item/MagicalArtifact.d.ts +1 -1
  74. package/lib/types/equipment/item/MusicalInstrument.d.ts +1 -1
  75. package/lib/types/equipment/item/Newspaper.d.ts +1 -1
  76. package/lib/types/equipment/item/OrienteeringAid.d.ts +1 -1
  77. package/lib/types/equipment/item/Poison.d.ts +1 -1
  78. package/lib/types/equipment/item/RopeOrChain.d.ts +1 -1
  79. package/lib/types/equipment/item/Stationery.d.ts +1 -1
  80. package/lib/types/equipment/item/ThievesTool.d.ts +1 -1
  81. package/lib/types/equipment/item/ToolOfTheTrade.d.ts +1 -1
  82. package/lib/types/equipment/item/TravelGearOrTool.d.ts +1 -1
  83. package/lib/types/equipment/item/Vehicle.d.ts +1 -1
  84. package/lib/types/equipment/item/Weapon.d.ts +1 -1
  85. package/lib/types/equipment/item/WeaponAccessory.d.ts +1 -1
  86. package/lib/types/equipment/item/_Item.d.ts +1 -1
  87. package/lib/types/magicalActions/AnimistPower.d.ts +2 -2
  88. package/lib/types/magicalActions/Curse.d.ts +1 -1
  89. package/lib/types/magicalActions/DominationRitual.d.ts +1 -1
  90. package/lib/types/magicalActions/ElvenMagicalSong.d.ts +1 -1
  91. package/lib/types/magicalActions/GeodeRitual.d.ts +1 -1
  92. package/lib/types/magicalActions/JesterTrick.d.ts +1 -1
  93. package/lib/types/magicalActions/MagicalDance.d.ts +1 -1
  94. package/lib/types/magicalActions/MagicalMelody.d.ts +1 -1
  95. package/lib/types/magicalActions/MagicalRune.d.ts +1 -1
  96. package/lib/types/magicalActions/ZibiljaRitual.d.ts +1 -1
  97. package/lib/types/prerequisites/PrerequisiteGroups.d.ts +178 -8
  98. package/lib/types/prerequisites/PrerequisiteGroups.js +9 -0
  99. package/lib/types/prerequisites/single/ActivatablePrerequisite.d.ts +2 -2
  100. package/lib/types/rule/AlternativeRule.d.ts +1 -1
  101. package/lib/types/rule/CoreRule.d.ts +1 -1
  102. package/lib/types/rule/FocusRule.d.ts +1 -1
  103. package/lib/types/rule/OptionalRule.d.ts +1 -1
  104. package/lib/types/source/_PublicationRef.d.ts +4 -4
  105. package/lib/types/source/_PublicationRef.js +34 -30
  106. package/lib/types/specialAbility/AdvancedCombatSpecialAbility.d.ts +24 -24
  107. package/lib/types/specialAbility/AdvancedKarmaSpecialAbility.d.ts +24 -24
  108. package/lib/types/specialAbility/AdvancedMagicalSpecialAbility.d.ts +24 -24
  109. package/lib/types/specialAbility/AdvancedSkillSpecialAbility.d.ts +24 -24
  110. package/lib/types/specialAbility/AncestorGlyph.d.ts +24 -24
  111. package/lib/types/specialAbility/BlessedTradition.d.ts +25 -25
  112. package/lib/types/specialAbility/BlessedTradition.js +2 -2
  113. package/lib/types/specialAbility/BrawlingSpecialAbility.d.ts +24 -24
  114. package/lib/types/specialAbility/CeremonialItemSpecialAbility.d.ts +24 -24
  115. package/lib/types/specialAbility/CombatSpecialAbility.d.ts +24 -24
  116. package/lib/types/specialAbility/CombatStyleSpecialAbility.d.ts +24 -24
  117. package/lib/types/specialAbility/CommandSpecialAbility.d.ts +24 -24
  118. package/lib/types/specialAbility/FamiliarSpecialAbility.d.ts +24 -24
  119. package/lib/types/specialAbility/FatePointSexSpecialAbility.d.ts +24 -24
  120. package/lib/types/specialAbility/FatePointSpecialAbility.d.ts +24 -24
  121. package/lib/types/specialAbility/GeneralSpecialAbility.d.ts +24 -24
  122. package/lib/types/specialAbility/KarmaSpecialAbility.d.ts +24 -24
  123. package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.d.ts +24 -24
  124. package/lib/types/specialAbility/LycantropicGift.d.ts +24 -24
  125. package/lib/types/specialAbility/MagicStyleSpecialAbility.d.ts +24 -24
  126. package/lib/types/specialAbility/MagicalSign.d.ts +1 -1
  127. package/lib/types/specialAbility/MagicalSpecialAbility.d.ts +24 -24
  128. package/lib/types/specialAbility/MagicalTradition.d.ts +24 -24
  129. package/lib/types/specialAbility/PactGift.d.ts +26 -26
  130. package/lib/types/specialAbility/ProtectiveWardingCircleSpecialAbility.d.ts +24 -24
  131. package/lib/types/specialAbility/Sermon.d.ts +24 -24
  132. package/lib/types/specialAbility/SexSpecialAbility.d.ts +24 -24
  133. package/lib/types/specialAbility/SikaryanDrainSpecialAbility.d.ts +24 -24
  134. package/lib/types/specialAbility/SkillStyleSpecialAbility.d.ts +24 -24
  135. package/lib/types/specialAbility/VampiricGift.d.ts +24 -24
  136. package/lib/types/specialAbility/Vision.d.ts +24 -24
  137. package/lib/types/specialAbility/sub/Language.d.ts +1 -1
  138. package/lib/types/specialAbility/sub/Script.d.ts +1 -1
  139. package/lib/types/specialAbility/sub/TradeSecret.d.ts +22 -22
  140. package/lib/types/traditionArtifacts/ArcaneOrbEnchantment.d.ts +24 -24
  141. package/lib/types/traditionArtifacts/AttireEnchantment.d.ts +24 -24
  142. package/lib/types/traditionArtifacts/Beutelzauber.d.ts +24 -24
  143. package/lib/types/traditionArtifacts/BowlEnchantment.d.ts +24 -24
  144. package/lib/types/traditionArtifacts/CauldronEnchantment.d.ts +24 -24
  145. package/lib/types/traditionArtifacts/ChronicleEnchantment.d.ts +24 -24
  146. package/lib/types/traditionArtifacts/DaggerRitual.d.ts +24 -24
  147. package/lib/types/traditionArtifacts/FoolsHatEnchantment.d.ts +24 -24
  148. package/lib/types/traditionArtifacts/Haubenzauber.d.ts +24 -24
  149. package/lib/types/traditionArtifacts/InstrumentEnchantment.d.ts +24 -24
  150. package/lib/types/traditionArtifacts/Krallenkettenzauber.d.ts +24 -24
  151. package/lib/types/traditionArtifacts/Kristallkugelzauber.d.ts +24 -24
  152. package/lib/types/traditionArtifacts/OrbEnchantment.d.ts +24 -24
  153. package/lib/types/traditionArtifacts/RingEnchantment.d.ts +24 -24
  154. package/lib/types/traditionArtifacts/SickleRitual.d.ts +24 -24
  155. package/lib/types/traditionArtifacts/SpellSwordEnchantment.d.ts +24 -24
  156. package/lib/types/traditionArtifacts/StaffEnchantment.d.ts +24 -24
  157. package/lib/types/traditionArtifacts/ToyEnchantment.d.ts +24 -24
  158. package/lib/types/traditionArtifacts/Trinkhornzauber.d.ts +24 -24
  159. package/lib/types/traditionArtifacts/WandEnchantment.d.ts +24 -24
  160. package/lib/types/traditionArtifacts/WeaponEnchantment.d.ts +24 -24
  161. package/package.json +5 -8
@@ -0,0 +1,4 @@
1
+ import type { Advantage_ID } from "../../gen/types.js";
2
+ import type { CacheBuilder } from "./internal.ts";
3
+ export type AncestorBloodAdvantagesCache = Advantage_ID[];
4
+ export declare const buildAncestorBloodAdvantagesCache: CacheBuilder<AncestorBloodAdvantagesCache>;
@@ -0,0 +1,13 @@
1
+ export const buildAncestorBloodAdvantagesCache = database => database
2
+ .getAllInstanceContainersOfEntity("Advantage")
3
+ .filter(({ content }) => content.prerequisites?.some(p => {
4
+ switch (p.prerequisite.kind) {
5
+ case "Single":
6
+ return p.prerequisite.Single.kind === "NoOtherAncestorBloodAdvantage";
7
+ case "Disjunction":
8
+ return p.prerequisite.Disjunction.list.some(d => d.kind === "NoOtherAncestorBloodAdvantage");
9
+ case "Group":
10
+ return p.prerequisite.Group.list.some(g => g.kind === "NoOtherAncestorBloodAdvantage");
11
+ }
12
+ }))
13
+ .map(({ id }) => id);
@@ -0,0 +1,31 @@
1
+ import type { TSONDB } from "tsondb";
2
+ import type { TSONDBTypes } from "../main.ts";
3
+ import { type ActivatableSelectOptionsCache, type ResolvedSelectOption, type ResolvedSelectOptionIdentifier } from "./activatableSelectOptions.ts";
4
+ import { type AncestorBloodAdvantagesCache } from "./ancestorBloodAdvantages.ts";
5
+ import { type MagicalAndBlessedAdvantagesAndDisadvantagesCache } from "./magicalAndBlessedAdvantagesAndDisadvantages.ts";
6
+ import { type NewApplicationsAndUsesCache, type ResolvedNewSkillApplication, type ResolvedSkillUse } from "./newApplicationsAndUses.ts";
7
+ /**
8
+ * Identifiers of specific entries in the database that are used for creating the cache.
9
+ */
10
+ export type IdMap = {
11
+ Advantage: Record<"Blessed" | "Spellcaster", string>;
12
+ MagicalSpecialAbility: Record<"PropertyKnowledge", string>;
13
+ KarmaSpecialAbility: Record<"AspectKnowledge", string>;
14
+ };
15
+ /**
16
+ * The cache object containing all precomputed data.
17
+ */
18
+ export type Cache = {
19
+ activatableSelectOptions: ActivatableSelectOptionsCache;
20
+ sncestorBloodAdvantages: AncestorBloodAdvantagesCache;
21
+ magicalAndBlessedAdvantagesAndDisadvantages: MagicalAndBlessedAdvantagesAndDisadvantagesCache;
22
+ newApplicationsAndUses: NewApplicationsAndUsesCache;
23
+ };
24
+ export type { ActivatableSelectOptionsCache, AncestorBloodAdvantagesCache, MagicalAndBlessedAdvantagesAndDisadvantagesCache, NewApplicationsAndUsesCache, ResolvedNewSkillApplication, ResolvedSelectOption, ResolvedSelectOptionIdentifier, ResolvedSkillUse, };
25
+ /**
26
+ * Creates the cache by precomputing all necessary data from the database.
27
+ * @param db The TSONDB instance containing the database.
28
+ * @param idMap An object containing identifiers of specific entries in the database that are used for creating the cache.
29
+ * @returns The created cache object.
30
+ */
31
+ export declare const createCache: (db: TSONDB<TSONDBTypes>, idMap: IdMap) => Cache;
@@ -0,0 +1,22 @@
1
+ import { activatableSelectOptionsCacheBuilder, } from "./activatableSelectOptions.js";
2
+ import { buildAncestorBloodAdvantagesCache, } from "./ancestorBloodAdvantages.js";
3
+ import { buildMagicalAndBlessedAdvantagesAndDisadvantagesCache, } from "./magicalAndBlessedAdvantagesAndDisadvantages.js";
4
+ import { buildNewApplicationsAndUsesCache, } from "./newApplicationsAndUses.js";
5
+ /**
6
+ * Creates the cache by precomputing all necessary data from the database.
7
+ * @param db The TSONDB instance containing the database.
8
+ * @param idMap An object containing identifiers of specific entries in the database that are used for creating the cache.
9
+ * @returns The created cache object.
10
+ */
11
+ export const createCache = (db, idMap) => {
12
+ const activatableSelectOptions = activatableSelectOptionsCacheBuilder(db, idMap);
13
+ const sncestorBloodAdvantages = buildAncestorBloodAdvantagesCache(db, idMap);
14
+ const magicalAndBlessedAdvantagesAndDisadvantages = buildMagicalAndBlessedAdvantagesAndDisadvantagesCache(db, idMap);
15
+ const newApplicationsAndUses = buildNewApplicationsAndUsesCache(db, idMap, activatableSelectOptions);
16
+ return {
17
+ activatableSelectOptions,
18
+ sncestorBloodAdvantages,
19
+ magicalAndBlessedAdvantagesAndDisadvantages,
20
+ newApplicationsAndUses,
21
+ };
22
+ };
@@ -0,0 +1,4 @@
1
+ import type { TSONDB } from "tsondb";
2
+ import type { TSONDBTypes } from "../main.ts";
3
+ import type { IdMap } from "./index.ts";
4
+ export type CacheBuilder<T = unknown, Args extends unknown[] = []> = (db: TSONDB<TSONDBTypes>, idMap: IdMap, ...args: Args) => T;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { CacheBuilder } from "./internal.ts";
2
+ export type MagicalAndBlessedAdvantagesAndDisadvantagesCache = Record<"Advantage" | "Disadvantage", Record<"Magical" | "Blessed", string[]>>;
3
+ export declare const buildMagicalAndBlessedAdvantagesAndDisadvantagesCache: CacheBuilder<MagicalAndBlessedAdvantagesAndDisadvantagesCache>;
@@ -0,0 +1,103 @@
1
+ import { assertExhaustive } from "@elyukai/utils/typeSafety";
2
+ const getAdvantageId = (idMap, type) => {
3
+ switch (type) {
4
+ case "Magical":
5
+ return idMap.Advantage.Spellcaster;
6
+ case "Blessed":
7
+ return idMap.Advantage.Blessed;
8
+ default:
9
+ return assertExhaustive(type);
10
+ }
11
+ };
12
+ const isRatedFor = (type, ratedId) => {
13
+ switch (ratedId.kind) {
14
+ case "Spell":
15
+ case "Ritual":
16
+ return type === "Magical";
17
+ case "LiturgicalChant":
18
+ case "Ceremony":
19
+ return type === "Blessed";
20
+ case "Attribute":
21
+ case "Skill":
22
+ case "CloseCombatTechnique":
23
+ case "RangedCombatTechnique":
24
+ return false;
25
+ default:
26
+ return assertExhaustive(ratedId);
27
+ }
28
+ };
29
+ const isPrerequisiteFor = (idMap, type, prerequisite, getById, traversedIds) => {
30
+ switch (prerequisite.kind) {
31
+ case "Activatable": {
32
+ if (prerequisite.Activatable.id.kind === "Advantage" &&
33
+ prerequisite.Activatable.id.Advantage === getAdvantageId(idMap, type) &&
34
+ prerequisite.Activatable.active) {
35
+ return true;
36
+ }
37
+ const entry = getById(prerequisite.Activatable.id);
38
+ return entry !== undefined && is(idMap, type, entry, getById, traversedIds);
39
+ }
40
+ case "Rated":
41
+ return isRatedFor(type, prerequisite.Rated.id);
42
+ case "CommonSuggestedByRCP":
43
+ case "Sex":
44
+ case "Race":
45
+ case "Culture":
46
+ case "Pact":
47
+ case "SocialStatus":
48
+ case "State":
49
+ case "Rule":
50
+ case "PrimaryAttribute":
51
+ case "BlessedTradition":
52
+ case "MagicalTradition":
53
+ case "RatedMinimumNumber":
54
+ case "RatedSum":
55
+ case "Enhancement":
56
+ case "Text":
57
+ case "NoOtherAncestorBloodAdvantage":
58
+ case "SexualCharacteristic":
59
+ return false;
60
+ default:
61
+ return assertExhaustive(prerequisite);
62
+ }
63
+ };
64
+ const is = (idMap, type, entry, getById, traversedIds) => {
65
+ if (!entry.content.prerequisites || traversedIds.includes(entry.id)) {
66
+ return false;
67
+ }
68
+ const newTraversedIds = [...traversedIds, entry.id];
69
+ return (entry.content.prerequisites !== undefined &&
70
+ entry.content.prerequisites.some(prerequisite => {
71
+ switch (prerequisite.prerequisite.kind) {
72
+ case "Single":
73
+ return isPrerequisiteFor(idMap, type, prerequisite.prerequisite.Single, getById, newTraversedIds);
74
+ case "Disjunction":
75
+ return prerequisite.prerequisite.Disjunction.list.some(p => isPrerequisiteFor(idMap, type, p, getById, newTraversedIds));
76
+ case "Group":
77
+ return prerequisite.prerequisite.Group.list.some(p => isPrerequisiteFor(idMap, type, p, getById, newTraversedIds));
78
+ default:
79
+ return assertExhaustive(prerequisite.prerequisite);
80
+ }
81
+ }));
82
+ };
83
+ const entityKeyMap = {
84
+ Advantage: null,
85
+ Disadvantage: null,
86
+ };
87
+ const typeKeyMap = {
88
+ Magical: null,
89
+ Blessed: null,
90
+ };
91
+ const collectIds = (entity, type, database, idMap) => database
92
+ .getAllInstanceContainersOfEntity(entity)
93
+ .filter(entry => is(idMap, type, entry, database.getInstanceContainerOfEntityById.bind(database), []))
94
+ .map(({ id }) => id);
95
+ export const buildMagicalAndBlessedAdvantagesAndDisadvantagesCache = (database, idMap) => {
96
+ return Object.fromEntries(Object.keys(entityKeyMap).map((entity) => [
97
+ entity,
98
+ Object.fromEntries(Object.keys(typeKeyMap).map((type) => [
99
+ type,
100
+ collectIds(entity, type, database, idMap),
101
+ ])),
102
+ ]));
103
+ };
@@ -0,0 +1,22 @@
1
+ import type { ActivatableIdentifier, NewSkillApplication, NewSkillApplicationOrUseParentIdentifier, Skill_ID, SkillUse } from "../../gen/types.js";
2
+ import type { ActivatableSelectOptionsCache } from "./activatableSelectOptions.ts";
3
+ import type { CacheBuilder } from "./internal.ts";
4
+ export type ResolvedNewSkillApplication = {
5
+ id: string;
6
+ content: Omit<NewSkillApplication, "parent"> & {
7
+ parent: NewSkillApplicationOrUseParentIdentifier | ActivatableIdentifier;
8
+ };
9
+ };
10
+ export type ResolvedSkillUse = {
11
+ id: string;
12
+ content: Omit<SkillUse, "parent"> & {
13
+ parent: NewSkillApplicationOrUseParentIdentifier | ActivatableIdentifier;
14
+ };
15
+ };
16
+ export type NewApplicationsAndUsesCache = {
17
+ newApplications: Record<Skill_ID, ResolvedNewSkillApplication[]>;
18
+ uses: Record<Skill_ID, ResolvedSkillUse[]>;
19
+ };
20
+ export declare const buildNewApplicationsAndUsesCache: CacheBuilder<NewApplicationsAndUsesCache, [
21
+ generatedSelectOptions: ActivatableSelectOptionsCache
22
+ ]>;
@@ -0,0 +1,12 @@
1
+ const groupByAffectedSkill = (entries, prev = {}) => entries.reduce((acc, entry) => entry.content.skills.reduce((acc1, skillId) => ({ ...acc1, [skillId]: [...(acc1[skillId] ?? []), entry] }), acc), prev);
2
+ const addGeneratedEntries = (generatedSelectOptions, prev) => Object.values(generatedSelectOptions).reduce((acc, byInstance) => Object.values(byInstance).reduce((acc1, resolvedSelectOptions) => resolvedSelectOptions.reduce((acc2, selectOption) => ({
3
+ newApplications: groupByAffectedSkill(selectOption.newApplications, acc2.newApplications),
4
+ uses: groupByAffectedSkill(selectOption.uses, acc2.uses),
5
+ }), acc1), acc), prev);
6
+ export const buildNewApplicationsAndUsesCache = (database, _idMap, generatedSelectOptions) => {
7
+ const cache = {
8
+ newApplications: groupByAffectedSkill(database.getAllInstanceContainersOfEntity("NewSkillApplication")),
9
+ uses: groupByAffectedSkill(database.getAllInstanceContainersOfEntity("SkillUse")),
10
+ };
11
+ return addGeneratedEntries(generatedSelectOptions, cache);
12
+ };
@@ -46,8 +46,6 @@ export declare const Advantage: DB.Entity<"Advantage", {
46
46
  prerequisites: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.Enum<"LanguagesSelectOptionCategoryPrerequisite", {
47
47
  SelectOption: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"OptionPrerequisite", DB.Object<{
48
48
  id: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"ActivatableIdentifier", {
49
- Advantage: DB.EnumCase<DB.ReferenceIdentifier>;
50
- Disadvantage: DB.EnumCase<DB.ReferenceIdentifier>;
51
49
  AdvancedCombatSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
52
50
  AdvancedKarmaSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
53
51
  AdvancedMagicalSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
@@ -99,6 +97,8 @@ export declare const Advantage: DB.Entity<"Advantage", {
99
97
  Vision: DB.EnumCase<DB.ReferenceIdentifier>;
100
98
  WandEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
101
99
  WeaponEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
100
+ Advantage: DB.EnumCase<DB.ReferenceIdentifier>;
101
+ Disadvantage: DB.EnumCase<DB.ReferenceIdentifier>;
102
102
  }, []>>, true>;
103
103
  active: DB.MemberDecl<DB.Boolean, true>;
104
104
  level: DB.MemberDecl<DB.Integer, false>;
@@ -134,8 +134,6 @@ export declare const Advantage: DB.Entity<"Advantage", {
134
134
  }>, []>>>;
135
135
  SelectOption: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"OptionPrerequisite", DB.Object<{
136
136
  id: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"ActivatableIdentifier", {
137
- Advantage: DB.EnumCase<DB.ReferenceIdentifier>;
138
- Disadvantage: DB.EnumCase<DB.ReferenceIdentifier>;
139
137
  AdvancedCombatSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
140
138
  AdvancedKarmaSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
141
139
  AdvancedMagicalSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
@@ -187,6 +185,8 @@ export declare const Advantage: DB.Entity<"Advantage", {
187
185
  Vision: DB.EnumCase<DB.ReferenceIdentifier>;
188
186
  WandEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
189
187
  WeaponEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
188
+ Advantage: DB.EnumCase<DB.ReferenceIdentifier>;
189
+ Disadvantage: DB.EnumCase<DB.ReferenceIdentifier>;
190
190
  }, []>>, true>;
191
191
  active: DB.MemberDecl<DB.Boolean, true>;
192
192
  level: DB.MemberDecl<DB.Integer, false>;
@@ -220,8 +220,6 @@ export declare const Advantage: DB.Entity<"Advantage", {
220
220
  }>, []>>>;
221
221
  SelectOption: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"OptionPrerequisite", DB.Object<{
222
222
  id: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"ActivatableIdentifier", {
223
- Advantage: DB.EnumCase<DB.ReferenceIdentifier>;
224
- Disadvantage: DB.EnumCase<DB.ReferenceIdentifier>;
225
223
  AdvancedCombatSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
226
224
  AdvancedKarmaSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
227
225
  AdvancedMagicalSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
@@ -273,6 +271,8 @@ export declare const Advantage: DB.Entity<"Advantage", {
273
271
  Vision: DB.EnumCase<DB.ReferenceIdentifier>;
274
272
  WandEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
275
273
  WeaponEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
274
+ Advantage: DB.EnumCase<DB.ReferenceIdentifier>;
275
+ Disadvantage: DB.EnumCase<DB.ReferenceIdentifier>;
276
276
  }, []>>, true>;
277
277
  active: DB.MemberDecl<DB.Boolean, true>;
278
278
  level: DB.MemberDecl<DB.Integer, false>;
@@ -293,8 +293,6 @@ export declare const Advantage: DB.Entity<"Advantage", {
293
293
  }>, []>>>;
294
294
  SelectOption: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"OptionPrerequisite", DB.Object<{
295
295
  id: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"ActivatableIdentifier", {
296
- Advantage: DB.EnumCase<DB.ReferenceIdentifier>;
297
- Disadvantage: DB.EnumCase<DB.ReferenceIdentifier>;
298
296
  AdvancedCombatSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
299
297
  AdvancedKarmaSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
300
298
  AdvancedMagicalSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
@@ -346,6 +344,8 @@ export declare const Advantage: DB.Entity<"Advantage", {
346
344
  Vision: DB.EnumCase<DB.ReferenceIdentifier>;
347
345
  WandEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
348
346
  WeaponEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
347
+ Advantage: DB.EnumCase<DB.ReferenceIdentifier>;
348
+ Disadvantage: DB.EnumCase<DB.ReferenceIdentifier>;
349
349
  }, []>>, true>;
350
350
  active: DB.MemberDecl<DB.Boolean, true>;
351
351
  level: DB.MemberDecl<DB.Integer, false>;
@@ -366,8 +366,6 @@ export declare const Advantage: DB.Entity<"Advantage", {
366
366
  }>, []>>>;
367
367
  SelectOption: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"OptionPrerequisite", DB.Object<{
368
368
  id: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"ActivatableIdentifier", {
369
- Advantage: DB.EnumCase<DB.ReferenceIdentifier>;
370
- Disadvantage: DB.EnumCase<DB.ReferenceIdentifier>;
371
369
  AdvancedCombatSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
372
370
  AdvancedKarmaSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
373
371
  AdvancedMagicalSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
@@ -419,6 +417,8 @@ export declare const Advantage: DB.Entity<"Advantage", {
419
417
  Vision: DB.EnumCase<DB.ReferenceIdentifier>;
420
418
  WandEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
421
419
  WeaponEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
420
+ Advantage: DB.EnumCase<DB.ReferenceIdentifier>;
421
+ Disadvantage: DB.EnumCase<DB.ReferenceIdentifier>;
422
422
  }, []>>, true>;
423
423
  active: DB.MemberDecl<DB.Boolean, true>;
424
424
  level: DB.MemberDecl<DB.Integer, false>;
@@ -439,8 +439,6 @@ export declare const Advantage: DB.Entity<"Advantage", {
439
439
  }>, []>>>;
440
440
  SelectOption: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"OptionPrerequisite", DB.Object<{
441
441
  id: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"ActivatableIdentifier", {
442
- Advantage: DB.EnumCase<DB.ReferenceIdentifier>;
443
- Disadvantage: DB.EnumCase<DB.ReferenceIdentifier>;
444
442
  AdvancedCombatSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
445
443
  AdvancedKarmaSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
446
444
  AdvancedMagicalSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
@@ -492,6 +490,8 @@ export declare const Advantage: DB.Entity<"Advantage", {
492
490
  Vision: DB.EnumCase<DB.ReferenceIdentifier>;
493
491
  WandEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
494
492
  WeaponEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
493
+ Advantage: DB.EnumCase<DB.ReferenceIdentifier>;
494
+ Disadvantage: DB.EnumCase<DB.ReferenceIdentifier>;
495
495
  }, []>>, true>;
496
496
  active: DB.MemberDecl<DB.Boolean, true>;
497
497
  level: DB.MemberDecl<DB.Integer, false>;
@@ -529,8 +529,6 @@ export declare const Advantage: DB.Entity<"Advantage", {
529
529
  }>, []>>>;
530
530
  SelectOption: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"OptionPrerequisite", DB.Object<{
531
531
  id: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"ActivatableIdentifier", {
532
- Advantage: DB.EnumCase<DB.ReferenceIdentifier>;
533
- Disadvantage: DB.EnumCase<DB.ReferenceIdentifier>;
534
532
  AdvancedCombatSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
535
533
  AdvancedKarmaSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
536
534
  AdvancedMagicalSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
@@ -582,6 +580,8 @@ export declare const Advantage: DB.Entity<"Advantage", {
582
580
  Vision: DB.EnumCase<DB.ReferenceIdentifier>;
583
581
  WandEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
584
582
  WeaponEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
583
+ Advantage: DB.EnumCase<DB.ReferenceIdentifier>;
584
+ Disadvantage: DB.EnumCase<DB.ReferenceIdentifier>;
585
585
  }, []>>, true>;
586
586
  active: DB.MemberDecl<DB.Boolean, true>;
587
587
  level: DB.MemberDecl<DB.Integer, false>;
@@ -602,8 +602,6 @@ export declare const Advantage: DB.Entity<"Advantage", {
602
602
  }>, []>>>;
603
603
  SelectOption: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"OptionPrerequisite", DB.Object<{
604
604
  id: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"ActivatableIdentifier", {
605
- Advantage: DB.EnumCase<DB.ReferenceIdentifier>;
606
- Disadvantage: DB.EnumCase<DB.ReferenceIdentifier>;
607
605
  AdvancedCombatSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
608
606
  AdvancedKarmaSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
609
607
  AdvancedMagicalSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
@@ -655,6 +653,8 @@ export declare const Advantage: DB.Entity<"Advantage", {
655
653
  Vision: DB.EnumCase<DB.ReferenceIdentifier>;
656
654
  WandEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
657
655
  WeaponEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
656
+ Advantage: DB.EnumCase<DB.ReferenceIdentifier>;
657
+ Disadvantage: DB.EnumCase<DB.ReferenceIdentifier>;
658
658
  }, []>>, true>;
659
659
  active: DB.MemberDecl<DB.Boolean, true>;
660
660
  level: DB.MemberDecl<DB.Integer, false>;
@@ -695,8 +695,7 @@ export declare const Advantage: DB.Entity<"Advantage", {
695
695
  }>, []>>, false>;
696
696
  explicit_select_options: DB.MemberDecl<DB.ChildEntities<DB.Entity<"GeneralSelectOption", {
697
697
  parent: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionParentIdentifier", {
698
- Advantage: DB.EnumCase<DB.ReferenceIdentifier>;
699
- Disadvantage: DB.EnumCase<DB.ReferenceIdentifier>;
698
+ TradeSecret: DB.EnumCase<DB.ReferenceIdentifier>;
700
699
  AdvancedCombatSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
701
700
  AdvancedKarmaSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
702
701
  AdvancedMagicalSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
@@ -748,7 +747,8 @@ export declare const Advantage: DB.Entity<"Advantage", {
748
747
  Vision: DB.EnumCase<DB.ReferenceIdentifier>;
749
748
  WandEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
750
749
  WeaponEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
751
- TradeSecret: DB.EnumCase<DB.ReferenceIdentifier>;
750
+ Advantage: DB.EnumCase<DB.ReferenceIdentifier>;
751
+ Disadvantage: DB.EnumCase<DB.ReferenceIdentifier>;
752
752
  }, []>>, true>;
753
753
  profession_only: DB.MemberDecl<DB.Boolean, false>;
754
754
  skill_applications: DB.MemberDecl<DB.ChildEntities<DB.Entity<"NewSkillApplication", {
@@ -852,7 +852,7 @@ export declare const Advantage: DB.Entity<"Advantage", {
852
852
  }, []>>, false>;
853
853
  }>, []>>>, true>;
854
854
  isRemoved: DB.MemberDecl<DB.Boolean, false>;
855
- }>, []>>, false>;
855
+ }>, []>>, true>;
856
856
  revisions: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.Enum<"Revision", {
857
857
  Since: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"Since", DB.Object<{
858
858
  printing: DB.MemberDecl<DB.Integer, true>;
@@ -955,8 +955,6 @@ export declare const Advantage: DB.Entity<"Advantage", {
955
955
  }>, []>>>;
956
956
  Fixed: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"FixedAutomaticEntryTarget", DB.Object<{
957
957
  id: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"ActivatableIdentifier", {
958
- Advantage: DB.EnumCase<DB.ReferenceIdentifier>;
959
- Disadvantage: DB.EnumCase<DB.ReferenceIdentifier>;
960
958
  AdvancedCombatSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
961
959
  AdvancedKarmaSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
962
960
  AdvancedMagicalSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
@@ -1008,6 +1006,8 @@ export declare const Advantage: DB.Entity<"Advantage", {
1008
1006
  Vision: DB.EnumCase<DB.ReferenceIdentifier>;
1009
1007
  WandEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
1010
1008
  WeaponEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
1009
+ Advantage: DB.EnumCase<DB.ReferenceIdentifier>;
1010
+ Disadvantage: DB.EnumCase<DB.ReferenceIdentifier>;
1011
1011
  }, []>>, true>;
1012
1012
  level: DB.MemberDecl<DB.Integer, false>;
1013
1013
  }>, []>>>;
@@ -1060,8 +1060,6 @@ export declare const Advantage: DB.Entity<"Advantage", {
1060
1060
  }>, []>>>;
1061
1061
  DependingOnActive: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdventurePointsDependingOnActive", DB.Object<{
1062
1062
  id: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"ActivatableIdentifier", {
1063
- Advantage: DB.EnumCase<DB.ReferenceIdentifier>;
1064
- Disadvantage: DB.EnumCase<DB.ReferenceIdentifier>;
1065
1063
  AdvancedCombatSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
1066
1064
  AdvancedKarmaSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
1067
1065
  AdvancedMagicalSpecialAbility: DB.EnumCase<DB.ReferenceIdentifier>;
@@ -1113,6 +1111,8 @@ export declare const Advantage: DB.Entity<"Advantage", {
1113
1111
  Vision: DB.EnumCase<DB.ReferenceIdentifier>;
1114
1112
  WandEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
1115
1113
  WeaponEnchantment: DB.EnumCase<DB.ReferenceIdentifier>;
1114
+ Advantage: DB.EnumCase<DB.ReferenceIdentifier>;
1115
+ Disadvantage: DB.EnumCase<DB.ReferenceIdentifier>;
1116
1116
  }, []>>, true>;
1117
1117
  active: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"AdventurePointsSingleValue", DB.Integer, []>>, true>;
1118
1118
  inactive: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"AdventurePointsSingleValue", DB.Integer, []>>, true>;
@@ -1123,7 +1123,7 @@ export declare const Advantage: DB.Entity<"Advantage", {
1123
1123
  threshold: DB.MemberDecl<DB.Integer, true>;
1124
1124
  alternative: DB.MemberDecl<DB.Integer, true>;
1125
1125
  }>, []>>>;
1126
- Expression: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdventurePointsDependingOnActiveInstancesExpression", DB.IncludeIdentifier<DB.Param<string, DB.Type>[], import("./_MathExpression.js").MathOperation>, []>>>;
1126
+ Expression: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdventurePointsDependingOnActiveInstancesExpression", DB.IncludeIdentifier<DB.Param<string, DB.Type>[], import("./_MathExpression.ts").MathOperation>, []>>>;
1127
1127
  }, []>>>;
1128
1128
  Indefinite: DB.EnumCase<null>;
1129
1129
  }, []>>, true>;
@@ -1147,7 +1147,7 @@ export declare const Advantage: DB.Entity<"Advantage", {
1147
1147
  }, []>>, false>;
1148
1148
  }>, []>>>, true>;
1149
1149
  isRemoved: DB.MemberDecl<DB.Boolean, false>;
1150
- }>, []>>, false>;
1150
+ }>, []>>, true>;
1151
1151
  revisions: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.Enum<"Revision", {
1152
1152
  Since: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"Since", DB.Object<{
1153
1153
  printing: DB.MemberDecl<DB.Integer, true>;
@@ -41,7 +41,7 @@ export declare const AnimalDisease: DB.Entity<"AnimalDisease", {
41
41
  }, []>>, false>;
42
42
  }>, []>>>, true>;
43
43
  isRemoved: DB.MemberDecl<DB.Boolean, false>;
44
- }>, []>>, false>;
44
+ }>, []>>, true>;
45
45
  revisions: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.Enum<"Revision", {
46
46
  Since: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"Since", DB.Object<{
47
47
  printing: DB.MemberDecl<DB.Integer, true>;
@@ -69,7 +69,7 @@ export declare const Blessing: DB.Entity<"Blessing", {
69
69
  }, []>>, false>;
70
70
  }>, []>>>, true>;
71
71
  isRemoved: DB.MemberDecl<DB.Boolean, false>;
72
- }>, []>>, false>;
72
+ }>, []>>, true>;
73
73
  revisions: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.Enum<"Revision", {
74
74
  Since: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"Since", DB.Object<{
75
75
  printing: DB.MemberDecl<DB.Integer, true>;
@@ -97,7 +97,7 @@ export declare const Cantrip: DB.Entity<"Cantrip", {
97
97
  }, []>>, false>;
98
98
  }>, []>>>, true>;
99
99
  isRemoved: DB.MemberDecl<DB.Boolean, false>;
100
- }>, []>>, false>;
100
+ }>, []>>, true>;
101
101
  revisions: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.Enum<"Revision", {
102
102
  Since: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"Since", DB.Object<{
103
103
  printing: DB.MemberDecl<DB.Integer, true>;
@@ -529,7 +529,7 @@ export declare const Ceremony: DB.Entity<"Ceremony", {
529
529
  }, []>>, false>;
530
530
  }>, []>>>, true>;
531
531
  isRemoved: DB.MemberDecl<DB.Boolean, false>;
532
- }>, []>>, false>;
532
+ }>, []>>, true>;
533
533
  revisions: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.Enum<"Revision", {
534
534
  Since: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"Since", DB.Object<{
535
535
  printing: DB.MemberDecl<DB.Integer, true>;
@@ -643,7 +643,7 @@ export declare const Ceremony: DB.Entity<"Ceremony", {
643
643
  }, []>>, false>;
644
644
  }>, []>>>, true>;
645
645
  isRemoved: DB.MemberDecl<DB.Boolean, false>;
646
- }>, []>>, false>;
646
+ }>, []>>, true>;
647
647
  revisions: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.Enum<"Revision", {
648
648
  Since: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"Since", DB.Object<{
649
649
  printing: DB.MemberDecl<DB.Integer, true>;
@@ -53,7 +53,7 @@ export declare const CloseCombatTechnique: DB.Entity<"CloseCombatTechnique", {
53
53
  }, []>>, false>;
54
54
  }>, []>>>, true>;
55
55
  isRemoved: DB.MemberDecl<DB.Boolean, false>;
56
- }>, []>>, false>;
56
+ }>, []>>, true>;
57
57
  revisions: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.Enum<"Revision", {
58
58
  Since: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"Since", DB.Object<{
59
59
  printing: DB.MemberDecl<DB.Integer, true>;
@@ -119,7 +119,7 @@ export declare const RangedCombatTechnique: DB.Entity<"RangedCombatTechnique", {
119
119
  }, []>>, false>;
120
120
  }>, []>>>, true>;
121
121
  isRemoved: DB.MemberDecl<DB.Boolean, false>;
122
- }>, []>>, false>;
122
+ }>, []>>, true>;
123
123
  revisions: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.Enum<"Revision", {
124
124
  Since: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"Since", DB.Object<{
125
125
  printing: DB.MemberDecl<DB.Integer, true>;
@@ -18,7 +18,7 @@ export declare const Condition: DB.Entity<"Condition", {
18
18
  }, []>>, false>;
19
19
  }>, []>>>, true>;
20
20
  isRemoved: DB.MemberDecl<DB.Boolean, false>;
21
- }>, []>>, false>;
21
+ }>, []>>, true>;
22
22
  revisions: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.Enum<"Revision", {
23
23
  Since: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"Since", DB.Object<{
24
24
  printing: DB.MemberDecl<DB.Integer, true>;
@@ -86,7 +86,7 @@ export declare const Culture: DB.Entity<"Culture", {
86
86
  }, []>>, false>;
87
87
  }>, []>>>, true>;
88
88
  isRemoved: DB.MemberDecl<DB.Boolean, false>;
89
- }>, []>>, false>;
89
+ }>, []>>, true>;
90
90
  revisions: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.Enum<"Revision", {
91
91
  Since: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"Since", DB.Object<{
92
92
  printing: DB.MemberDecl<DB.Integer, true>;