s2cfgtojson 2.1.3 → 2.1.5

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 +1 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "s2cfgtojson",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
4
4
  "description": "Converts Stalker 2 Cfg file into a POJO",
5
5
  "keywords": [
6
6
  "stalker",
package/types.mts CHANGED
@@ -7,6 +7,7 @@ export interface Struct<T extends Entries = {}> {
7
7
  bskipref?: boolean;
8
8
  _id: string;
9
9
  entries: T;
10
+ toTs(): string;
10
11
  }
11
12
  export type DefaultEntries = { _isArray?: boolean; _useAsterisk?: boolean };
12
13
  export type Value = Omit<Struct, "toTs"> | string | boolean | number;
@@ -378,7 +379,6 @@ export type EDamageBone = `EDamageBone::${"Body" | "Head" | "Limbs"}`;
378
379
  export type EDamageSource = `EDamageSource::${
379
380
  | "AnomalyStrike"
380
381
  | "BiteLarge"
381
- | "BiteLarge "
382
382
  | "BiteRat"
383
383
  | "BiteSmall"
384
384
  | "Buckshot"
@@ -387,9 +387,7 @@ export type EDamageSource = `EDamageSource::${
387
387
  | "Carousel"
388
388
  | "Chemical"
389
389
  | "CutLarge"
390
- | "CutLarge "
391
390
  | "CutSmall"
392
- | "CutSmall "
393
391
  | "Electricity"
394
392
  | "Explosion"
395
393
  | "Fire"
@@ -402,7 +400,6 @@ export type EDamageSource = `EDamageSource::${
402
400
  | "PoltergeistElectroCollisionAttack"
403
401
  | "PoltergeistFireCollisionAttack"
404
402
  | "RamLarge"
405
- | "RamLarge "
406
403
  | "RamSmall"
407
404
  | "ShockWave"
408
405
  | "WeaponButt"}`;
@@ -952,10 +949,8 @@ export type EItemContainerType = `EItemContainerType::${
952
949
  | "Stash"}`;
953
950
  export type EItemGenerationCategory = `EItemGenerationCategory::${
954
951
  | "Ammo"
955
- | "Ammo "
956
952
  | "Artifact"
957
953
  | "Attach"
958
- | "Attach "
959
954
  | "BodyArmor"
960
955
  | "Consumable"
961
956
  | "Detector"
@@ -966,7 +961,6 @@ export type EItemGenerationCategory = `EItemGenerationCategory::${
966
961
  | "SubItemGenerator"
967
962
  | "WeaponPistol"
968
963
  | "WeaponPrimary"
969
- | "WeaponPrimary "
970
964
  | "WeaponSecondary"}`;
971
965
  export type EItemInfoType = `EItemInfoType::${
972
966
  | "Accuracy"
@@ -1494,7 +1488,6 @@ export type ERadiationPreset = `ERadiationPreset::${
1494
1488
  | "Topaz"}`;
1495
1489
  export type ERank = `ERank::${
1496
1490
  | "Experienced"
1497
- | "Experienced "
1498
1491
  | "GetCount"
1499
1492
  | "Master"
1500
1493
  | "Newbie"
@@ -1682,14 +1675,10 @@ export type EUISound = `EUISound::${
1682
1675
  | "UseConsumableWater"}`;
1683
1676
  export type EUpgradeTargetPartType = `EUpgradeTargetPartType::${
1684
1677
  | "Barrel"
1685
- | "Barrel "
1686
1678
  | "Body"
1687
- | "Body "
1688
1679
  | "Handguard"
1689
- | "Handguard "
1690
1680
  | "None"
1691
1681
  | "PistolGrip"
1692
- | "PistolGrip "
1693
1682
  | "Stock"
1694
1683
  | "Stock "}`;
1695
1684
  export type EUpgradeVerticalPosition = `EUpgradeVerticalPosition::${