@optolith/database-schema 0.93.0 → 0.94.0

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 (36) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/gen/types.d.ts +20 -0
  3. package/lib/cache/tradeSecrets.js +14 -3
  4. package/lib/types/Settings.d.ts +56 -0
  5. package/lib/types/Settings.js +5 -0
  6. package/lib/types/equipment/item/Ammunition.d.ts +72 -0
  7. package/lib/types/equipment/item/Ammunition.js +5 -1
  8. package/lib/types/equipment/item/Armor.d.ts +24 -0
  9. package/lib/types/equipment/item/BandageOrRemedy.d.ts +24 -0
  10. package/lib/types/equipment/item/Book.d.ts +24 -0
  11. package/lib/types/equipment/item/CeremonialItem.d.ts +24 -0
  12. package/lib/types/equipment/item/Clothes.d.ts +24 -0
  13. package/lib/types/equipment/item/Container.d.ts +24 -0
  14. package/lib/types/equipment/item/IlluminationLightSource.d.ts +24 -0
  15. package/lib/types/equipment/item/IlluminationRefillOrSupply.d.ts +24 -0
  16. package/lib/types/equipment/item/Item.d.ts +24 -0
  17. package/lib/types/equipment/item/Jewelry.d.ts +24 -0
  18. package/lib/types/equipment/item/Laboratory.d.ts +24 -0
  19. package/lib/types/equipment/item/Liebesspielzeug.d.ts +24 -0
  20. package/lib/types/equipment/item/LuxuryGood.d.ts +24 -0
  21. package/lib/types/equipment/item/MagicalArtifact.d.ts +24 -0
  22. package/lib/types/equipment/item/MusicalInstrument.d.ts +24 -0
  23. package/lib/types/equipment/item/OrienteeringAid.d.ts +24 -0
  24. package/lib/types/equipment/item/RopeOrChain.d.ts +24 -0
  25. package/lib/types/equipment/item/Stationery.d.ts +24 -0
  26. package/lib/types/equipment/item/ThievesTool.d.ts +24 -0
  27. package/lib/types/equipment/item/ToolOfTheTrade.d.ts +24 -0
  28. package/lib/types/equipment/item/TravelGearOrTool.d.ts +24 -0
  29. package/lib/types/equipment/item/Vehicle.d.ts +24 -0
  30. package/lib/types/equipment/item/Weapon.d.ts +24 -0
  31. package/lib/types/equipment/item/WeaponAccessory.d.ts +24 -0
  32. package/lib/types/equipment/item/_Item.d.ts +72 -0
  33. package/lib/types/equipment/item/_Item.js +5 -0
  34. package/lib/types/magicalActions/ElvenMagicalSong.d.ts +1 -0
  35. package/lib/types/magicalActions/ElvenMagicalSong.js +4 -0
  36. package/package.json +1 -1
@@ -1,5 +1,6 @@
1
1
  import * as DB from "tsondb/schema/dsl";
2
2
  import { BlessedTraditionIdentifier, CultureIdentifier, MagicalTraditionIdentifier, ProfessionIdentifier, RaceIdentifier, } from "../../_Identifier.js";
3
+ import { PlainGeneralPrerequisites } from "../../_Prerequisite.js";
3
4
  import { ResponsiveTextOptional, ResponsiveTextReplace } from "../../_ResponsiveText.js";
4
5
  import { NestedTranslationMap } from "../../Locale.js";
5
6
  import { Errata } from "../../source/_Erratum.js";
@@ -169,6 +170,10 @@ export const ComplexComplexity = DB.TypeAlias(import.meta.url, {
169
170
  comment: "The AP value for the trade secret.",
170
171
  type: DB.Integer({ minimum: 1 }),
171
172
  }),
173
+ prerequisites: DB.Optional({
174
+ comment: "The prerequisites of the trade secret, if any. Note that the special ability prerequisite for weapon and armor trade secrets is added automatically based on the value in the `Settings` singleton entity.",
175
+ type: DB.IncludeIdentifier(PlainGeneralPrerequisites),
176
+ }),
172
177
  src: optionalSrc,
173
178
  }),
174
179
  });
@@ -72,6 +72,7 @@ export declare const ElvenMagicalSong: DB.Entity<"ElvenMagicalSong", {
72
72
  C: DB.EnumCase<null>;
73
73
  D: DB.EnumCase<null>;
74
74
  }, []>>, true>;
75
+ is_distorted: DB.MemberDecl<DB.Boolean, true>;
75
76
  src: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"PublicationRefs", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"PublicationRef", DB.Object<{
76
77
  id: DB.MemberDecl<DB.ReferenceIdentifier, true>;
77
78
  occurrences: DB.MemberDecl<DB.NestedEntityMap<string, {
@@ -42,6 +42,10 @@ export const ElvenMagicalSong = DB.Entity(import.meta.url, {
42
42
  comment: "States which column is used to improve the skill.",
43
43
  type: DB.IncludeIdentifier(ImprovementCost),
44
44
  }),
45
+ is_distorted: DB.Required({
46
+ comment: "Is the song a distorted Elven magical song?",
47
+ type: DB.Boolean(),
48
+ }),
45
49
  src,
46
50
  translations: NestedTranslationMap(DB.Required, "ElvenMagicalSong", DB.Object({
47
51
  name: DB.Required({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optolith/database-schema",
3
- "version": "0.93.0",
3
+ "version": "0.94.0",
4
4
  "description": "Definitions and utilities for the flat-file database of Optolith, a character creation tool for the Pen and Paper RPG “The Dark Eye 5”, and its external integrations into other software.",
5
5
  "keywords": [
6
6
  "tde",