@elite-dangerous-almanac/core 0.1.0-beta.9 → 0.1.2
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/PROVENANCE/i18n/SOURCES.md +71 -12
- package/PROVENANCE/ships/SOURCES.md +74 -48
- package/README.md +34 -2
- package/THIRD_PARTY_NOTICES.md +3 -3
- package/dist/astro/codex-region-lookup.js +1 -1
- package/dist/astro/codex-region.js +1 -1
- package/dist/astro/galaxy-grid.js +1 -1
- package/dist/astro/index.js +1 -1
- package/dist/astro/mass-code.js +1 -1
- package/dist/astro/naming-region-origins.js +1 -1
- package/dist/astro/nebulae.js +1 -1
- package/dist/astro/permit-locked-regions.js +1 -1
- package/dist/astro/permit-locked-systems.js +1 -1
- package/dist/astro/permit-locks.js +1 -1
- package/dist/astro/procedural-system.js +1 -1
- package/dist/astro/sector-name.js +1 -1
- package/dist/astro/system-address-input.js +1 -1
- package/dist/astro/system-address.js +1 -1
- package/dist/astro/system-name.js +1 -1
- package/dist/{chunk-KQDJTDLV.js → chunk-2J2UV4ZX.js} +1 -1
- package/dist/{chunk-DB54PH3X.js → chunk-6EPYVBAX.js} +1 -1
- package/dist/{chunk-U6TMCYA6.js → chunk-6EUVIZAS.js} +1 -1
- package/dist/chunk-6RLMBSXE.js +1 -0
- package/dist/chunk-6RLMBSXE.js.map +1 -0
- package/dist/{chunk-NWPK6Q3S.js → chunk-ADLVPKUV.js} +1 -1
- package/dist/{chunk-S4DBNX2B.js → chunk-BKWLI44T.js} +1 -1
- package/dist/chunk-BMM6GQAU.js +1 -0
- package/dist/chunk-BMM6GQAU.js.map +1 -0
- package/dist/{chunk-WV5YM7H5.js → chunk-BMT3U46U.js} +1 -1
- package/dist/chunk-CTJQPQRA.js +1 -0
- package/dist/{chunk-NSSWYRHN.js.map → chunk-CTJQPQRA.js.map} +1 -1
- package/dist/chunk-DAQ3PJ4R.js +1 -0
- package/dist/chunk-DAQ3PJ4R.js.map +1 -0
- package/dist/{chunk-BTPV5CIF.js → chunk-DI5RXSJR.js} +1 -1
- package/dist/{chunk-YDBRGW4G.js → chunk-DLLBARN5.js} +1 -1
- package/dist/{chunk-J2PNZQY4.js → chunk-DVL5RBKX.js} +1 -1
- package/dist/{chunk-VXVUEF5U.js → chunk-E3BRVGJJ.js} +1 -1
- package/dist/{chunk-MFV4VZFP.js → chunk-EBAHNZ36.js} +1 -1
- package/dist/{chunk-BSOIPL4A.js → chunk-EJMNNQIS.js} +1 -1
- package/dist/{chunk-BSOIPL4A.js.map → chunk-EJMNNQIS.js.map} +1 -1
- package/dist/{chunk-QF3NYGUJ.js → chunk-EKWLAHRG.js} +1 -1
- package/dist/chunk-EU42PAV4.js +1 -0
- package/dist/{chunk-32PVERNH.js.map → chunk-EU42PAV4.js.map} +1 -1
- package/dist/{chunk-Q22LXT53.js → chunk-FEER4ERG.js} +1 -1
- package/dist/{chunk-G3AMKCOE.js → chunk-FGNJ7EVM.js} +1 -1
- package/dist/{chunk-JWJ7RSZC.js → chunk-G3265B27.js} +1 -1
- package/dist/chunk-GKDEI2SQ.js +1 -0
- package/dist/chunk-GKDEI2SQ.js.map +1 -0
- package/dist/chunk-GOMBLS2T.js +1 -0
- package/dist/chunk-GOMBLS2T.js.map +1 -0
- package/dist/{chunk-V3DW67W2.js → chunk-GRIK3EDH.js} +1 -1
- package/dist/chunk-H3HMVGEY.js +1 -0
- package/dist/chunk-H3HMVGEY.js.map +1 -0
- package/dist/{chunk-UXZJMZEU.js → chunk-HRVIHQ4A.js} +1 -1
- package/dist/{chunk-QTDBO7R2.js → chunk-IYU4WLFM.js} +1 -1
- package/dist/{chunk-5EUX3L76.js → chunk-JWWYAMGD.js} +1 -1
- package/dist/chunk-KAA4VOOB.js +1 -0
- package/dist/chunk-KAA4VOOB.js.map +1 -0
- package/dist/{chunk-ZFT56QFR.js → chunk-L7CLUYZ6.js} +1 -1
- package/dist/{chunk-4AE22CHV.js → chunk-M5IBENCW.js} +1 -1
- package/dist/chunk-M5IBENCW.js.map +1 -0
- package/dist/{chunk-IH4NXKVW.js → chunk-NEEFT7WH.js} +1 -1
- package/dist/{chunk-VZXL5KBR.js → chunk-NLBUKXNV.js} +1 -1
- package/dist/{chunk-4OSCSACF.js → chunk-OCND33TO.js} +1 -1
- package/dist/{chunk-PMJG7PHU.js → chunk-PHPLZEFS.js} +1 -1
- package/dist/chunk-PKWVG2JY.js +1 -0
- package/dist/chunk-PKWVG2JY.js.map +1 -0
- package/dist/chunk-PNZCLQDJ.js +1 -0
- package/dist/{chunk-53ERRGPM.js.map → chunk-PNZCLQDJ.js.map} +1 -1
- package/dist/{chunk-DACZE3HX.js → chunk-POZTXBSN.js} +1 -1
- package/dist/chunk-Q4E2V6RE.js +1 -0
- package/dist/chunk-Q4E2V6RE.js.map +1 -0
- package/dist/{chunk-DNTN34M4.js → chunk-QI22FKBG.js} +1 -1
- package/dist/chunk-QTZPA2FR.js +1 -0
- package/dist/{chunk-TH4S5MVD.js.map → chunk-QTZPA2FR.js.map} +1 -1
- package/dist/{chunk-MNXWK7PA.js → chunk-R26GVRMI.js} +1 -1
- package/dist/{chunk-I7PIDRMU.js → chunk-RAO35XDF.js} +1 -1
- package/dist/chunk-TFPIPIMU.js +1 -0
- package/dist/chunk-TFPIPIMU.js.map +1 -0
- package/dist/chunk-TLA6LHLN.js +1 -0
- package/dist/{chunk-V4C6FIE2.js.map → chunk-TLA6LHLN.js.map} +1 -1
- package/dist/{chunk-JYQE53FL.js → chunk-TMMGS6TC.js} +1 -1
- package/dist/{chunk-ZAHNOQGG.js → chunk-UBYO7VZR.js} +1 -1
- package/dist/{chunk-Z4GTTB7I.js → chunk-UXBCLFGU.js} +1 -1
- package/dist/{chunk-RKLJ7EEE.js → chunk-UXFMVZAY.js} +1 -1
- package/dist/chunk-VB3XZGIB.js +1 -0
- package/dist/chunk-VB3XZGIB.js.map +1 -0
- package/dist/chunk-VKN65H2U.js +1 -0
- package/dist/chunk-VKN65H2U.js.map +1 -0
- package/dist/chunk-VSNS7Y3M.js +1 -0
- package/dist/chunk-VSNS7Y3M.js.map +1 -0
- package/dist/{chunk-MPZGCTRG.js → chunk-VZZUNSDF.js} +1 -1
- package/dist/chunk-VZZUNSDF.js.map +1 -0
- package/dist/{chunk-ZJB5UYNE.js → chunk-W5G2NUCZ.js} +1 -1
- package/dist/{chunk-ZJB5UYNE.js.map → chunk-W5G2NUCZ.js.map} +1 -1
- package/dist/{chunk-IJRKEODR.js → chunk-WNGQ3IAM.js} +1 -1
- package/dist/{chunk-VARPO47V.js → chunk-XN6Q7LWU.js} +1 -1
- package/dist/chunk-XT6KKGSE.js +1 -0
- package/dist/chunk-XT6KKGSE.js.map +1 -0
- package/dist/{chunk-KMFUCORC.js → chunk-Y6UZWNP4.js} +1 -1
- package/dist/{chunk-QMQHIZGS.js → chunk-YU5GND2Q.js} +1 -1
- package/dist/chunk-YU5GND2Q.js.map +1 -0
- package/dist/commodities/commodities.js +1 -1
- package/dist/commodities/index.js +1 -1
- package/dist/equipment/index.js +1 -1
- package/dist/equipment/modification-costs.js +1 -1
- package/dist/equipment/modification-journal.js +1 -1
- package/dist/equipment/modifications.js +1 -1
- package/dist/equipment/suits.js +1 -1
- package/dist/equipment/upgrade-costs.js +1 -1
- package/dist/equipment/weapons.js +1 -1
- package/dist/i18n/blueprints.js +1 -1
- package/dist/i18n/diagnostics.d.ts +62 -0
- package/dist/i18n/diagnostics.js +1 -0
- package/dist/i18n/diagnostics.js.map +1 -0
- package/dist/i18n/engineering-groups.d.ts +20 -0
- package/dist/i18n/engineering-groups.js +1 -0
- package/dist/i18n/engineering-groups.js.map +1 -0
- package/dist/i18n/experimental-effect-descriptions.d.ts +20 -0
- package/dist/i18n/experimental-effect-descriptions.js +1 -0
- package/dist/i18n/experimental-effect-descriptions.js.map +1 -0
- package/dist/i18n/experimental-effects.js +1 -1
- package/dist/i18n/index.d.ts +27 -0
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/materials.js +1 -1
- package/dist/i18n/micro-resources.js +1 -1
- package/dist/i18n/modules.js +1 -1
- package/dist/i18n/pre-engineered.d.ts +39 -0
- package/dist/i18n/pre-engineered.js +1 -0
- package/dist/i18n/pre-engineered.js.map +1 -0
- package/dist/i18n/ships.d.ts +36 -0
- package/dist/i18n/ships.js +1 -0
- package/dist/i18n/ships.js.map +1 -0
- package/dist/i18n/slots.d.ts +42 -0
- package/dist/i18n/slots.js +1 -0
- package/dist/i18n/slots.js.map +1 -0
- package/dist/materials/index.js +1 -1
- package/dist/materials/materials-all.js +1 -1
- package/dist/materials/materials.js +1 -1
- package/dist/materials/micro-resources-all.js +1 -1
- package/dist/materials/micro-resources.js +1 -1
- package/dist/ships/blueprint-costs.d.ts +13 -11
- package/dist/ships/blueprint-costs.js +1 -1
- package/dist/ships/blueprint-costs.js.map +1 -1
- package/dist/ships/blueprint-journal.d.ts +6 -7
- package/dist/ships/blueprint-journal.js +1 -1
- package/dist/ships/blueprints.js +1 -1
- package/dist/ships/default-loadouts.js +1 -1
- package/dist/ships/engineering-options.d.ts +28 -29
- package/dist/ships/engineering-options.js +1 -1
- package/dist/ships/experimental-effect-costs.js +1 -1
- package/dist/ships/experimental-effects.js +1 -1
- package/dist/ships/gunsights.js +1 -1
- package/dist/ships/heat.d.ts +22 -0
- package/dist/ships/heat.js +1 -1
- package/dist/ships/index.d.ts +6 -5
- package/dist/ships/index.js +1 -1
- package/dist/ships/loadout-calculations.d.ts +21 -11
- package/dist/ships/loadout-calculations.js +1 -1
- package/dist/ships/loadout-validation.d.ts +7 -6
- package/dist/ships/loadout-validation.js +1 -1
- package/dist/ships/modules-all.js +1 -1
- package/dist/ships/modules-hardpoint.js +1 -1
- package/dist/ships/modules-internal.js +1 -1
- package/dist/ships/modules.d.ts +5 -5
- package/dist/ships/modules.js +1 -1
- package/dist/ships/power.d.ts +39 -11
- package/dist/ships/power.js +1 -1
- package/dist/ships/pre-engineered-stats.d.ts +20 -4
- package/dist/ships/pre-engineered-stats.js +1 -1
- package/dist/ships/pre-engineered.d.ts +7 -8
- package/dist/ships/pre-engineered.js +1 -1
- package/dist/ships/shield-recovery.d.ts +12 -6
- package/dist/ships/shield-recovery.js +1 -1
- package/dist/ships/ship-loadout.d.ts +1793 -19
- package/dist/ships/ship-loadout.js +1 -1
- package/dist/ships/ships.js +1 -1
- package/dist/ships/slef.js +1 -1
- package/dist/ships/slots.js +1 -1
- package/dist/ships/source-purchase.js +1 -1
- package/package.json +26 -2
- package/dist/chunk-32PVERNH.js +0 -1
- package/dist/chunk-4AE22CHV.js.map +0 -1
- package/dist/chunk-4WC5NHBJ.js +0 -1
- package/dist/chunk-4WC5NHBJ.js.map +0 -1
- package/dist/chunk-53ERRGPM.js +0 -1
- package/dist/chunk-5W43EQEQ.js +0 -1
- package/dist/chunk-5W43EQEQ.js.map +0 -1
- package/dist/chunk-76XKY2Y2.js +0 -1
- package/dist/chunk-76XKY2Y2.js.map +0 -1
- package/dist/chunk-B5TT26XE.js +0 -1
- package/dist/chunk-B5TT26XE.js.map +0 -1
- package/dist/chunk-BYBT5XSW.js +0 -1
- package/dist/chunk-BYBT5XSW.js.map +0 -1
- package/dist/chunk-KLIYDSYF.js +0 -1
- package/dist/chunk-KLIYDSYF.js.map +0 -1
- package/dist/chunk-MPZGCTRG.js.map +0 -1
- package/dist/chunk-NSSWYRHN.js +0 -1
- package/dist/chunk-QMQHIZGS.js.map +0 -1
- package/dist/chunk-RF2IKLWQ.js +0 -1
- package/dist/chunk-RF2IKLWQ.js.map +0 -1
- package/dist/chunk-TH4S5MVD.js +0 -1
- package/dist/chunk-V4C6FIE2.js +0 -1
- package/dist/ship-loadout-BsfKbvKe.d.ts +0 -1455
- /package/dist/{chunk-KQDJTDLV.js.map → chunk-2J2UV4ZX.js.map} +0 -0
- /package/dist/{chunk-DB54PH3X.js.map → chunk-6EPYVBAX.js.map} +0 -0
- /package/dist/{chunk-U6TMCYA6.js.map → chunk-6EUVIZAS.js.map} +0 -0
- /package/dist/{chunk-NWPK6Q3S.js.map → chunk-ADLVPKUV.js.map} +0 -0
- /package/dist/{chunk-S4DBNX2B.js.map → chunk-BKWLI44T.js.map} +0 -0
- /package/dist/{chunk-WV5YM7H5.js.map → chunk-BMT3U46U.js.map} +0 -0
- /package/dist/{chunk-BTPV5CIF.js.map → chunk-DI5RXSJR.js.map} +0 -0
- /package/dist/{chunk-YDBRGW4G.js.map → chunk-DLLBARN5.js.map} +0 -0
- /package/dist/{chunk-J2PNZQY4.js.map → chunk-DVL5RBKX.js.map} +0 -0
- /package/dist/{chunk-VXVUEF5U.js.map → chunk-E3BRVGJJ.js.map} +0 -0
- /package/dist/{chunk-MFV4VZFP.js.map → chunk-EBAHNZ36.js.map} +0 -0
- /package/dist/{chunk-QF3NYGUJ.js.map → chunk-EKWLAHRG.js.map} +0 -0
- /package/dist/{chunk-Q22LXT53.js.map → chunk-FEER4ERG.js.map} +0 -0
- /package/dist/{chunk-G3AMKCOE.js.map → chunk-FGNJ7EVM.js.map} +0 -0
- /package/dist/{chunk-JWJ7RSZC.js.map → chunk-G3265B27.js.map} +0 -0
- /package/dist/{chunk-V3DW67W2.js.map → chunk-GRIK3EDH.js.map} +0 -0
- /package/dist/{chunk-UXZJMZEU.js.map → chunk-HRVIHQ4A.js.map} +0 -0
- /package/dist/{chunk-QTDBO7R2.js.map → chunk-IYU4WLFM.js.map} +0 -0
- /package/dist/{chunk-5EUX3L76.js.map → chunk-JWWYAMGD.js.map} +0 -0
- /package/dist/{chunk-ZFT56QFR.js.map → chunk-L7CLUYZ6.js.map} +0 -0
- /package/dist/{chunk-IH4NXKVW.js.map → chunk-NEEFT7WH.js.map} +0 -0
- /package/dist/{chunk-VZXL5KBR.js.map → chunk-NLBUKXNV.js.map} +0 -0
- /package/dist/{chunk-4OSCSACF.js.map → chunk-OCND33TO.js.map} +0 -0
- /package/dist/{chunk-PMJG7PHU.js.map → chunk-PHPLZEFS.js.map} +0 -0
- /package/dist/{chunk-DACZE3HX.js.map → chunk-POZTXBSN.js.map} +0 -0
- /package/dist/{chunk-DNTN34M4.js.map → chunk-QI22FKBG.js.map} +0 -0
- /package/dist/{chunk-MNXWK7PA.js.map → chunk-R26GVRMI.js.map} +0 -0
- /package/dist/{chunk-I7PIDRMU.js.map → chunk-RAO35XDF.js.map} +0 -0
- /package/dist/{chunk-JYQE53FL.js.map → chunk-TMMGS6TC.js.map} +0 -0
- /package/dist/{chunk-ZAHNOQGG.js.map → chunk-UBYO7VZR.js.map} +0 -0
- /package/dist/{chunk-Z4GTTB7I.js.map → chunk-UXBCLFGU.js.map} +0 -0
- /package/dist/{chunk-RKLJ7EEE.js.map → chunk-UXFMVZAY.js.map} +0 -0
- /package/dist/{chunk-IJRKEODR.js.map → chunk-WNGQ3IAM.js.map} +0 -0
- /package/dist/{chunk-VARPO47V.js.map → chunk-XN6Q7LWU.js.map} +0 -0
- /package/dist/{chunk-KMFUCORC.js.map → chunk-Y6UZWNP4.js.map} +0 -0
|
@@ -19,8 +19,9 @@ import './slots.js';
|
|
|
19
19
|
* gzipped). Consumers that only list variants can import `./pre-engineered.js` without
|
|
20
20
|
* these module catalogues.
|
|
21
21
|
* A journal or SLEF module can instead be classified with
|
|
22
|
-
* {@link identifyPreEngineeredVariant}: it matches
|
|
23
|
-
* and composes an experimental effect added after purchase before comparing values.
|
|
22
|
+
* {@link identifyPreEngineeredVariant}: it matches a reward article's reported stat signature
|
|
23
|
+
* and composes an experimental effect added after purchase before comparing values. A Mercenary
|
|
24
|
+
* article is identified by its Mercenary-only blueprint, including after later grade upgrades.
|
|
24
25
|
*
|
|
25
26
|
* **What is resolved, and what is not.** The module catalogues carry the mechanical
|
|
26
27
|
* stats (mass, integrity, power, capacities, optimal mass), defence stats and weapon
|
|
@@ -83,17 +84,32 @@ declare function getPreEngineeredJournalModifiers(variant: PreEngineeredVariant)
|
|
|
83
84
|
/**
|
|
84
85
|
* Identify the fixed pre-engineered/reward variant described by a fitted loadout module.
|
|
85
86
|
*
|
|
86
|
-
*
|
|
87
|
+
* Reward matching uses the reported post-engineering stat values rather than trusting the
|
|
87
88
|
* blueprint tuple alone: reward variants carry hand-set values that an ordinary roll of
|
|
88
89
|
* the named blueprint does not reproduce. A captured experimental effect is composed
|
|
89
90
|
* with each candidate before comparison, because some fixed articles accept an effect
|
|
90
91
|
* after purchase (the V1 frame-shift drives are the common example).
|
|
91
92
|
*
|
|
93
|
+
* Mercenary articles are the exception: their bespoke blueprint is available only after
|
|
94
|
+
* buying the article, while their unpublished purchase modifier block cannot identify it.
|
|
95
|
+
* The module symbol and blueprint therefore identify the purchase at grade 1 and after
|
|
96
|
+
* upgrading it through grades 2–5. The fitted grade and experimental effect remain the
|
|
97
|
+
* loadout's current engineering state; the returned variant carries the original purchase
|
|
98
|
+
* grade and Merc Coin price.
|
|
99
|
+
*
|
|
100
|
+
* A locked fixed article is also identified by its unique
|
|
101
|
+
* symbol/blueprint/grade/experimental tuple when a SLEF capture omits the `Modifiers` key
|
|
102
|
+
* entirely. A present empty or partial array does not use this shortcut: older library
|
|
103
|
+
* exports can carry an ordinary roll with the same tuple, and its values must not be
|
|
104
|
+
* replaced by reward stats. A third-party export can omit the array from such a roll;
|
|
105
|
+
* that record is indistinguishable from the fixed article, so the catalogue identity
|
|
106
|
+
* wins.
|
|
107
|
+
*
|
|
92
108
|
* Frontier journals and captures may omit a derived modifier, so one predicted value may
|
|
93
109
|
* be absent. Every stated predicted value must agree within journal float noise, and all
|
|
94
110
|
* but at most one must be present. Ambiguous or incomplete evidence returns `null` rather
|
|
95
111
|
* than guessing.
|
|
96
|
-
*
|
|
112
|
+
* Other variants without a published stat block cannot be identified.
|
|
97
113
|
*
|
|
98
114
|
* @param module - A module from a journal `Loadout` event or SLEF export.
|
|
99
115
|
* @returns The uniquely matching catalogue variant, or `null` when the stats do not
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{getPreEngineeredJournalModifiers,getPreEngineeredModifiers,getPreEngineeredStats,identifyPreEngineeredVariant,unresolvedModifiers}from"../chunk-
|
|
1
|
+
export{getPreEngineeredJournalModifiers,getPreEngineeredModifiers,getPreEngineeredStats,identifyPreEngineeredVariant,unresolvedModifiers}from"../chunk-Q4E2V6RE.js"; //# sourceMappingURL=pre-engineered-stats.js.map
|
|
@@ -34,10 +34,9 @@
|
|
|
34
34
|
* computed. Resolve them against the base module with `getPreEngineeredStats` from
|
|
35
35
|
* `./pre-engineered-stats.js`; it lives in its own module so that consumers who only
|
|
36
36
|
* want the catalogue do not bundle the module and engineering tables.
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* articles cannot.
|
|
37
|
+
* Final articles carry {@link PreEngineeredVariant.engineeringLocked}. These are the seven
|
|
38
|
+
* pre-engineered Guardian weapons, whose stock counterparts can take Anti-Guardian Zone
|
|
39
|
+
* Resistance, and five fixed Enzyme/AX rewards whose stock modules have no engineering menu.
|
|
41
40
|
*
|
|
42
41
|
* @packageDocumentation
|
|
43
42
|
*/
|
|
@@ -112,10 +111,10 @@ interface PreEngineeredVariant {
|
|
|
112
111
|
* Whether the article is final and accepts no further engineering.
|
|
113
112
|
*
|
|
114
113
|
* @remarks
|
|
115
|
-
* Present as `true` on the pre-engineered Guardian
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
114
|
+
* Present as `true` on the final pre-engineered Guardian, Enzyme and AX weapons.
|
|
115
|
+
* Neither a blueprint nor an experimental effect may be applied to these articles,
|
|
116
|
+
* and their baked engineering cannot be removed. Absence means this catalogue does
|
|
117
|
+
* not lock further engineering.
|
|
119
118
|
*/
|
|
120
119
|
readonly engineeringLocked?: true;
|
|
121
120
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{PRE_ENGINEERED_MODULES,getPreEngineeredVariants,isPreEngineered}from"../chunk-
|
|
1
|
+
export{PRE_ENGINEERED_MODULES,getPreEngineeredVariants,isPreEngineered}from"../chunk-EU42PAV4.js"; //# sourceMappingURL=pre-engineered.js.map
|
|
@@ -51,6 +51,8 @@ interface CellBankInput {
|
|
|
51
51
|
readonly duration: number;
|
|
52
52
|
/** Heat generated by one activation, in the game's thermal-load units. */
|
|
53
53
|
readonly heat: number;
|
|
54
|
+
/** Whether the fitted bank is switched on and receiving power. Must be a boolean. */
|
|
55
|
+
readonly powered: boolean;
|
|
54
56
|
}
|
|
55
57
|
/** One fitted bank as exposed in a {@link CellBankSummary}. */
|
|
56
58
|
interface CellBankMetrics {
|
|
@@ -68,14 +70,16 @@ interface CellBankMetrics {
|
|
|
68
70
|
readonly duration: number;
|
|
69
71
|
/** Heat generated by one activation, in the game's thermal-load units. */
|
|
70
72
|
readonly heat: number;
|
|
73
|
+
/** Whether the fitted bank is switched on and receiving power. */
|
|
74
|
+
readonly powered: boolean;
|
|
71
75
|
}
|
|
72
|
-
/** Every fitted shield cell bank and
|
|
76
|
+
/** Every fitted shield cell bank and the combined pool available from powered banks. */
|
|
73
77
|
interface CellBankSummary {
|
|
74
78
|
/** Fitted banks in slot order. */
|
|
75
79
|
readonly banks: readonly CellBankMetrics[];
|
|
76
|
-
/** Megajoules restorable across every bank and cell. */
|
|
80
|
+
/** Megajoules restorable across every powered bank and cell. */
|
|
77
81
|
readonly totalRestorable: number;
|
|
78
|
-
/** Cells aboard across every
|
|
82
|
+
/** Cells aboard across every powered bank. */
|
|
79
83
|
readonly totalCells: number;
|
|
80
84
|
}
|
|
81
85
|
/**
|
|
@@ -97,17 +101,19 @@ interface CellBankSummary {
|
|
|
97
101
|
*/
|
|
98
102
|
declare function shieldRecovery(input: ShieldRecoveryInput): ShieldRecovery;
|
|
99
103
|
/**
|
|
100
|
-
* Aggregate fitted shield cell banks.
|
|
104
|
+
* Aggregate fitted shield cell banks while retaining their individual power state.
|
|
101
105
|
*
|
|
102
106
|
* @param banks - Banks in the order their slots should be reported.
|
|
103
|
-
* @returns Frozen per-bank metrics and totals. An empty input returns
|
|
107
|
+
* @returns Frozen per-bank metrics and totals over powered banks. An empty input returns
|
|
108
|
+
* an empty bank list and zero totals.
|
|
109
|
+
* @throws {TypeError} If any bank's `powered` value is not a boolean.
|
|
104
110
|
* @example
|
|
105
111
|
* ```ts
|
|
106
112
|
* import { cellBankSummary } from '@elite-dangerous-almanac/core/ships/shield-recovery';
|
|
107
113
|
*
|
|
108
114
|
* cellBankSummary([{
|
|
109
115
|
* slot: 'Slot01_Size6', symbol: 'bank', reinforcementRate: 12,
|
|
110
|
-
* cells: 4, spinUp: 5, duration: 1, heat: 170,
|
|
116
|
+
* cells: 4, spinUp: 5, duration: 1, heat: 170, powered: true,
|
|
111
117
|
* }]).totalRestorable; // -> 48
|
|
112
118
|
* ```
|
|
113
119
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{cellBankSummary,shieldRecovery}from"../chunk-
|
|
1
|
+
export{cellBankSummary,shieldRecovery}from"../chunk-VZZUNSDF.js"; //# sourceMappingURL=shield-recovery.js.map
|