@eveshipfit/dogma-engine 10.1.0 → 10.3.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.
package/README.md CHANGED
@@ -31,15 +31,18 @@ All identifiers are those from the SDE.
31
31
  - `name` (optional): name of the fit.
32
32
  - `ship`: the ship being fitted.
33
33
  - `type_id`: its type.
34
+ - `mode` (optional): type ID of the active mode, for ships that have modes.
35
+ _Whether the mode belongs to the ship is not checked._
34
36
  - `items`: everything fitted or carried. Each item has:
35
37
  - `type_id`: its type.
36
38
  - `slot`: where the item is.
37
- - `type`: `high`, `medium`, `low`, `rig`, `subsystem`, `service`, `drone_bay` or `cargo`.
39
+ - `type`: `high`, `medium`, `low`, `rig`, `subsystem`, `service`, `fighter_tube`, `fighter_bay`, `drone_bay` or `cargo`.
38
40
  _`cargo` is carried, but not calculated._
39
- - `index`: position within that slot type, starting at 0. Absent for `drone_bay` and `cargo`.
40
- - `quantity` (optional, default 1): stack size for drones and cargo.
41
+ - `index`: position within that slot type, starting at 0. Absent for `fighter_bay`, `drone_bay` and `cargo`.
42
+ - `quantity` (optional, default 1): stack size for drones, fighters and cargo. For fighters in a tube, the squadron size.
41
43
  - `state`: requested state; `offline`, `online`, `active` or `overload`.
42
44
  - `charge` (optional): the loaded charge, as `type_id`.
45
+ - `fighter_abilities` (optional): the abilities a fighter uses, as effect IDs. Absent means the fighter's default abilities.
43
46
  - `character` (optional):
44
47
  - `skills`: level (0 to 5) per skill type ID. A missing skill gives no bonuses.
45
48
 
@@ -51,6 +54,7 @@ All identifiers are those from the SDE.
51
54
  ### Calculation
52
55
 
53
56
  - `ship`: result for the ship.
57
+ - `mode`: result for the mode; absent when the fit has no mode.
54
58
  - `items`: one result per item of the fit, in the same order.
55
59
  - `character`: result for the character.
56
60
 
@@ -58,7 +62,7 @@ Each result has:
58
62
 
59
63
  - `attributes`: per attribute ID, its `base` value before effects and its final `value`.
60
64
  With the `sources` option, also `sources`: every modifier on it, in the order they were applied. Each has:
61
- - `from`: where it comes from; `type` is `ship`, `character`, `item` or `charge` (with the `index` into `items`), or `skill` (with its `type_id`).
65
+ - `from`: where it comes from; `type` is `ship`, `mode`, `character`, `item` or `charge` (with the `index` into `items`), or `skill` (with its `type_id`).
62
66
  - `effect_id`: the effect that modifies.
63
67
  - `source_attribute_id`: the attribute on the source that holds `value`.
64
68
  - `operator`: `pre_assign`, `pre_mul`, `pre_div`, `mod_add`, `mod_sub`, `post_mul`, `post_div`, `post_percent` or `post_assign`.
@@ -72,10 +76,6 @@ Each result has:
72
76
  - `max_state`: the highest state the item can reach.
73
77
  - `charge`: result for its charge, if it has one.
74
78
 
75
- ### Things to know
76
-
77
- - A stack, like five drones, has the attributes of a single item; its bonuses count once per item in the stack.
78
-
79
79
  ## EVEShip.fit's specific attributes
80
80
 
81
81
  `Pass 4` create Dogma attributes that do not exist in-game, but are rather complicated to calculate.
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "EVEShipFit Team <info@eveship.fit>"
6
6
  ],
7
7
  "description": "Library to calculate statistics for EVE Online ship fits",
8
- "version": "10.1.0",
8
+ "version": "10.3.0",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",