s2cfgtojson 4.2.2 → 4.3.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/Struct.mts CHANGED
@@ -408,7 +408,7 @@ export function parseKey(key: string, parent: Struct, index: number) {
408
408
  normKey = extractKeyFromBrackets(key);
409
409
 
410
410
  if (normKey === "*") {
411
- // parent.__internal__.useAsterisk = true; never use asterisk for space-saving reasons
411
+ parent.__internal__.useAsterisk = true;
412
412
  return Object.keys(parent).length - 1;
413
413
  }
414
414
 
package/Struct.test.mts CHANGED
@@ -148,7 +148,7 @@ struct.end`;
148
148
  ReputationThreshold = -500
149
149
  RefreshTime = 1h
150
150
  PossibleItems : struct.begin
151
- [0] : struct.begin
151
+ [*] : struct.begin
152
152
  ItemPrototypeSID = DutyArmor_3_U1
153
153
  Weight = 1
154
154
  MinDurability = 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "s2cfgtojson",
3
- "version": "4.2.2",
3
+ "version": "4.3.1",
4
4
  "description": "Converts Stalker 2 Cfg file into POJOs",
5
5
  "keywords": [
6
6
  "stalker",
package/types.mts CHANGED
@@ -3842,3 +3842,32 @@ export type RSQ00_Rewar = GetStructType<{
3842
3842
  };
3843
3843
  SID: string;
3844
3844
  }>;
3845
+
3846
+ export type NPCPrototype = GetStructType<{
3847
+ SID: string;
3848
+ HelloDialogChain: string;
3849
+ ByeDialogChain: string;
3850
+ DefeatTopicDialogChain: string;
3851
+ DefeatCommentDialogChain: string;
3852
+ CallPlayerCommentDialogChain: string;
3853
+ ResumeCommentDialogChain: string;
3854
+ BusyCommentDialogChain: string;
3855
+ TradeTopicDialogChain: string;
3856
+ UpgradeTopicDialogChain: string;
3857
+ TravelTopicDialogChain: string;
3858
+ FastTravelPrototypeSID: string;
3859
+ NPCType: ENPCType;
3860
+ NPCMarker: string;
3861
+ UpdateMarkerOnMap: boolean;
3862
+ Money: number;
3863
+ Upgrades: { UpgradePrototypeSID: string; Enabled: boolean }[];
3864
+ Skills: string[];
3865
+ UseGeneratedName: boolean;
3866
+ NameTextKey: string;
3867
+ ThreshHoldItemCondition: number;
3868
+ VoiceUA: string;
3869
+ VoiceEN: string;
3870
+ QuestNPC: boolean;
3871
+ BuyCoefficient: number;
3872
+ SellCoefficient: number;
3873
+ }>;