s2cfgtojson 3.7.3 → 3.8.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 +128 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "s2cfgtojson",
3
- "version": "3.7.3",
3
+ "version": "3.8.0",
4
4
  "description": "Converts Stalker 2 Cfg file into POJOs",
5
5
  "keywords": [
6
6
  "stalker",
package/types.mts CHANGED
@@ -84,6 +84,7 @@ import {
84
84
  EMainHandEquipmentType,
85
85
  EBrokenGameDataFilter,
86
86
  EDialogAnimationType,
87
+ ERelationChangingEvent,
87
88
  } from "./enums.mts";
88
89
 
89
90
  import { Struct } from "./Struct.mjs";
@@ -2341,3 +2342,130 @@ export type SpawnActorPrototype = GetStructType<{
2341
2342
  CanBeWounded: boolean;
2342
2343
  AllowSpawnOnIsolatedNavMesh: boolean;
2343
2344
  }>;
2345
+
2346
+ export type Reactions =
2347
+ | "Enemy"
2348
+ | "Disaffection"
2349
+ | "Neutral"
2350
+ | "Friend"
2351
+ | "Self";
2352
+
2353
+ export type Factions =
2354
+ | ""
2355
+ | "Humanoid"
2356
+ | "Player"
2357
+ | "Bandits"
2358
+ | "Monolith"
2359
+ | "FreeStalkers"
2360
+ | "Army"
2361
+ | "Duty"
2362
+ | "Freedom"
2363
+ | "Varta"
2364
+ | "Neutrals"
2365
+ | "Militaries"
2366
+ | "Noon"
2367
+ | "Scientists"
2368
+ | "Mercenaries"
2369
+ | "Flame"
2370
+ | "Law"
2371
+ | "Spark"
2372
+ | "Corpus"
2373
+ | "WildBandits"
2374
+ | "GarmataMilitaries"
2375
+ | "SphereMilitaries"
2376
+ | "NeutralBandits"
2377
+ | "VaranBandits"
2378
+ | "RooseveltBandits"
2379
+ | "ShahBandits"
2380
+ | "LokotBandits"
2381
+ | "DepoBandits"
2382
+ | "DepoVictims"
2383
+ | "DocentBandits"
2384
+ | "VaranStashBandits"
2385
+ | "Diggers"
2386
+ | "KosakBandits"
2387
+ | "AzimutVarta"
2388
+ | "UdavMercenaries"
2389
+ | "SafariHunters"
2390
+ | "AzimuthMilitaries"
2391
+ | "SultanBandits"
2392
+ | "ShevchenkoStalkers"
2393
+ | "VartaLesnichestvo"
2394
+ | "SparkLesnichestvo"
2395
+ | "IkarVarta"
2396
+ | "KabanBandits"
2397
+ | "CrazyGuardians"
2398
+ | "ArenaEnemy"
2399
+ | "ArenaFriend"
2400
+ | "DrozdMilitaries"
2401
+ | "EnemyVarta"
2402
+ | "NeutralMSOP"
2403
+ | "YanovCorpus"
2404
+ | "MoleStalkers"
2405
+ | "Mutant"
2406
+ | "Controller"
2407
+ | "Poltergeist"
2408
+ | "Bloodsucker"
2409
+ | "Zombie"
2410
+ | "Chimera"
2411
+ | "Burer"
2412
+ | "Pseudogiant"
2413
+ | "Anamorph"
2414
+ | "Sinister"
2415
+ | "Pseudobear"
2416
+ | "Snork"
2417
+ | "Pseudodog"
2418
+ | "Boar"
2419
+ | "Flesh"
2420
+ | "Beaver"
2421
+ | "Ratwolf"
2422
+ | "Deer"
2423
+ | "Rat"
2424
+ | "Tushkan"
2425
+ | "Stickman"
2426
+ | "Blinddog"
2427
+ | "Bayun"
2428
+ | "CorpusStorm"
2429
+ | "DocileLabMutants"
2430
+ | "VartaSIRCAA"
2431
+ | "YantarZombie"
2432
+ | "FriendlyBlinddog"
2433
+ | "Lessy"
2434
+ | "AlliedMutants"
2435
+ | "NoahLesya"
2436
+ | "KlenMercenaries"
2437
+ | "SIRCAA_Scientist"
2438
+ | "MALACHITE_Scientist"
2439
+ | "NoonFaustians"
2440
+ | "SQ89_SidorMercs"
2441
+ | "ScarBoss_Faction"
2442
+ | "KorshunovBoss_Faction"
2443
+ | "StrelokBoss_Faction"
2444
+ | "FaustBoss_Faction";
2445
+
2446
+ export type RelationPrototype = GetStructType<{
2447
+ SID: string;
2448
+ FactionsInvolvedDistance: number;
2449
+ ReputationRollbackRadius: number;
2450
+ ReputationRollbackCooldown: number;
2451
+ RelationVersion: number;
2452
+ RelationLevelRanges: { start: number; end: number }[];
2453
+ MinRelationLevelToTrade: ERelationLevel;
2454
+ CharacterReactions: ({
2455
+ Type: ERelationChangingEvent;
2456
+ } & {
2457
+ [key in `${Reactions}->${Reactions}`]: number;
2458
+ })[];
2459
+ FactionReactions: ({
2460
+ Type: ERelationChangingEvent;
2461
+ } & {
2462
+ [key in `${Reactions}->${Reactions}`]: number;
2463
+ })[];
2464
+ Factions: Record<Factions, Factions>;
2465
+ Relations: {
2466
+ [key in `${Factions}<->${Factions}`]: number;
2467
+ };
2468
+ PositiveReactionsExcludedFactions: `${Factions}<->${Factions}`[];
2469
+ NegativeReactionsExcludedFactions: `${Factions}<->${Factions}`[];
2470
+ FactionRollbackCooldowns: Record<Factions, number>;
2471
+ }>;