@rpg-engine/long-bow 0.2.25 → 0.2.27

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.
@@ -27281,7 +27281,6 @@ var ErrorBoundary = /*#__PURE__*/function (_Component) {
27281
27281
 
27282
27282
  _proto.componentDidCatch = function componentDidCatch(error, errorInfo) {
27283
27283
  console.error('Uncaught error:', error, errorInfo);
27284
- console.log('quelquer cois');
27285
27284
  };
27286
27285
 
27287
27286
  _proto.render = function render() {
@@ -27303,7 +27302,6 @@ var ErrorBoundary = /*#__PURE__*/function (_Component) {
27303
27302
  var Ellipsis = function Ellipsis(_ref) {
27304
27303
  var children = _ref.children,
27305
27304
  maxLines = _ref.maxLines;
27306
- console.log('Ellipsis Component 2');
27307
27305
  return React.createElement(Container$1, null, React.createElement("div", {
27308
27306
  className: "ellipsis-" + maxLines + "-lines"
27309
27307
  }, children));
@@ -27848,15 +27846,17 @@ var getItemTextureKeyPath = function getItemTextureKeyPath(itemToRender, atlasJS
27848
27846
  var stackQty = (_itemToRender$stackQt = itemToRender == null ? void 0 : itemToRender.stackQty) != null ? _itemToRender$stackQt : 0;
27849
27847
  var itemTexturePath = itemToRender.texturePath;
27850
27848
 
27851
- if (itemToRender.isStackable && stackQty > 1) {
27852
- var txtExtension = itemToRender.texturePath.split('.')[1];
27853
- var txtDir = itemToRender.texturePath.split('/')[0];
27849
+ if (itemToRender && stackQty >= 1) {
27854
27850
  var idx = stackQty >= 5 ? '5' : stackQty;
27855
- var newTexturePath = txtDir + "/" + itemToRender.textureKey + "-qty-" + idx + "." + txtExtension;
27851
+ var textureBreakPath = itemTexturePath.split('.');
27852
+ var txtPrefix = textureBreakPath[0];
27853
+ var txtExtension = textureBreakPath[1];
27854
+ console.log(txtPrefix + "-qty-" + idx + "." + txtExtension);
27855
+ var newTexturePath = txtPrefix + "-qty-" + idx + "." + txtExtension;
27856
27856
  var spriteData = atlasJSON.frames[newTexturePath];
27857
27857
 
27858
27858
  if (spriteData !== undefined) {
27859
- itemTexturePath = newTexturePath;
27859
+ return newTexturePath;
27860
27860
  }
27861
27861
  }
27862
27862
 
@@ -28091,22 +28091,7 @@ var ItemSlot = /*#__PURE__*/observer(function (_ref) {
28091
28091
  }
28092
28092
 
28093
28093
  return undefined;
28094
- }; // const getItemTextureKeyPath = (itemToRender: IItem) => {
28095
- // const stackQty = itemToRender?.stackQty ?? 0;
28096
- // let itemTexturePath = itemToRender.texturePath;
28097
- // if (stackQty > 1) {
28098
- // const txtExtension: string = itemToRender.texturePath.split('.')[1];
28099
- // const txtDir: string = itemToRender.texturePath.split('/')[0];
28100
- // const idx = stackQty >= 5 ? '5' : stackQty;
28101
- // const newTexturePath = `${txtDir}/${itemToRender.textureKey}-qty-${idx}.${txtExtension}`;
28102
- // const spriteData = atlasJSON.frames[newTexturePath];
28103
- // if (spriteData !== undefined) {
28104
- // itemTexturePath = newTexturePath;
28105
- // }
28106
- // }
28107
- // return itemTexturePath;
28108
- // };
28109
-
28094
+ };
28110
28095
 
28111
28096
  var renderItem = function renderItem(itemToRender) {
28112
28097
  var _itemToRender$_id, _itemToRender$stackQt;