@rpg-engine/long-bow 0.4.96 → 0.4.97
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/components/Button.d.ts +1 -1
- package/dist/components/Item/Inventory/ErrorBoundary.d.ts +1 -1
- package/dist/components/shared/Ellipsis.d.ts +1 -1
- package/dist/long-bow.cjs.development.js +3 -3
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +3 -3
- package/dist/long-bow.esm.js.map +1 -1
- package/dist/stories/ItemTradingComponent.stories.d.ts +2 -2
- package/package.json +2 -2
package/dist/long-bow.esm.js
CHANGED
|
@@ -13846,7 +13846,7 @@ var ItemInfo = function ItemInfo(_ref) {
|
|
|
13846
13846
|
var label = stat.label || stat.key[0].toUpperCase() + stat.key.slice(1);
|
|
13847
13847
|
var isItemToCompare = !!itemToCompare;
|
|
13848
13848
|
var isOnlyInOneItem = isItemToCompare && !(itemToCompare != null && itemToCompare[stat.key]);
|
|
13849
|
-
var statDiff = parseInt(itemStatistic.toString()) - parseInt((_itemToCompare$stat$k = itemToCompare == null
|
|
13849
|
+
var statDiff = parseInt(itemStatistic.toString()) - parseInt((_itemToCompare$stat$k = itemToCompare == null ? void 0 : (_itemToCompare$stat$k2 = itemToCompare[stat.key]) == null ? void 0 : _itemToCompare$stat$k2.toString()) != null ? _itemToCompare$stat$k : '0');
|
|
13850
13850
|
var isDifference = isItemToCompare && statDiff !== 0;
|
|
13851
13851
|
var isBetter = statDiff > 0 && !stat.higherIsWorse || statDiff < 0 && stat.higherIsWorse;
|
|
13852
13852
|
statistics.push(React.createElement(Statistic, {
|
|
@@ -14148,7 +14148,7 @@ var CraftingRecipe = function CraftingRecipe(_ref) {
|
|
|
14148
14148
|
name = modifiedWords.join(' ');
|
|
14149
14149
|
return name;
|
|
14150
14150
|
};
|
|
14151
|
-
var levelInSkill = (_skills$level = skills == null
|
|
14151
|
+
var levelInSkill = (_skills$level = skills == null ? void 0 : (_skills = skills[(_recipe$minCraftingRe = recipe == null ? void 0 : (_recipe$minCraftingRe2 = recipe.minCraftingRequirements) == null ? void 0 : _recipe$minCraftingRe2[0]) != null ? _recipe$minCraftingRe : '']) == null ? void 0 : _skills.level) != null ? _skills$level : 1;
|
|
14152
14152
|
return React.createElement(RadioOptionsWrapper, null, React.createElement(SpriteAtlasWrapper, null, React.createElement(ItemInfoWrapper, {
|
|
14153
14153
|
item: recipe,
|
|
14154
14154
|
atlasIMG: atlasIMG,
|
|
@@ -14178,7 +14178,7 @@ var CraftingRecipe = function CraftingRecipe(_ref) {
|
|
|
14178
14178
|
}
|
|
14179
14179
|
}, modifyString(recipe.name))), React.createElement(MinCraftingRequirementsText, {
|
|
14180
14180
|
levelIsOk: (_recipe$levelIsOk = recipe == null ? void 0 : recipe.levelIsOk) != null ? _recipe$levelIsOk : false
|
|
14181
|
-
}, modifyString("" + ((_recipe$minCraftingRe3 = recipe == null
|
|
14181
|
+
}, modifyString("" + ((_recipe$minCraftingRe3 = recipe == null ? void 0 : (_recipe$minCraftingRe4 = recipe.minCraftingRequirements) == null ? void 0 : _recipe$minCraftingRe4[0]) != null ? _recipe$minCraftingRe3 : '')), " lvl", ' ', (_recipe$minCraftingRe5 = recipe == null ? void 0 : (_recipe$minCraftingRe6 = recipe.minCraftingRequirements) == null ? void 0 : _recipe$minCraftingRe6[1]) != null ? _recipe$minCraftingRe5 : 0, " (", levelInSkill, ")"), recipe.ingredients.map(function (ingredient, index) {
|
|
14182
14182
|
var itemQtyInInventory = !inventory ? 0 : countItemFromInventory(ingredient.key, inventory);
|
|
14183
14183
|
return React.createElement(Recipe, {
|
|
14184
14184
|
key: index
|