optolith-database-schema 0.34.5 → 0.34.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,27 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
4
 
5
+ ## [0.34.8](https://github.com/elyukai/optolith-database-schema/compare/v0.34.7...v0.34.8) (2026-03-09)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **cache:** handle added poison source type ([17d46f1](https://github.com/elyukai/optolith-database-schema/commit/17d46f17b45efe20e154e15a526a370e7b73a5c2))
11
+
12
+ ## [0.34.7](https://github.com/elyukai/optolith-database-schema/compare/v0.34.6...v0.34.7) (2026-03-09)
13
+
14
+
15
+ ### Features
16
+
17
+ * add alchemical pact gift poison source type and make cost optional ([c32cb59](https://github.com/elyukai/optolith-database-schema/commit/c32cb594aa0cb7802511adb7ed13327e51620999)), closes [#88](https://github.com/elyukai/optolith-database-schema/issues/88)
18
+
19
+ ## [0.34.6](https://github.com/elyukai/optolith-database-schema/compare/v0.34.5...v0.34.6) (2026-03-09)
20
+
21
+
22
+ ### Features
23
+
24
+ * general rules for influences ([f97e9dc](https://github.com/elyukai/optolith-database-schema/commit/f97e9dce22dcbb11a5f4ca593cbc751475fa8eef))
25
+
5
26
  ## [0.34.5](https://github.com/elyukai/optolith-database-schema/compare/v0.34.4...v0.34.5) (2026-03-09)
6
27
 
7
28
 
package/gen/types.d.ts CHANGED
@@ -7598,6 +7598,11 @@ export interface InfluenceTranslation {
7598
7598
  */
7599
7599
  name: string
7600
7600
 
7601
+ /**
7602
+ * Some general rules for the influence. They will be prepended to the effects. This can be used for influences that do not have any effects and should contain the text mentioning this fact.
7603
+ */
7604
+ rules?: string
7605
+
7601
7606
  /**
7602
7607
  * The effects of the influence. They should be sorted like they are in the book.
7603
7608
  */
@@ -22216,7 +22221,7 @@ export interface Poison {
22216
22221
  /**
22217
22222
  * Price for one dose, in silverthalers.
22218
22223
  */
22219
- cost: PoisonCost
22224
+ cost?: PoisonCost
22220
22225
 
22221
22226
  /**
22222
22227
  * References to where in which publications this entry has been defined. Entries may also be added or removed in later printings.
@@ -22283,6 +22288,9 @@ export type PoisonSourceType =
22283
22288
  kind: "AlchemicalPoison"
22284
22289
  AlchemicalPoison: AlchemicalPoison
22285
22290
  }
22291
+ | {
22292
+ kind: "AlchemicalPactGiftPoison"
22293
+ }
22286
22294
  | {
22287
22295
  kind: "MineralPoison"
22288
22296
  MineralPoison: MineralPoison
@@ -553,6 +553,7 @@ const getDerivedSelectOptions = (selectOptionCategory, entryId, database, idMap)
553
553
  return assertExhaustive(poison.source_type.AnimalVenom.level);
554
554
  }
555
555
  case "AlchemicalPoison":
556
+ case "AlchemicalPactGiftPoison":
556
557
  return 6;
557
558
  case "MineralPoison":
558
559
  return poison.source_type.MineralPoison.level;
@@ -67,6 +67,7 @@ export declare const Influence: DB.Entity<"Influence", {
67
67
  }>, []>>>, []>>, true>;
68
68
  translations: DB.MemberDecl<DB.NestedEntityMap<"InfluenceTranslation", {
69
69
  name: DB.MemberDecl<DB.String, true>;
70
+ rules: DB.MemberDecl<DB.String, false>;
70
71
  effects: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"InfluenceEffect", DB.Object<{
71
72
  label: DB.MemberDecl<DB.String, true>;
72
73
  text: DB.MemberDecl<DB.String, true>;
@@ -16,6 +16,10 @@ export const Influence = DB.Entity(import.meta.url, {
16
16
  comment: "The influence’s name.",
17
17
  type: DB.String({ minLength: 1 }),
18
18
  }),
19
+ rules: DB.Optional({
20
+ comment: "Some general rules for the influence. They will be prepended to the effects. This can be used for influences that do not have any effects and should contain the text mentioning this fact.",
21
+ type: DB.String({ minLength: 1, isMarkdown: true }),
22
+ }),
19
23
  effects: DB.Optional({
20
24
  comment: "The effects of the influence. They should be sorted like they are in the book.",
21
25
  type: DB.Array(DB.IncludeIdentifier(InfluenceEffect), { minItems: 1 }),
@@ -133,6 +133,7 @@ export declare const Poison: DB.Entity<"Poison", {
133
133
  brewing_process_prerequisites: DB.MemberDecl<DB.String, false>;
134
134
  }>, true>;
135
135
  }>, []>>>;
136
+ AlchemicalPactGiftPoison: DB.EnumCase<null>;
136
137
  MineralPoison: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"MineralPoison", DB.Object<{
137
138
  level: DB.MemberDecl<DB.Integer, true>;
138
139
  }>, []>>>;
@@ -253,7 +254,7 @@ export declare const Poison: DB.Entity<"Poison", {
253
254
  description: DB.MemberDecl<DB.String, true>;
254
255
  }>, true>;
255
256
  }>, []>>>;
256
- }, []>>, true>;
257
+ }, []>>, false>;
257
258
  src: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"PublicationRefs", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"PublicationRef", DB.Object<{
258
259
  id: DB.MemberDecl<DB.ReferenceIdentifier, true>;
259
260
  occurrences: DB.MemberDecl<DB.NestedEntityMap<string, {
@@ -39,7 +39,7 @@ export const Poison = DB.Entity(import.meta.url, {
39
39
  comment: "The raw (ingredients) value per level, in silverthalers.",
40
40
  type: DB.Integer({ minimum: 1 }),
41
41
  }),
42
- cost: DB.Required({
42
+ cost: DB.Optional({
43
43
  comment: "Price for one dose, in silverthalers.",
44
44
  type: DB.IncludeIdentifier(PoisonCost),
45
45
  }),
@@ -210,6 +210,10 @@ const PoisonSourceType = DB.Enum(import.meta.url, {
210
210
  values: () => ({
211
211
  AnimalVenom: DB.EnumCase({ type: DB.IncludeIdentifier(AnimalVenom) }),
212
212
  AlchemicalPoison: DB.EnumCase({ type: DB.IncludeIdentifier(AlchemicalPoison) }),
213
+ AlchemicalPactGiftPoison: DB.EnumCase({
214
+ comment: "An alchemical poison that is part of a pact gift and cannot be obtained or brewed by means typical for an alchemical poison.",
215
+ type: null,
216
+ }),
213
217
  MineralPoison: DB.EnumCase({ type: DB.IncludeIdentifier(MineralPoison) }),
214
218
  PlantPoison: DB.EnumCase({ type: DB.IncludeIdentifier(PlantPoison) }),
215
219
  DemonicPoison: DB.EnumCase({ type: DB.IncludeIdentifier(DemonicPoison) }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "optolith-database-schema",
3
- "version": "0.34.5",
3
+ "version": "0.34.8",
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",