@screeps/renderer 1.6.9 → 1.7.0

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/dist/renderer.js CHANGED
@@ -19311,6 +19311,7 @@ Object.assign(exports, {
19311
19311
  ERR_NOT_ENOUGH_EXTENSIONS: -6,
19312
19312
  ERR_RCL_NOT_ENOUGH: -14,
19313
19313
  ERR_GCL_NOT_ENOUGH: -15,
19314
+ ERR_ACCESS_DENIED: -16,
19314
19315
 
19315
19316
  FIND_EXIT_TOP: 1,
19316
19317
  FIND_EXIT_RIGHT: 3,
@@ -19482,6 +19483,7 @@ Object.assign(exports, {
19482
19483
  STRUCTURE_NUKER: "nuker",
19483
19484
  STRUCTURE_FACTORY: "factory",
19484
19485
  STRUCTURE_INVADER_CORE: "invaderCore",
19486
+ STRUCTURE_TERMINAL_NODE: "terminalNode",
19485
19487
 
19486
19488
  CONSTRUCTION_COST: {
19487
19489
  "spawn": 15000,
@@ -19630,6 +19632,9 @@ Object.assign(exports, {
19630
19632
  TERMINAL_MIN_SEND: 100,
19631
19633
  TERMINAL_COOLDOWN: 10,
19632
19634
 
19635
+ TERMINAL_NODE_HITS: 2000000,
19636
+ TERMINAL_NODE_REPAIR_PER_TICK: 400,
19637
+
19633
19638
  CONTAINER_HITS: 250000,
19634
19639
  CONTAINER_CAPACITY: 2000,
19635
19640
  CONTAINER_DECAY: 5000,
@@ -24891,6 +24896,7 @@ __webpack_require__.d(expressions_namespaceObject, {
24891
24896
  random: () => (random),
24892
24897
  rel: () => (rel),
24893
24898
  state: () => (state),
24899
+ stateExtra: () => (stateExtra),
24894
24900
  sub: () => (sub)
24895
24901
  });
24896
24902
 
@@ -52355,6 +52361,18 @@ function min_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.leng
52355
52361
  }
52356
52362
  return typeof result === 'number' ? koef * result : result;
52357
52363
  });
52364
+ ;// ./src/lib/expressions/stateExtra.js
52365
+
52366
+ /* harmony default export */ const stateExtra = (function (fieldName, _ref, stateParams) {
52367
+ var defaultValue = _ref["default"],
52368
+ _ref$koef = _ref.koef,
52369
+ koef = _ref$koef === void 0 ? 1 : _ref$koef;
52370
+ var result = resolveProp(stateParams.stateExtra, fieldName);
52371
+ if (result === undefined) {
52372
+ result = defaultValue;
52373
+ }
52374
+ return typeof result === 'number' ? koef * result : result;
52375
+ });
52358
52376
  ;// ./src/lib/expressions/sub.js
52359
52377
  function _toArray(r) { return sub_arrayWithHoles(r) || sub_iterableToArray(r) || sub_unsupportedIterableToArray(r) || sub_nonIterableRest(); }
52360
52378
  function sub_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -52414,6 +52432,7 @@ function idx_arrayWithHoles(r) { if (Array.isArray(r)) return r; }
52414
52432
 
52415
52433
 
52416
52434
 
52435
+
52417
52436
 
52418
52437
 
52419
52438
  ;// ./src/lib/utils/actionHelper.js
@@ -55359,7 +55378,6 @@ function creepDecoration_toPrimitive(t, r) { if ("object" != creepDecoration_typ
55359
55378
  x: 0.5,
55360
55379
  y: 0.5
55361
55380
  },
55362
- parentLayer: layers.objects,
55363
55381
  zIndex: 1
55364
55382
  });
55365
55383
  if (i[graphic.alpha] !== undefined) {