@shipload/sdk 1.0.0-next.22 → 1.0.0-next.23
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.m.js
CHANGED
|
@@ -10220,15 +10220,15 @@ function computeEngineCapabilities(stats) {
|
|
|
10220
10220
|
const thm = stats.thermal;
|
|
10221
10221
|
return {
|
|
10222
10222
|
thrust: 400 + Math.floor((vol * 3) / 4),
|
|
10223
|
-
drain: Math.max(30, 50 - Math.floor(thm / 70)),
|
|
10223
|
+
drain: 2 * Math.max(30, 50 - Math.floor(thm / 70)),
|
|
10224
10224
|
};
|
|
10225
10225
|
}
|
|
10226
10226
|
function computeGeneratorCapabilities(stats) {
|
|
10227
10227
|
const res = stats.resonance;
|
|
10228
10228
|
const ref = stats.reflectivity;
|
|
10229
10229
|
return {
|
|
10230
|
-
capacity:
|
|
10231
|
-
recharge: 1 + Math.floor((ref * 3) / 1000),
|
|
10230
|
+
capacity: 950 + Math.floor(res / 2),
|
|
10231
|
+
recharge: 2 * (1 + Math.floor((ref * 3) / 1000)),
|
|
10232
10232
|
};
|
|
10233
10233
|
}
|
|
10234
10234
|
const GATHERER_DEPTH_TABLE = [
|
|
@@ -10257,7 +10257,7 @@ function computeGathererCapabilities(stats, tier) {
|
|
|
10257
10257
|
const tol = stats.tolerance;
|
|
10258
10258
|
return {
|
|
10259
10259
|
yield: 200 + str,
|
|
10260
|
-
drain: Math.max(250, 1250 - Math.floor((con * 25) / 20)),
|
|
10260
|
+
drain: 2 * Math.max(250, 1250 - Math.floor((con * 25) / 20)),
|
|
10261
10261
|
depth: gathererDepthForTier(tol, tier),
|
|
10262
10262
|
};
|
|
10263
10263
|
}
|
|
@@ -10598,7 +10598,7 @@ function calc_craft_duration(speed, totalInputMass) {
|
|
|
10598
10598
|
}
|
|
10599
10599
|
function calc_craft_energy(drain, totalInputMass) {
|
|
10600
10600
|
const raw = Math.floor((totalInputMass * drain) / CRAFT_ENERGY_DIVISOR);
|
|
10601
|
-
return UInt16.from(Math.min(raw, 65535));
|
|
10601
|
+
return UInt16.from(Math.min(Math.max(raw, 1), 65535));
|
|
10602
10602
|
}
|
|
10603
10603
|
|
|
10604
10604
|
class PlotManager extends BaseManager {
|
|
@@ -12519,11 +12519,11 @@ function computeBaseCapacityWarehouse(stats) {
|
|
|
12519
12519
|
return Math.floor(100000000 * 6 ** (s / 2997));
|
|
12520
12520
|
}
|
|
12521
12521
|
const computeEngineThrust = (vol) => 400 + idiv(vol * 3, 4);
|
|
12522
|
-
const computeEngineDrain = (thm) => Math.max(30, 50 - idiv(thm, 70));
|
|
12523
|
-
const computeGeneratorCap = (com) =>
|
|
12524
|
-
const computeGeneratorRech = (fin) => 1 + idiv(fin * 3, 1000);
|
|
12522
|
+
const computeEngineDrain = (thm) => 2 * Math.max(30, 50 - idiv(thm, 70));
|
|
12523
|
+
const computeGeneratorCap = (com) => 950 + idiv(com, 2);
|
|
12524
|
+
const computeGeneratorRech = (fin) => 2 * (1 + idiv(fin * 3, 1000));
|
|
12525
12525
|
const computeGathererYield = (str) => 200 + str;
|
|
12526
|
-
const computeGathererDrain = (con) => Math.max(250, 1250 - idiv(con * 25, 20));
|
|
12526
|
+
const computeGathererDrain = (con) => 2 * Math.max(250, 1250 - idiv(con * 25, 20));
|
|
12527
12527
|
const computeGathererDepth = (tol, tier) => gathererDepthForTier(tol, tier);
|
|
12528
12528
|
const computeLoaderMass = (ins) => Math.max(200, 2000 - ins * 2);
|
|
12529
12529
|
const computeLoaderThrust = (pla) => 1 + idiv(pla, 500);
|