@eveshipfit/dogma-engine 13.6.2 → 14.0.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.
@@ -129,6 +129,10 @@ export interface ProjectedEffect {
129
129
  * Every attribute and its value the effect reads.
130
130
  */
131
131
  attributes?: Map<number, number> | Record<number, number>;
132
+ /**
133
+ * How many items aim it.
134
+ */
135
+ quantity?: number;
132
136
  }
133
137
 
134
138
  /**
@@ -147,7 +151,7 @@ export type Resource = "cpu" | "powergrid" | "calibration" | "drone_bay" | "dron
147
151
  * What an item would accept instead is not repeated here; it is on the item
148
152
  * itself, as `chargeGroup1`, `canFitShipType1` and the like.
149
153
  */
150
- export type Rule = { type: "resource"; resource: Resource; used: number; available: number } | { type: "slots"; slot: SlotKind; used: number; available: number } | { type: "wrong_slot"; expected: SlotKind } | { type: "slot_taken" } | { type: "wrong_slot_index"; expected: number } | { type: "subsystem_taken" } | { type: "skill"; type_id: number; required: number; level: number } | { type: "rig_size"; ship: number; item: number } | { type: "ship_restricted" } | { type: "capital_item" } | { type: "structure_item" } | { type: "ship_item" } | { type: "max_group"; group_id: number; limit: GroupLimit; used: number; allowed: number } | { type: "max_type"; type_id: number; used: number; allowed: number } | { type: "charge_group" } | { type: "charge_size"; module: number; charge: number };
154
+ export type Rule = { type: "resource"; resource: Resource; used: number; available: number } | { type: "slots"; slot: SlotKind; used: number; available: number } | { type: "wrong_slot"; expected: SlotKind } | { type: "not_a_module" } | { type: "not_a_drone" } | { type: "not_a_fighter" } | { type: "not_an_implant" } | { type: "slot_taken" } | { type: "wrong_slot_index"; expected: number } | { type: "subsystem_taken" } | { type: "skill"; type_id: number; required: number; level: number } | { type: "rig_size"; ship: number; item: number } | { type: "ship_restricted" } | { type: "capital_item" } | { type: "structure_item" } | { type: "ship_item" } | { type: "max_group"; group_id: number; limit: GroupLimit; used: number; allowed: number } | { type: "max_type"; type_id: number; used: number; allowed: number } | { type: "not_a_hull" } | { type: "not_a_mode" } | { type: "not_a_skill"; type_id: number } | { type: "charge_group" } | { type: "charge_size"; module: number; charge: number };
151
155
 
152
156
  /**
153
157
  * A ship, what is fitted to it, and the character flying it.
@@ -310,7 +314,7 @@ export interface Source {
310
314
  */
311
315
  value: number;
312
316
  /**
313
- * A penalised stack is split into one entry per item, as each gets its own penalty.
317
+ * A penalised stack is split into one entry per counted item, plus one for the rest.
314
318
  */
315
319
  quantity: number;
316
320
  /**
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": "13.6.2",
8
+ "version": "14.0.0",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",