eve-fit-engine 0.2.25 → 0.2.27

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 (30) hide show
  1. package/README.md +1 -1
  2. package/data/.build +1 -1
  3. package/data/manifest.json +1 -1
  4. package/dist/index.cjs +7 -2
  5. package/dist/index.js +7 -2
  6. package/dist/node.cjs +7 -2
  7. package/dist/node.js +7 -2
  8. package/package.json +1 -2
  9. /package/data/{v6aa1296100f7 → v010eaba5e0f5}/attributes.json +0 -0
  10. /package/data/{v6aa1296100f7 → v010eaba5e0f5}/categories.json +0 -0
  11. /package/data/{v6aa1296100f7 → v010eaba5e0f5}/clone-grades.json +0 -0
  12. /package/data/{v6aa1296100f7 → v010eaba5e0f5}/dbuff-collections.json +0 -0
  13. /package/data/{v6aa1296100f7 → v010eaba5e0f5}/dynamic-attributes.json +0 -0
  14. /package/data/{v6aa1296100f7 → v010eaba5e0f5}/effects.json +0 -0
  15. /package/data/{v6aa1296100f7 → v010eaba5e0f5}/groups.json +0 -0
  16. /package/data/{v6aa1296100f7 → v010eaba5e0f5}/market-groups.json +0 -0
  17. /package/data/{v6aa1296100f7 → v010eaba5e0f5}/meta-groups.json +0 -0
  18. /package/data/{v6aa1296100f7 → v010eaba5e0f5}/types/charges.json +0 -0
  19. /package/data/{v6aa1296100f7 → v010eaba5e0f5}/types/drones.json +0 -0
  20. /package/data/{v6aa1296100f7 → v010eaba5e0f5}/types/fighters.json +0 -0
  21. /package/data/{v6aa1296100f7 → v010eaba5e0f5}/types/implants.json +0 -0
  22. /package/data/{v6aa1296100f7 → v010eaba5e0f5}/types/modules.json +0 -0
  23. /package/data/{v6aa1296100f7 → v010eaba5e0f5}/types/mutaplasmids.json +0 -0
  24. /package/data/{v6aa1296100f7 → v010eaba5e0f5}/types/ships.json +0 -0
  25. /package/data/{v6aa1296100f7 → v010eaba5e0f5}/types/skills.json +0 -0
  26. /package/data/{v6aa1296100f7 → v010eaba5e0f5}/types/structure-modules.json +0 -0
  27. /package/data/{v6aa1296100f7 → v010eaba5e0f5}/types/structures.json +0 -0
  28. /package/data/{v6aa1296100f7 → v010eaba5e0f5}/types/subsystems.json +0 -0
  29. /package/data/{v6aa1296100f7 → v010eaba5e0f5}/types/system-effects.json +0 -0
  30. /package/data/{v6aa1296100f7 → v010eaba5e0f5}/units.json +0 -0
package/README.md CHANGED
@@ -54,7 +54,7 @@ const { fit, warnings, computed } = await computeFromEft(`
54
54
  Gyrostabilizer II
55
55
  `)
56
56
 
57
- console.log(computed.derived.offense.totalDps) // 197.6
57
+ console.log(computed.derived.offense.totalDps) // 110.1
58
58
  console.log(computed.derived.defense.ehpTotalAgainstProfile)
59
59
  console.log(computed.derived.navigation.maxVelocity)
