s2cfgtojson 2.2.7 → 2.2.8

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types.mts +24 -20
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "s2cfgtojson",
3
- "version": "2.2.7",
3
+ "version": "2.2.8",
4
4
  "description": "Converts Stalker 2 Cfg file into a POJO",
5
5
  "keywords": [
6
6
  "stalker",
package/types.mts CHANGED
@@ -478,7 +478,7 @@ export type ALifeDirectorScenarioPrototype = GetStructType<{
478
478
  };
479
479
  }>;
480
480
 
481
- export type _QuestDialog = GetStructType<{
481
+ export type DialogPrototype = GetStructType<{
482
482
  SID: string;
483
483
  DialogChainPrototypeSID: string;
484
484
  DialogMemberIndex: number;
@@ -523,13 +523,33 @@ export type _QuestDialog = GetStructType<{
523
523
  False: { NextDialogSID: string; Terminate: boolean };
524
524
  };
525
525
  HasVOInSequence: boolean;
526
- DialogActions: string;
526
+ DialogActions: {
527
+ DialogAction: EDialogAction;
528
+ DialogActionParam:
529
+ | {
530
+ VariableType: EGlobalVariableType;
531
+ VariableValue: number | string | boolean;
532
+ }
533
+ | number;
534
+ ItemsCount: {
535
+ VariableType: EGlobalVariableType;
536
+ VariableValue: number | string | boolean;
537
+ };
538
+ WithEquipped: boolean;
539
+ }[];
527
540
  DialogAnswerActions: {
528
541
  DialogAction: EDialogAction;
529
- DialogActionParam: {
542
+ DialogActionParam:
543
+ | {
544
+ VariableType: EGlobalVariableType;
545
+ VariableValue: number | string | boolean;
546
+ }
547
+ | number;
548
+ ItemsCount: {
530
549
  VariableType: EGlobalVariableType;
531
- VariableValue: number;
550
+ VariableValue: number | string | boolean;
532
551
  };
552
+ WithEquipped: boolean;
533
553
  }[];
534
554
  NodePrototypeVersion: number;
535
555
  FaceAnimationSubPath: string;
@@ -551,22 +571,6 @@ export type _QuestDialog = GetStructType<{
551
571
  MainReply: boolean;
552
572
  }>;
553
573
 
554
- export type RSQ01_Dialog_Warlock_RSQ = _QuestDialog;
555
-
556
- export type RSQ04_Dialog_Drabadan_RSQ = _QuestDialog;
557
-
558
- export type RSQ05_Dialog_Sich_RSQ = _QuestDialog;
559
-
560
- export type RSQ06_Dialog_Sidorovich_RSQ = _QuestDialog;
561
-
562
- export type RSQ07_Dialog_Barmen_RSQ = _QuestDialog;
563
-
564
- export type RSQ08_Dialog_Barmen_RSQ = _QuestDialog;
565
-
566
- export type RSQ09_Dialog_Spica_RSQ = _QuestDialog;
567
-
568
- export type RSQ10_Dialog_Harpy_RSQ = _QuestDialog;
569
-
570
574
  export type DifficultyPrototype = GetStructType<{
571
575
  SID: string;
572
576
  NPC_HP: number;