@shipload/sdk 1.0.0-next.49 → 1.0.0-next.50
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/lib/shipload.js +2 -2
- package/lib/shipload.js.map +1 -1
- package/lib/shipload.m.js +2 -2
- package/lib/shipload.m.js.map +1 -1
- package/package.json +1 -1
- package/src/derivation/capabilities.ts +1 -1
- package/src/nft/description.ts +1 -1
package/lib/shipload.m.js
CHANGED
|
@@ -14681,7 +14681,7 @@ const computeTravelDrain = (totalThrust, avgThm) => {
|
|
|
14681
14681
|
const den = totalThrust * computeEngineDrain(ENGINE_DRAIN_REF_THM);
|
|
14682
14682
|
return idiv(num, den);
|
|
14683
14683
|
};
|
|
14684
|
-
const computeGeneratorCap = (com) =>
|
|
14684
|
+
const computeGeneratorCap = (com) => 1300 + idiv(com, 2);
|
|
14685
14685
|
const computeGeneratorRech = (fin) => 2 * (1 + idiv(fin * 3, 1000));
|
|
14686
14686
|
const computeGathererYield = (str) => 200 + str;
|
|
14687
14687
|
const computeGathererDrain = (con) => 2 * Math.max(250, 1250 - idiv(con * 25, 20));
|
|
@@ -14872,7 +14872,7 @@ function computeGeneratorCapabilities(stats) {
|
|
|
14872
14872
|
const res = stats.resonance;
|
|
14873
14873
|
const ref = stats.reflectivity;
|
|
14874
14874
|
return {
|
|
14875
|
-
capacity:
|
|
14875
|
+
capacity: 1300 + Math.floor(res / 2),
|
|
14876
14876
|
recharge: 2 * (1 + Math.floor((ref * 3) / 1000)),
|
|
14877
14877
|
};
|
|
14878
14878
|
}
|