@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.js
CHANGED
|
@@ -14689,7 +14689,7 @@ const computeTravelDrain = (totalThrust, avgThm) => {
|
|
|
14689
14689
|
const den = totalThrust * computeEngineDrain(ENGINE_DRAIN_REF_THM);
|
|
14690
14690
|
return idiv(num, den);
|
|
14691
14691
|
};
|
|
14692
|
-
const computeGeneratorCap = (com) =>
|
|
14692
|
+
const computeGeneratorCap = (com) => 1300 + idiv(com, 2);
|
|
14693
14693
|
const computeGeneratorRech = (fin) => 2 * (1 + idiv(fin * 3, 1000));
|
|
14694
14694
|
const computeGathererYield = (str) => 200 + str;
|
|
14695
14695
|
const computeGathererDrain = (con) => 2 * Math.max(250, 1250 - idiv(con * 25, 20));
|
|
@@ -14880,7 +14880,7 @@ function computeGeneratorCapabilities(stats) {
|
|
|
14880
14880
|
const res = stats.resonance;
|
|
14881
14881
|
const ref = stats.reflectivity;
|
|
14882
14882
|
return {
|
|
14883
|
-
capacity:
|
|
14883
|
+
capacity: 1300 + Math.floor(res / 2),
|
|
14884
14884
|
recharge: 2 * (1 + Math.floor((ref * 3) / 1000)),
|
|
14885
14885
|
};
|
|
14886
14886
|
}
|