s2cfgtojson 3.8.0 → 3.9.0

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 +20 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "s2cfgtojson",
3
- "version": "3.8.0",
3
+ "version": "3.9.0",
4
4
  "description": "Converts Stalker 2 Cfg file into POJOs",
5
5
  "keywords": [
6
6
  "stalker",
package/types.mts CHANGED
@@ -2443,6 +2443,7 @@ export type Factions =
2443
2443
  | "StrelokBoss_Faction"
2444
2444
  | "FaustBoss_Faction";
2445
2445
 
2446
+ type Faction = string; // for performance
2446
2447
  export type RelationPrototype = GetStructType<{
2447
2448
  SID: string;
2448
2449
  FactionsInvolvedDistance: number;
@@ -2461,11 +2462,25 @@ export type RelationPrototype = GetStructType<{
2461
2462
  } & {
2462
2463
  [key in `${Reactions}->${Reactions}`]: number;
2463
2464
  })[];
2464
- Factions: Record<Factions, Factions>;
2465
+ Factions: Record<Faction, Faction>;
2465
2466
  Relations: {
2466
- [key in `${Factions}<->${Factions}`]: number;
2467
+ [key in `${Faction}<->${Faction}`]: number;
2467
2468
  };
2468
- PositiveReactionsExcludedFactions: `${Factions}<->${Factions}`[];
2469
- NegativeReactionsExcludedFactions: `${Factions}<->${Factions}`[];
2470
- FactionRollbackCooldowns: Record<Factions, number>;
2469
+ PositiveReactionsExcludedFactions: `${Faction}<->${Faction}`[];
2470
+ NegativeReactionsExcludedFactions: `${Faction}<->${Faction}`[];
2471
+ FactionRollbackCooldowns: Record<Faction, number>;
2472
+ }>;
2473
+
2474
+ export type BarbedWirePrototype = GetStructType<{
2475
+ ID: number;
2476
+ SID: string;
2477
+ Damage: number;
2478
+ DamageDelay: number;
2479
+ BleedingChance: number;
2480
+ BleedingValue: number;
2481
+ ArmorDamage: number;
2482
+ ArmorPiercing: number;
2483
+ MovementSpeedDegradeDelay: number;
2484
+ bOverlappable: boolean;
2485
+ NegativeEffectPrototypeSIDs: string[];
2471
2486
  }>;