@optolith/database-schema 0.52.0 → 0.52.1

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.52.1](https://github.com/Optolith/database-schema/compare/v0.52.0...v0.52.1) (2026-06-20)
6
+
7
+
8
+ ### Features
9
+
10
+ * optional translation for combat technique restrictions ([1e30f55](https://github.com/Optolith/database-schema/commit/1e30f55407cae829aae2d1a1097c30eff4c68f3a)), closes [#169](https://github.com/Optolith/database-schema/issues/169) [#168](https://github.com/Optolith/database-schema/issues/168)
11
+
5
12
  ## [0.52.0](https://github.com/Optolith/database-schema/compare/v0.51.0...v0.52.0) (2026-06-19)
6
13
 
7
14
 
package/gen/types.d.ts CHANGED
@@ -11847,12 +11847,26 @@ export interface SpecificApplicableCombatTechnique {
11847
11847
 
11848
11848
  restriction?: ApplicableSpecificCombatTechniquesRestriction
11849
11849
 
11850
+ /**
11851
+ * All translations for the entry, identified by IETF language tag (BCP47).
11852
+ */
11853
+ translation?: {
11854
+ [localeId: string]: SpecificApplicableCombatTechniqueTranslation
11855
+ }
11856
+
11850
11857
  /**
11851
11858
  * The specific weapons this combat special ability is only applicable to.
11852
11859
  */
11853
11860
  weapons?: Weapon_ID[]
11854
11861
  }
11855
11862
 
11863
+ export interface SpecificApplicableCombatTechniqueTranslation {
11864
+ /**
11865
+ * The additional restriction of the combat technique.
11866
+ */
11867
+ restriction: string
11868
+ }
11869
+
11856
11870
  export type ApplicableSpecificCombatTechniquesRestriction =
11857
11871
  | {
11858
11872
  kind: "Improvised"
@@ -117,6 +117,9 @@ export declare const combat_techniques: DB.MemberDecl<DB.IncludeIdentifier<[], D
117
117
  }>, []>>>;
118
118
  OneBluntSide: DB.EnumCase<null>;
119
119
  }, []>>, false>;
120
+ translation: DB.MemberDecl<DB.NestedEntityMap<"SpecificApplicableCombatTechniqueTranslation", {
121
+ restriction: DB.MemberDecl<DB.String, true>;
122
+ }>, false>;
120
123
  weapons: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, false>;
121
124
  }>, []>>>, true>;
122
125
  }>, []>>>;
@@ -1,6 +1,7 @@
1
1
  import * as DB from "tsondb/schema/dsl";
2
2
  import { CloseCombatTechniqueIdentifier, RaceIdentifier, RangedCombatTechniqueIdentifier, WeaponIdentifier, } from "./_Identifier.js";
3
3
  import { CombatRelatedSpecialAbilityIdentifier, CombatTechniqueIdentifier, } from "./_IdentifierGroup.js";
4
+ import { NestedTranslationMap } from "./Locale.js";
4
5
  const CombatSpecialAbilityUsageType = DB.Enum(import.meta.url, {
5
6
  name: "CombatSpecialAbilityUsageType",
6
7
  comment: "The definition of how the combat special ability can be used in combat.",
@@ -262,6 +263,12 @@ const SpecificApplicableCombatTechnique = DB.TypeAlias(import.meta.url, {
262
263
  restriction: DB.Optional({
263
264
  type: DB.IncludeIdentifier(ApplicableSpecificCombatTechniquesRestriction),
264
265
  }),
266
+ translation: NestedTranslationMap(DB.Optional, "SpecificApplicableCombatTechnique", DB.Object({
267
+ restriction: DB.Required({
268
+ comment: "The additional restriction of the combat technique.",
269
+ type: DB.String({ minLength: 1, markdown: "inline" }),
270
+ }),
271
+ })),
265
272
  weapons: DB.Optional({
266
273
  comment: "The specific weapons this combat special ability is only applicable to.",
267
274
  type: DB.Array(WeaponIdentifier(), { minItems: 1 }),
@@ -1114,6 +1114,9 @@ export declare const AdvancedCombatSpecialAbility: DB.Entity<"AdvancedCombatSpec
1114
1114
  }>, []>>>;
1115
1115
  OneBluntSide: DB.EnumCase<null>;
1116
1116
  }, []>>, false>;
1117
+ translation: DB.MemberDecl<DB.NestedEntityMap<"SpecificApplicableCombatTechniqueTranslation", {
1118
+ restriction: DB.MemberDecl<DB.String, true>;
1119
+ }>, false>;
1117
1120
  weapons: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, false>;
1118
1121
  }>, []>>>, true>;
1119
1122
  }>, []>>>;
@@ -1008,6 +1008,9 @@ export declare const BrawlingSpecialAbility: DB.Entity<"BrawlingSpecialAbility",
1008
1008
  }>, []>>>;
1009
1009
  OneBluntSide: DB.EnumCase<null>;
1010
1010
  }, []>>, false>;
1011
+ translation: DB.MemberDecl<DB.NestedEntityMap<"SpecificApplicableCombatTechniqueTranslation", {
1012
+ restriction: DB.MemberDecl<DB.String, true>;
1013
+ }>, false>;
1011
1014
  weapons: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, false>;
1012
1015
  }>, []>>>, true>;
1013
1016
  }>, []>>>;
@@ -1114,6 +1114,9 @@ export declare const CombatSpecialAbility: DB.Entity<"CombatSpecialAbility", {
1114
1114
  }>, []>>>;
1115
1115
  OneBluntSide: DB.EnumCase<null>;
1116
1116
  }, []>>, false>;
1117
+ translation: DB.MemberDecl<DB.NestedEntityMap<"SpecificApplicableCombatTechniqueTranslation", {
1118
+ restriction: DB.MemberDecl<DB.String, true>;
1119
+ }>, false>;
1117
1120
  weapons: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, false>;
1118
1121
  }>, []>>>, true>;
1119
1122
  }>, []>>>;
@@ -1167,6 +1167,9 @@ export declare const CombatStyleSpecialAbility: DB.Entity<"CombatStyleSpecialAbi
1167
1167
  }>, []>>>;
1168
1168
  OneBluntSide: DB.EnumCase<null>;
1169
1169
  }, []>>, false>;
1170
+ translation: DB.MemberDecl<DB.NestedEntityMap<"SpecificApplicableCombatTechniqueTranslation", {
1171
+ restriction: DB.MemberDecl<DB.String, true>;
1172
+ }>, false>;
1170
1173
  weapons: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, false>;
1171
1174
  }>, []>>>, true>;
1172
1175
  }>, []>>>;
@@ -1008,6 +1008,9 @@ export declare const CommandSpecialAbility: DB.Entity<"CommandSpecialAbility", {
1008
1008
  }>, []>>>;
1009
1009
  OneBluntSide: DB.EnumCase<null>;
1010
1010
  }, []>>, false>;
1011
+ translation: DB.MemberDecl<DB.NestedEntityMap<"SpecificApplicableCombatTechniqueTranslation", {
1012
+ restriction: DB.MemberDecl<DB.String, true>;
1013
+ }>, false>;
1011
1014
  weapons: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, false>;
1012
1015
  }>, []>>>, true>;
1013
1016
  }>, []>>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optolith/database-schema",
3
- "version": "0.52.0",
3
+ "version": "0.52.1",
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",