@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.js
CHANGED
|
@@ -10228,15 +10228,15 @@ function computeEngineCapabilities(stats) {
|
|
|
10228
10228
|
const thm = stats.thermal;
|
|
10229
10229
|
return {
|
|
10230
10230
|
thrust: 400 + Math.floor((vol * 3) / 4),
|
|
10231
|
-
drain: Math.max(30, 50 - Math.floor(thm / 70)),
|
|
10231
|
+
drain: 2 * Math.max(30, 50 - Math.floor(thm / 70)),
|
|
10232
10232
|
};
|
|
10233
10233
|
}
|
|
10234
10234
|
function computeGeneratorCapabilities(stats) {
|
|
10235
10235
|
const res = stats.resonance;
|
|
10236
10236
|
const ref = stats.reflectivity;
|
|
10237
10237
|
return {
|
|
10238
|
-
capacity:
|
|
10239
|
-
recharge: 1 + Math.floor((ref * 3) / 1000),
|
|
10238
|
+
capacity: 950 + Math.floor(res / 2),
|
|
10239
|
+
recharge: 2 * (1 + Math.floor((ref * 3) / 1000)),
|
|
10240
10240
|
};
|
|
10241
10241
|
}
|
|
10242
10242
|
const GATHERER_DEPTH_TABLE = [
|
|
@@ -10265,7 +10265,7 @@ function computeGathererCapabilities(stats, tier) {
|
|
|
10265
10265
|
const tol = stats.tolerance;
|
|
10266
10266
|
return {
|
|
10267
10267
|
yield: 200 + str,
|
|
10268
|
-
drain: Math.max(250, 1250 - Math.floor((con * 25) / 20)),
|
|
10268
|
+
drain: 2 * Math.max(250, 1250 - Math.floor((con * 25) / 20)),
|
|
10269
10269
|
depth: gathererDepthForTier(tol, tier),
|
|
10270
10270
|
};
|
|
10271
10271
|
}
|
|
@@ -10606,7 +10606,7 @@ function calc_craft_duration(speed, totalInputMass) {
|
|
|
10606
10606
|
}
|
|
10607
10607
|
function calc_craft_energy(drain, totalInputMass) {
|
|
10608
10608
|
const raw = Math.floor((totalInputMass * drain) / CRAFT_ENERGY_DIVISOR);
|
|
10609
|
-
return antelope.UInt16.from(Math.min(raw, 65535));
|
|
10609
|
+
return antelope.UInt16.from(Math.min(Math.max(raw, 1), 65535));
|
|
10610
10610
|
}
|
|
10611
10611
|
|
|
10612
10612
|
class PlotManager extends BaseManager {
|
|
@@ -12527,11 +12527,11 @@ function computeBaseCapacityWarehouse(stats) {
|
|
|
12527
12527
|
return Math.floor(100000000 * 6 ** (s / 2997));
|
|
12528
12528
|
}
|
|
12529
12529
|
const computeEngineThrust = (vol) => 400 + idiv(vol * 3, 4);
|
|
12530
|
-
const computeEngineDrain = (thm) => Math.max(30, 50 - idiv(thm, 70));
|
|
12531
|
-
const computeGeneratorCap = (com) =>
|
|
12532
|
-
const computeGeneratorRech = (fin) => 1 + idiv(fin * 3, 1000);
|
|
12530
|
+
const computeEngineDrain = (thm) => 2 * Math.max(30, 50 - idiv(thm, 70));
|
|
12531
|
+
const computeGeneratorCap = (com) => 950 + idiv(com, 2);
|
|
12532
|
+
const computeGeneratorRech = (fin) => 2 * (1 + idiv(fin * 3, 1000));
|
|
12533
12533
|
const computeGathererYield = (str) => 200 + str;
|
|
12534
|
-
const computeGathererDrain = (con) => Math.max(250, 1250 - idiv(con * 25, 20));
|
|
12534
|
+
const computeGathererDrain = (con) => 2 * Math.max(250, 1250 - idiv(con * 25, 20));
|
|
12535
12535
|
const computeGathererDepth = (tol, tier) => gathererDepthForTier(tol, tier);
|
|
12536
12536
|
const computeLoaderMass = (ins) => Math.max(200, 2000 - ins * 2);
|
|
12537
12537
|
const computeLoaderThrust = (pla) => 1 + idiv(pla, 500);
|