optolith-database-schema 0.34.9 → 0.34.10

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,13 @@
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.10](https://github.com/elyukai/optolith-database-schema/compare/v0.34.9...v0.34.10) (2026-03-10)
6
+
7
+
8
+ ### Features
9
+
10
+ * poison cost depending on purchase or sale ([22e6dfd](https://github.com/elyukai/optolith-database-schema/commit/22e6dfda8b2e9425ab7b524fda0276ef549a685c))
11
+
5
12
  ## [0.34.9](https://github.com/elyukai/optolith-database-schema/compare/v0.34.8...v0.34.9) (2026-03-09)
6
13
 
7
14
 
package/gen/types.d.ts CHANGED
@@ -525,6 +525,7 @@ export type TypeAliasMap = {
525
525
  DefaultRangedDamage: DefaultRangedDamage
526
526
  DefiniteBookCostVariant: DefiniteBookCostVariant
527
527
  DemonicPoison: DemonicPoison
528
+ DependingOnPurchaseOrSalePoisonCost: DependingOnPurchaseOrSalePoisonCost
528
529
  Deprecation: Deprecation
529
530
  DerivedCharacteristicBase: DerivedCharacteristicBase
530
531
  DerivedCharacteristicBuyBack: DerivedCharacteristicBuyBack
@@ -22735,6 +22736,10 @@ export type PoisonCost =
22735
22736
  kind: "Indefinite"
22736
22737
  Indefinite: IndefinitePoisonCost
22737
22738
  }
22739
+ | {
22740
+ kind: "DependingOnPurchaseOrSale"
22741
+ DependingOnPurchaseOrSale: DependingOnPurchaseOrSalePoisonCost
22742
+ }
22738
22743
 
22739
22744
  export interface NoPoisonCost {
22740
22745
  /**
@@ -22768,6 +22773,21 @@ export interface IndefinitePoisonCostTranslation {
22768
22773
  description: string
22769
22774
  }
22770
22775
 
22776
+ /**
22777
+ * The cost depends on whether the poison is being purchased or sold.
22778
+ */
22779
+ export interface DependingOnPurchaseOrSalePoisonCost {
22780
+ /**
22781
+ * The cost when purchasing the poison.
22782
+ */
22783
+ purchase: number
22784
+
22785
+ /**
22786
+ * The cost when selling the poison.
22787
+ */
22788
+ sale: number
22789
+ }
22790
+
22771
22791
  export interface RopeOrChain {
22772
22792
  /**
22773
22793
  * The cost in silverthalers.
@@ -254,6 +254,10 @@ export declare const Poison: DB.Entity<"Poison", {
254
254
  description: DB.MemberDecl<DB.String, true>;
255
255
  }>, true>;
256
256
  }>, []>>>;
257
+ DependingOnPurchaseOrSale: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"DependingOnPurchaseOrSalePoisonCost", DB.Object<{
258
+ purchase: DB.MemberDecl<DB.Float, true>;
259
+ sale: DB.MemberDecl<DB.Float, true>;
260
+ }>, []>>>;
257
261
  }, []>>, false>;
258
262
  src: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"PublicationRefs", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"PublicationRef", DB.Object<{
259
263
  id: DB.MemberDecl<DB.ReferenceIdentifier, true>;
@@ -111,6 +111,10 @@ const PoisonCost = DB.Enum(import.meta.url, {
111
111
  None: DB.EnumCase({ type: DB.IncludeIdentifier(NoPoisonCost) }),
112
112
  Constant: DB.EnumCase({ type: DB.Float({ minimum: { value: 0, isExclusive: true } }) }),
113
113
  Indefinite: DB.EnumCase({ type: DB.IncludeIdentifier(IndefinitePoisonCost) }),
114
+ DependingOnPurchaseOrSale: DB.EnumCase({
115
+ comment: "The cost depends on whether the poison is being purchased or sold.",
116
+ type: DB.IncludeIdentifier(DependingOnPurchaseOrSalePoisonCost),
117
+ }),
114
118
  }),
115
119
  });
116
120
  export const NoPoisonCost = DB.TypeAlias(import.meta.url, {
@@ -135,6 +139,20 @@ export const IndefinitePoisonCost = DB.TypeAlias(import.meta.url, {
135
139
  })),
136
140
  }),
137
141
  });
142
+ const DependingOnPurchaseOrSalePoisonCost = DB.TypeAlias(import.meta.url, {
143
+ name: "DependingOnPurchaseOrSalePoisonCost",
144
+ comment: "The cost depends on whether the poison is being purchased or sold.",
145
+ type: () => DB.Object({
146
+ purchase: DB.Required({
147
+ comment: "The cost when purchasing the poison.",
148
+ type: DB.Float({ minimum: { value: 0, isExclusive: true } }),
149
+ }),
150
+ sale: DB.Required({
151
+ comment: "The cost when selling the poison.",
152
+ type: DB.Float({ minimum: { value: 0, isExclusive: true } }),
153
+ }),
154
+ }),
155
+ });
138
156
  export const ConstantPoisonTime = DB.TypeAlias(import.meta.url, {
139
157
  name: "ConstantPoisonTime",
140
158
  type: () => DB.Object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "optolith-database-schema",
3
- "version": "0.34.9",
3
+ "version": "0.34.10",
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",