60
60
  ```
package/data/.build CHANGED
@@ -1 +1 @@
1
- 3714173
1
+ 3720952
@@ -1 +1 @@
1
- {"version":"6aa1296100f7","builtAt":"2026-11-18T13:45:48.701Z","totalBytes":8649014,"files":{"attributes.json":{"bytes":264363,"entries":1332},"units.json":{"bytes":3458,"entries":60},"effects.json":{"bytes":1640954,"entries":3499},"meta-groups.json":{"bytes":1301,"entries":15},"categories.json":{"bytes":1192,"entries":33},"groups.json":{"bytes":65521,"entries":985},"market-groups.json":{"bytes":199374,"entries":2125},"clone-grades.json":{"bytes":18709,"entries":4},"dbuff-collections.json":{"bytes":115411,"entries":373},"dynamic-attributes.json":{"bytes":153951,"entries":441},"types/ships.json":{"bytes":937089,"entries":430},"types/modules.json":{"bytes":2625565,"entries":4043},"types/charges.json":{"bytes":599962,"entries":1017},"types/drones.json":{"bytes":195383,"entries":154},"types/fighters.json":{"bytes":135182,"entries":94},"types/implants.json":{"bytes":567765,"entries":1308},"types/subsystems.json":{"bytes":36381,"entries":48},"types/skills.json":{"bytes":204066,"entries":513},"types/system-effects.json":{"bytes":38068,"entries":115},"types/structures.json":{"bytes":32031,"entries":18},"types/structure-modules.json":{"bytes":246957,"entries":356},"types/mutaplasmids.json":{"bytes":566331,"entries":2874}}}
1
+ {"version":"010eaba5e0f5","builtAt":"2026-11-19T14:15:28.045Z","totalBytes":8649014,"files":{"attributes.json":{"bytes":264363,"entries":1332},"units.json":{"bytes":3458,"entries":60},"effects.json":{"bytes":1640954,"entries":3499},"meta-groups.json":{"bytes":1301,"entries":15},"categories.json":{"bytes":1192,"entries":33},"groups.json":{"bytes":65521,"entries":985},"market-groups.json":{"bytes":199374,"entries":2125},"clone-grades.json":{"bytes":18709,"entries":4},"dbuff-collections.json":{"bytes":115411,"entries":373},"dynamic-attributes.json":{"bytes":153951,"entries":441},"types/ships.json":{"bytes":937089,"entries":430},"types/modules.json":{"bytes":2625565,"entries":4043},"types/charges.json":{"bytes":599962,"entries":1017},"types/drones.json":{"bytes":195383,"entries":154},"types/fighters.json":{"bytes":135182,"entries":94},"types/implants.json":{"bytes":567765,"entries":1308},"types/subsystems.json":{"bytes":36381,"entries":48},"types/skills.json":{"bytes":204066,"entries":513},"types/system-effects.json":{"bytes":38068,"entries":115},"types/structures.json":{"bytes":32031,"entries":18},"types/structure-modules.json":{"bytes":246957,"entries":356},"types/mutaplasmids.json":{"bytes":566331,"entries":2874}}}
package/dist/index.cjs CHANGED
@@ -495,7 +495,7 @@ var BOOSTER_SIDE_EFFECT_IDS = /* @__PURE__ */ new Set([
495
495
  var OUT_OF_SCOPE_EFFECT_IDS = [
496
496
  // ---- Hardpoint / slot dispatch markers consumed via fitChecks (not a modifier dispatch path). ----
497
497
  { id: 40, name: null, handler: "fitChecks::isMissileLauncher (hardpoint marker)" },
498
- { id: 42, name: null, handler: "fitChecks::isTurretWeapon (hardpoint marker, also on miners)" },
498
+ { id: 42, name: null, handler: "fitChecks::isTurretWeapon + derived/capacitor no-stagger (hardpoint marker, also on miners)" },
499
499
  { id: 263, name: null, handler: "fitChecks::reload-cycle marker (barrage)" },
500
500
  // ---- Targeting-only behaviours: do not modify ship stats ----
501
501
  { id: 54, name: null, handler: "OUT-OF-SCOPE :: targetPassively (passive lock, no stat impact)" },
@@ -4379,6 +4379,7 @@ function computeTotalEhp(shield, armor, hull, useProfile) {
4379
4379
  }
4380
4380
 
4381
4381
  // src/derived/capacitor.ts
4382
+ var EFFECT_TURRET_FITTED = 42;
4382
4383
  function computeCapacitor(ctx, dataset) {
4383
4384
  const ship = ctx.ship;
4384
4385
  const capacity = ship.getFinal(ATTR.CAPACITOR_CAPACITY, 0);
@@ -4511,7 +4512,11 @@ function drainEntryFromEffect(effect, mod) {
4511
4512
  // shared cycle); everything else is staggered evenly across its cycle.
4512
4513
  // Without this, N turrets were staggered (one drain at cycle/N) instead
4513
4514
  // of N together, shifting the cap timeline (time-to-empty off ~5-10 %).
4514
- disableStagger: isTurretWeapon(mod.type)
4515
+ // pyfa's hardpoint is the `turretFitted` effect (Module.__calculateHardpoint),
4516
+ // which every turret weapon carries but so do mining lasers and other
4517
+ // turret-slot utilities: two Citizen Miners on a Deacon read 42.30 % cap
4518
+ // stable against pyfa's 41.88 % while they were staggered.
4519
+ disableStagger: mod.type.effects.some((e) => e.id === EFFECT_TURRET_FITTED)
4515
4520
  };
4516
4521
  }
4517
4522
  function boosterDrainEntry(mod) {
package/dist/index.js CHANGED
@@ -493,7 +493,7 @@ var BOOSTER_SIDE_EFFECT_IDS = /* @__PURE__ */ new Set([
493
493
  var OUT_OF_SCOPE_EFFECT_IDS = [
494
494
  // ---- Hardpoint / slot dispatch markers consumed via fitChecks (not a modifier dispatch path). ----
495
495
  { id: 40, name: null, handler: "fitChecks::isMissileLauncher (hardpoint marker)" },
496
- { id: 42, name: null, handler: "fitChecks::isTurretWeapon (hardpoint marker, also on miners)" },
496
+ { id: 42, name: null, handler: "fitChecks::isTurretWeapon + derived/capacitor no-stagger (hardpoint marker, also on miners)" },
497
497
  { id: 263, name: null, handler: "fitChecks::reload-cycle marker (barrage)" },
498
498
  // ---- Targeting-only behaviours: do not modify ship stats ----
499
499
  { id: 54, name: null, handler: "OUT-OF-SCOPE :: targetPassively (passive lock, no stat impact)" },
@@ -4377,6 +4377,7 @@ function computeTotalEhp(shield, armor, hull, useProfile) {
4377
4377
  }
4378
4378
 
4379
4379
  // src/derived/capacitor.ts
4380
+ var EFFECT_TURRET_FITTED = 42;
4380
4381
  function computeCapacitor(ctx, dataset) {
4381
4382
  const ship = ctx.ship;
4382
4383
  const capacity = ship.getFinal(ATTR.CAPACITOR_CAPACITY, 0);
@@ -4509,7 +4510,11 @@ function drainEntryFromEffect(effect, mod) {
4509
4510
  // shared cycle); everything else is staggered evenly across its cycle.
4510
4511
  // Without this, N turrets were staggered (one drain at cycle/N) instead
4511
4512
  // of N together, shifting the cap timeline (time-to-empty off ~5-10 %).
4512
- disableStagger: isTurretWeapon(mod.type)
4513
+ // pyfa's hardpoint is the `turretFitted` effect (Module.__calculateHardpoint),
4514
+ // which every turret weapon carries but so do mining lasers and other
4515
+ // turret-slot utilities: two Citizen Miners on a Deacon read 42.30 % cap
4516
+ // stable against pyfa's 41.88 % while they were staggered.
4517
+ disableStagger: mod.type.effects.some((e) => e.id === EFFECT_TURRET_FITTED)
4513
4518
  };
4514
4519
  }
4515
4520
  function boosterDrainEntry(mod) {
package/dist/node.cjs CHANGED
@@ -523,7 +523,7 @@ var BOOSTER_SIDE_EFFECT_IDS = /* @__PURE__ */ new Set([
523
523
  var OUT_OF_SCOPE_EFFECT_IDS = [
524
524
  // ---- Hardpoint / slot dispatch markers consumed via fitChecks (not a modifier dispatch path). ----
525
525
  { id: 40, name: null, handler: "fitChecks::isMissileLauncher (hardpoint marker)" },
526
- { id: 42, name: null, handler: "fitChecks::isTurretWeapon (hardpoint marker, also on miners)" },
526
+ { id: 42, name: null, handler: "fitChecks::isTurretWeapon + derived/capacitor no-stagger (hardpoint marker, also on miners)" },
527
527
  { id: 263, name: null, handler: "fitChecks::reload-cycle marker (barrage)" },
528
528
  // ---- Targeting-only behaviours: do not modify ship stats ----
529
529
  { id: 54, name: null, handler: "OUT-OF-SCOPE :: targetPassively (passive lock, no stat impact)" },
@@ -4407,6 +4407,7 @@ function computeTotalEhp(shield, armor, hull, useProfile) {
4407
4407
  }
4408
4408
 
4409
4409
  // src/derived/capacitor.ts
4410
+ var EFFECT_TURRET_FITTED = 42;
4410
4411
  function computeCapacitor(ctx, dataset) {
4411
4412
  const ship = ctx.ship;
4412
4413
  const capacity = ship.getFinal(ATTR.CAPACITOR_CAPACITY, 0);
@@ -4539,7 +4540,11 @@ function drainEntryFromEffect(effect, mod) {
4539
4540
  // shared cycle); everything else is staggered evenly across its cycle.
4540
4541
  // Without this, N turrets were staggered (one drain at cycle/N) instead
4541
4542
  // of N together, shifting the cap timeline (time-to-empty off ~5-10 %).
4542
- disableStagger: isTurretWeapon(mod.type)
4543
+ // pyfa's hardpoint is the `turretFitted` effect (Module.__calculateHardpoint),
4544
+ // which every turret weapon carries but so do mining lasers and other
4545
+ // turret-slot utilities: two Citizen Miners on a Deacon read 42.30 % cap
4546
+ // stable against pyfa's 41.88 % while they were staggered.
4547
+ disableStagger: mod.type.effects.some((e) => e.id === EFFECT_TURRET_FITTED)
4543
4548
  };
4544
4549
  }
4545
4550
  function boosterDrainEntry(mod) {
package/dist/node.js CHANGED
@@ -499,7 +499,7 @@ var BOOSTER_SIDE_EFFECT_IDS = /* @__PURE__ */ new Set([
499
499
  var OUT_OF_SCOPE_EFFECT_IDS = [
500
500
  // ---- Hardpoint / slot dispatch markers consumed via fitChecks (not a modifier dispatch path). ----
501
501
  { id: 40, name: null, handler: "fitChecks::isMissileLauncher (hardpoint marker)" },
502
- { id: 42, name: null, handler: "fitChecks::isTurretWeapon (hardpoint marker, also on miners)" },
502
+ { id: 42, name: null, handler: "fitChecks::isTurretWeapon + derived/capacitor no-stagger (hardpoint marker, also on miners)" },
503
503
  { id: 263, name: null, handler: "fitChecks::reload-cycle marker (barrage)" },
504
504
  // ---- Targeting-only behaviours: do not modify ship stats ----
505
505
  { id: 54, name: null, handler: "OUT-OF-SCOPE :: targetPassively (passive lock, no stat impact)" },
@@ -4383,6 +4383,7 @@ function computeTotalEhp(shield, armor, hull, useProfile) {
4383
4383
  }
4384
4384
 
4385
4385
  // src/derived/capacitor.ts
4386
+ var EFFECT_TURRET_FITTED = 42;
4386
4387
  function computeCapacitor(ctx, dataset) {
4387
4388
  const ship = ctx.ship;
4388
4389
  const capacity = ship.getFinal(ATTR.CAPACITOR_CAPACITY, 0);
@@ -4515,7 +4516,11 @@ function drainEntryFromEffect(effect, mod) {
4515
4516
  // shared cycle); everything else is staggered evenly across its cycle.
4516
4517
  // Without this, N turrets were staggered (one drain at cycle/N) instead
4517
4518
  // of N together, shifting the cap timeline (time-to-empty off ~5-10 %).
4518
- disableStagger: isTurretWeapon(mod.type)
4519
+ // pyfa's hardpoint is the `turretFitted` effect (Module.__calculateHardpoint),
4520
+ // which every turret weapon carries but so do mining lasers and other
4521
+ // turret-slot utilities: two Citizen Miners on a Deacon read 42.30 % cap
4522
+ // stable against pyfa's 41.88 % while they were staggered.
4523
+ disableStagger: mod.type.effects.some((e) => e.id === EFFECT_TURRET_FITTED)
4519
4524
  };
4520
4525
  }
4521
4526
  function boosterDrainEntry(mod) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eve-fit-engine",
3
- "version": "0.2.25",
3
+ "version": "0.2.27",
4
4
  "description": "Pyfa-parity EVE Online ship & structure fitting calculation engine. Inject an SDE dataset + a fit, get the full derived stat block (offense, defense, capacitor, navigation, targeting, fitting, projected, structure).",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "type": "module",
@@ -66,7 +66,6 @@
66
66
  },
67
67
  "devDependencies": {
68
68
  "@types/node": "^26.6.6",
69
- "adm-zip": "^0.6.1",
70
69
  "tsup": "^9.0.0",
71
70
  "tsx": "^4.23.15",
72
71
  "typescript": "^6.0.3"