optolith-database-schema 0.31.3 → 0.31.4

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.31.4](https://github.com/elyukai/optolith-database-schema/compare/v0.31.3...v0.31.4) (2026-02-16)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * optional withdrawal prevention and disease link ([a9211ec](https://github.com/elyukai/optolith-database-schema/commit/a9211ec6b784538cc303cde312b59d8f72079775))
11
+
5
12
  ## [0.31.3](https://github.com/elyukai/optolith-database-schema/compare/v0.31.2...v0.31.3) (2026-02-16)
6
13
 
7
14
 
package/gen/types.d.ts CHANGED
@@ -2374,6 +2374,7 @@ export interface Locale {
2374
2374
  ".input {$hiddenCount :number} {{Alternative Names}}": string & { __params: { "hiddenCount": number } }
2375
2375
  ".input {$count :number} {{check required every {$count}. application}}": string & { __params: { "count": number } }
2376
2376
  ".input {$count :number} {{check required every {$count}. application in the same month}}": string & { __params: { "count": number } }
2377
+ "see {$link}": string & { __params: { "link": StringableTranslationParameter } }
2377
2378
  "Failed": string
2378
2379
  "Progress": string
2379
2380
  "Incubation Time": string
@@ -21993,7 +21994,12 @@ export interface IntoxicantAddiction {
21993
21994
  /**
21994
21995
  * The maximum interval at which it, while addicted, must be ingested to not suffer from withdrawal symptoms.
21995
21996
  */
21996
- withdrawalPrevention: IntoxicantAddictionWithdrawalPrevention
21997
+ withdrawalPrevention?: IntoxicantAddictionWithdrawalPrevention
21998
+
21999
+ /**
22000
+ * The disease that represents the addiction.
22001
+ */
22002
+ disease?: Disease_ID
21997
22003
 
21998
22004
  /**
21999
22005
  * All translations for the entry, identified by IETF language tag (BCP47).
@@ -1455,6 +1455,7 @@ export declare const Locale: DB.Entity<"Locale", {
1455
1455
  ".input {$hiddenCount :number} {{Alternative Names}}": null;
1456
1456
  ".input {$count :number} {{check required every {$count}. application}}": null;
1457
1457
  ".input {$count :number} {{check required every {$count}. application in the same month}}": null;
1458
+ "see {$link}": null;
1458
1459
  Failed: null;
1459
1460
  Progress: null;
1460
1461
  "Incubation Time": null;
@@ -1495,6 +1495,7 @@ export const Locale = DB.Entity(import.meta.url, {
1495
1495
  ".input {$hiddenCount :number} {{Alternative Names}}": null,
1496
1496
  ".input {$count :number} {{check required every {$count}. application}}": null,
1497
1497
  ".input {$count :number} {{check required every {$count}. application in the same month}}": null,
1498
+ "see {$link}": null,
1498
1499
  // sex practices
1499
1500
  "Failed": null,
1500
1501
  // diseases
@@ -115,7 +115,8 @@ export declare const Poison: DB.Entity<"Poison", {
115
115
  }>, []>>, true>;
116
116
  }>, []>>>;
117
117
  }, []>>, true>;
118
- }>, []>>, true>;
118
+ }>, []>>, false>;
119
+ disease: DB.MemberDecl<DB.ReferenceIdentifier, false>;
119
120
  translations: DB.MemberDecl<DB.NestedEntityMap<"IntoxicantAddictionTranslation", {
120
121
  chance: DB.MemberDecl<DB.String, true>;
121
122
  }>, false>;
@@ -169,7 +170,8 @@ export declare const Poison: DB.Entity<"Poison", {
169
170
  }>, []>>, true>;
170
171
  }>, []>>>;
171
172
  }, []>>, true>;
172
- }>, []>>, true>;
173
+ }>, []>>, false>;
174
+ disease: DB.MemberDecl<DB.ReferenceIdentifier, false>;
173
175
  translations: DB.MemberDecl<DB.NestedEntityMap<"IntoxicantAddictionTranslation", {
174
176
  chance: DB.MemberDecl<DB.String, true>;
175
177
  }>, false>;
@@ -471,7 +473,8 @@ export declare const AlchemicalPoison: DB.TypeAlias<"AlchemicalPoison", DB.Objec
471
473
  }>, []>>, true>;
472
474
  }>, []>>>;
473
475
  }, []>>, true>;
474
- }>, []>>, true>;
476
+ }>, []>>, false>;
477
+ disease: DB.MemberDecl<DB.ReferenceIdentifier, false>;
475
478
  translations: DB.MemberDecl<DB.NestedEntityMap<"IntoxicantAddictionTranslation", {
476
479
  chance: DB.MemberDecl<DB.String, true>;
477
480
  }>, false>;
@@ -525,7 +528,8 @@ export declare const PlantPoison: DB.TypeAlias<"PlantPoison", DB.Object<{
525
528
  }>, []>>, true>;
526
529
  }>, []>>>;
527
530
  }, []>>, true>;
528
- }>, []>>, true>;
531
+ }>, []>>, false>;
532
+ disease: DB.MemberDecl<DB.ReferenceIdentifier, false>;
529
533
  translations: DB.MemberDecl<DB.NestedEntityMap<"IntoxicantAddictionTranslation", {
530
534
  chance: DB.MemberDecl<DB.String, true>;
531
535
  }>, false>;
@@ -584,7 +588,8 @@ export declare const Intoxicant: DB.TypeAlias<"Intoxicant", DB.Object<{
584
588
  }>, []>>, true>;
585
589
  }>, []>>>;
586
590
  }, []>>, true>;
587
- }>, []>>, true>;
591
+ }>, []>>, false>;
592
+ disease: DB.MemberDecl<DB.ReferenceIdentifier, false>;
588
593
  translations: DB.MemberDecl<DB.NestedEntityMap<"IntoxicantAddictionTranslation", {
589
594
  chance: DB.MemberDecl<DB.String, true>;
590
595
  }>, false>;
@@ -618,7 +623,8 @@ export declare const IntoxicantAddiction: DB.TypeAlias<"IntoxicantAddiction", DB
618
623
  }>, []>>, true>;
619
624
  }>, []>>>;
620
625
  }, []>>, true>;
621
- }>, []>>, true>;
626
+ }>, []>>, false>;
627
+ disease: DB.MemberDecl<DB.ReferenceIdentifier, false>;
622
628
  translations: DB.MemberDecl<DB.NestedEntityMap<"IntoxicantAddictionTranslation", {
623
629
  chance: DB.MemberDecl<DB.String, true>;
624
630
  }>, false>;
@@ -3,6 +3,7 @@ import { NestedTranslationMap } from "../../Locale.js";
3
3
  import { AlternativeName } from "../../_AlternativeNames.js";
4
4
  import { Dice } from "../../_Dice.js";
5
5
  import { Reduceable, Resistance } from "../../_DiseasePoison.js";
6
+ import { DiseaseIdentifier } from "../../_Identifier.js";
6
7
  import { MathOperation } from "../../_MathExpression.js";
7
8
  import { Errata } from "../../source/_Erratum.js";
8
9
  import { src } from "../../source/_PublicationRef.js";
@@ -416,10 +417,14 @@ export const IntoxicantAddiction = DB.TypeAlias(import.meta.url, {
416
417
  comment: "The interval at which to check for addiction after an ingestion. If set to one, every ingestion has to be checked for addiction. If set to two, every second ingestion has to be checked, and so on.",
417
418
  type: DB.IncludeIdentifier(IntoxicantAddictionCheck),
418
419
  }),
419
- withdrawalPrevention: DB.Required({
420
+ withdrawalPrevention: DB.Optional({
420
421
  comment: "The maximum interval at which it, while addicted, must be ingested to not suffer from withdrawal symptoms.",
421
422
  type: DB.IncludeIdentifier(IntoxicantAddictionWithdrawalPrevention),
422
423
  }),
424
+ disease: DB.Optional({
425
+ comment: "The disease that represents the addiction.",
426
+ type: DiseaseIdentifier(),
427
+ }),
423
428
  translations: NestedTranslationMap(DB.Optional, "IntoxicantAddiction", DB.Object({
424
429
  chance: DB.Required({
425
430
  comment: "The chance of getting addicted after an ingestion. Use if and only if the plain constant percent is not sufficient.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "optolith-database-schema",
3
- "version": "0.31.3",
3
+ "version": "0.31.4",
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",