optolith-database-schema 0.34.8 → 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 +14 -0
- package/gen/types.d.ts +23 -0
- package/lib/types/equipment/item/Poison.d.ts +5 -0
- package/lib/types/equipment/item/Poison.js +19 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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
|
+
|
|
12
|
+
## [0.34.9](https://github.com/elyukai/optolith-database-schema/compare/v0.34.8...v0.34.9) (2026-03-09)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* add circle of damnation as possible poison duration component ([d519e66](https://github.com/elyukai/optolith-database-schema/commit/d519e662b416a376824a1042bf0f11f7e9033017))
|
|
18
|
+
|
|
5
19
|
## [0.34.8](https://github.com/elyukai/optolith-database-schema/compare/v0.34.7...v0.34.8) (2026-03-09)
|
|
6
20
|
|
|
7
21
|
|
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
|
|
@@ -22715,6 +22716,9 @@ export type ExpressionBasedPoisonTimeExpressionValue =
|
|
|
22715
22716
|
kind: "Dice"
|
|
22716
22717
|
Dice: Dice
|
|
22717
22718
|
}
|
|
22719
|
+
| {
|
|
22720
|
+
kind: "CircleOfDamnation"
|
|
22721
|
+
}
|
|
22718
22722
|
|
|
22719
22723
|
export type PoisonCost =
|
|
22720
22724
|
| {
|
|
@@ -22732,6 +22736,10 @@ export type PoisonCost =
|
|
|
22732
22736
|
kind: "Indefinite"
|
|
22733
22737
|
Indefinite: IndefinitePoisonCost
|
|
22734
22738
|
}
|
|
22739
|
+
| {
|
|
22740
|
+
kind: "DependingOnPurchaseOrSale"
|
|
22741
|
+
DependingOnPurchaseOrSale: DependingOnPurchaseOrSalePoisonCost
|
|
22742
|
+
}
|
|
22735
22743
|
|
|
22736
22744
|
export interface NoPoisonCost {
|
|
22737
22745
|
/**
|
|
@@ -22765,6 +22773,21 @@ export interface IndefinitePoisonCostTranslation {
|
|
|
22765
22773
|
description: string
|
|
22766
22774
|
}
|
|
22767
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
|
+
|
|
22768
22791
|
export interface RopeOrChain {
|
|
22769
22792
|
/**
|
|
22770
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>;
|
|
@@ -361,6 +365,7 @@ export declare const ExpressionBasedPoisonTimeExpressionValue: DB.Enum<"Expressi
|
|
|
361
365
|
number: DB.MemberDecl<DB.Integer, true>;
|
|
362
366
|
sides: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"DieType", DB.Integer, []>>, true>;
|
|
363
367
|
}>, []>>>;
|
|
368
|
+
CircleOfDamnation: DB.EnumCase<null>;
|
|
364
369
|
}, []>;
|
|
365
370
|
export declare const IndefinitePoisonTime: DB.TypeAlias<"IndefinitePoisonTime", DB.Object<{
|
|
366
371
|
translations: DB.MemberDecl<DB.NestedEntityMap<"IndefinitePoisonTimeTranslation", {
|
|
@@ -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({
|
|
@@ -183,6 +201,7 @@ export const ExpressionBasedPoisonTimeExpressionValue = DB.Enum(import.meta.url,
|
|
|
183
201
|
values: () => ({
|
|
184
202
|
Constant: DB.EnumCase({ type: DB.Integer({ minimum: 1 }) }),
|
|
185
203
|
Dice: DB.EnumCase({ type: DB.IncludeIdentifier(Dice) }),
|
|
204
|
+
CircleOfDamnation: DB.EnumCase({ type: null }),
|
|
186
205
|
}),
|
|
187
206
|
});
|
|
188
207
|
const PoisonTimeUnit = DB.Enum(import.meta.url, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "optolith-database-schema",
|
|
3
|
-
"version": "0.34.
|
|
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",
|