optolith-database-schema 0.34.16 → 0.35.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.
- package/CHANGELOG.md +18 -0
- package/gen/types.d.ts +3 -1
- package/lib/types/Locale.d.ts +2 -0
- package/lib/types/Locale.js +3 -0
- package/lib/types/equipment/item/Jewelry.js +4 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
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.35.0](https://github.com/elyukai/optolith-database-schema/compare/v0.34.17...v0.35.0) (2026-03-13)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
* only allow numeric cost for jewelry
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* only allow numeric cost for jewelry ([a83b27e](https://github.com/elyukai/optolith-database-schema/commit/a83b27e802efb026bbd2fc75ee70a41df2c56c36))
|
|
15
|
+
|
|
16
|
+
## [0.34.17](https://github.com/elyukai/optolith-database-schema/compare/v0.34.16...v0.34.17) (2026-03-12)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* add two translations ([4d3b548](https://github.com/elyukai/optolith-database-schema/commit/4d3b548c70f4bb12e0bb6178a0a0426be56c4b97))
|
|
22
|
+
|
|
5
23
|
## [0.34.16](https://github.com/elyukai/optolith-database-schema/compare/v0.34.15...v0.34.16) (2026-03-12)
|
|
6
24
|
|
|
7
25
|
|
package/gen/types.d.ts
CHANGED
|
@@ -2511,6 +2511,8 @@ export interface Locale {
|
|
|
2511
2511
|
"Enhancements": string
|
|
2512
2512
|
"SR {$value}": string & { __params: { "value": StringableTranslationParameter } }
|
|
2513
2513
|
".input {$hiddenCount :number} {{Prerequisites}}": string & { __params: { "hiddenCount": number } }
|
|
2514
|
+
"Profession Package": string
|
|
2515
|
+
"Optional Rule": string
|
|
2514
2516
|
}
|
|
2515
2517
|
}
|
|
2516
2518
|
|
|
@@ -21674,7 +21676,7 @@ export interface Jewelry {
|
|
|
21674
21676
|
/**
|
|
21675
21677
|
* The cost in silverthalers.
|
|
21676
21678
|
*/
|
|
21677
|
-
cost: JewelryMaterialDifference<
|
|
21679
|
+
cost: JewelryMaterialDifference<number>
|
|
21678
21680
|
|
|
21679
21681
|
/**
|
|
21680
21682
|
* The weight in kg.
|
package/lib/types/Locale.d.ts
CHANGED
|
@@ -1555,6 +1555,8 @@ export declare const Locale: DB.Entity<"Locale", {
|
|
|
1555
1555
|
Enhancements: null;
|
|
1556
1556
|
"SR {$value}": null;
|
|
1557
1557
|
".input {$hiddenCount :number} {{Prerequisites}}": null;
|
|
1558
|
+
"Profession Package": null;
|
|
1559
|
+
"Optional Rule": null;
|
|
1558
1560
|
}>, false>;
|
|
1559
1561
|
}, undefined>;
|
|
1560
1562
|
export declare const NestedTranslationMap: <Name extends string, T extends Record<string, DB.MemberDecl>, R extends boolean>(MemberDeclCreator: <T_1 extends DB.Type>(options: {
|
package/lib/types/Locale.js
CHANGED
|
@@ -1605,6 +1605,9 @@ export const Locale = DB.Entity(import.meta.url, {
|
|
|
1605
1605
|
"Enhancements": null,
|
|
1606
1606
|
"SR {$value}": null,
|
|
1607
1607
|
".input {$hiddenCount :number} {{Prerequisites}}": null,
|
|
1608
|
+
// Library Entry Subtitles
|
|
1609
|
+
"Profession Package": null,
|
|
1610
|
+
"Optional Rule": null,
|
|
1608
1611
|
}, { allKeysAreRequired: true }),
|
|
1609
1612
|
}),
|
|
1610
1613
|
}),
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import * as DB from "tsondb/schema/dsl";
|
|
2
2
|
import { src } from "../../source/_PublicationRef.js";
|
|
3
|
-
import { Complexity,
|
|
3
|
+
import { Complexity, DefaultItemTranslations, StructurePoints, Weight } from "./_Item.js";
|
|
4
4
|
export const Jewelry = DB.Entity(import.meta.url, {
|
|
5
5
|
name: "Jewelry",
|
|
6
6
|
namePlural: "Jewelries",
|
|
7
7
|
type: () => DB.Object({
|
|
8
8
|
cost: DB.Required({
|
|
9
9
|
comment: "The cost in silverthalers.",
|
|
10
|
-
type: DB.GenIncludeIdentifier(JewelryMaterialDifference, [
|
|
10
|
+
type: DB.GenIncludeIdentifier(JewelryMaterialDifference, [
|
|
11
|
+
DB.Float({ minimum: { value: 0, isExclusive: true } }),
|
|
12
|
+
]),
|
|
11
13
|
}),
|
|
12
14
|
weight: DB.Required({
|
|
13
15
|
comment: "The weight in kg.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "optolith-database-schema",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.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",
|