@rpg-engine/long-bow 0.2.25 → 0.2.26

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.
@@ -27287,7 +27287,6 @@ var ErrorBoundary = /*#__PURE__*/function (_Component) {
27287
27287
 
27288
27288
  _proto.componentDidCatch = function componentDidCatch(error, errorInfo) {
27289
27289
  console.error('Uncaught error:', error, errorInfo);
27290
- console.log('quelquer cois');
27291
27290
  };
27292
27291
 
27293
27292
  _proto.render = function render() {
@@ -27309,7 +27308,6 @@ var ErrorBoundary = /*#__PURE__*/function (_Component) {
27309
27308
  var Ellipsis = function Ellipsis(_ref) {
27310
27309
  var children = _ref.children,
27311
27310
  maxLines = _ref.maxLines;
27312
- console.log('Ellipsis Component 2');
27313
27311
  return React__default.createElement(Container$1, null, React__default.createElement("div", {
27314
27312
  className: "ellipsis-" + maxLines + "-lines"
27315
27313
  }, children));
@@ -27852,15 +27850,16 @@ var getItemTextureKeyPath = function getItemTextureKeyPath(itemToRender, atlasJS
27852
27850
  var stackQty = (_itemToRender$stackQt = itemToRender == null ? void 0 : itemToRender.stackQty) != null ? _itemToRender$stackQt : 0;
27853
27851
  var itemTexturePath = itemToRender.texturePath;
27854
27852
 
27855
- if (itemToRender.isStackable && stackQty > 1) {
27856
- var txtExtension = itemToRender.texturePath.split('.')[1];
27857
- var txtDir = itemToRender.texturePath.split('/')[0];
27853
+ if (itemToRender && stackQty > 1) {
27858
27854
  var idx = stackQty >= 5 ? '5' : stackQty;
27859
- var newTexturePath = txtDir + "/" + itemToRender.textureKey + "-qty-" + idx + "." + txtExtension;
27855
+ var textureBreakPath = itemTexturePath.split('.');
27856
+ var txtPrefix = textureBreakPath[0];
27857
+ var txtExtension = textureBreakPath[1];
27858
+ var newTexturePath = txtPrefix + "-qty-" + idx + "." + txtExtension;
27860
27859
  var spriteData = atlasJSON.frames[newTexturePath];
27861
27860
 
27862
27861
  if (spriteData !== undefined) {
27863
- itemTexturePath = newTexturePath;
27862
+ return newTexturePath;
27864
27863
  }
27865
27864
  }
27866
27865
 
@@ -28095,22 +28094,7 @@ var ItemSlot = /*#__PURE__*/mobxReactLite.observer(function (_ref) {
28095
28094
  }
28096
28095
 
28097
28096
  return undefined;
28098
- }; // const getItemTextureKeyPath = (itemToRender: IItem) => {
28099
- // const stackQty = itemToRender?.stackQty ?? 0;
28100
- // let itemTexturePath = itemToRender.texturePath;
28101
- // if (stackQty > 1) {
28102
- // const txtExtension: string = itemToRender.texturePath.split('.')[1];
28103
- // const txtDir: string = itemToRender.texturePath.split('/')[0];
28104
- // const idx = stackQty >= 5 ? '5' : stackQty;
28105
- // const newTexturePath = `${txtDir}/${itemToRender.textureKey}-qty-${idx}.${txtExtension}`;
28106
- // const spriteData = atlasJSON.frames[newTexturePath];
28107
- // if (spriteData !== undefined) {
28108
- // itemTexturePath = newTexturePath;
28109
- // }
28110
- // }
28111
- // return itemTexturePath;
28112
- // };
28113
-
28097
+ };
28114
28098
 
28115
28099
  var renderItem = function renderItem(itemToRender) {
28116
28100
  var _itemToRender$_id, _itemToRender$stackQt;