@rpg-engine/long-bow 0.7.95 → 0.7.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/long-bow.cjs.development.js +8 -8
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +8 -8
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CraftBook/CraftBook.tsx +3 -2
- package/src/components/CraftBook/CraftingRecipe.tsx +2 -1
- package/src/components/CraftBook/CraftingTooltip.tsx +4 -3
package/dist/long-bow.esm.js
CHANGED
|
@@ -28618,14 +28618,14 @@ var TooltipContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
28618
28618
|
var MinCraftingRequirementsText = /*#__PURE__*/styled.div.withConfig({
|
|
28619
28619
|
displayName: "CraftingTooltip__MinCraftingRequirementsText",
|
|
28620
28620
|
componentId: "sc-iqzgok-1"
|
|
28621
|
-
})(["font-size:0.55rem;margin:0;margin-bottom:12px;color:", " !important;"], function (_ref) {
|
|
28621
|
+
})(["font-size:0.55rem;margin:0;margin-bottom:12px;margin-left:0.5rem;color:", " !important;"], function (_ref) {
|
|
28622
28622
|
var levelIsOk = _ref.levelIsOk;
|
|
28623
28623
|
return levelIsOk ? uiColors.lightGreen : uiColors.lightGray;
|
|
28624
28624
|
});
|
|
28625
|
-
var
|
|
28626
|
-
displayName: "
|
|
28625
|
+
var TooltipTitle = /*#__PURE__*/styled.div.withConfig({
|
|
28626
|
+
displayName: "CraftingTooltip__TooltipTitle",
|
|
28627
28627
|
componentId: "sc-iqzgok-2"
|
|
28628
|
-
})(["color:", ";font-size:0.6rem;margin-bottom:12px;
|
|
28628
|
+
})(["color:", ";font-size:0.6rem;margin-bottom:12px;letter-spacing:0.5px;"], uiColors.yellow);
|
|
28629
28629
|
var Recipe = /*#__PURE__*/styled.div.withConfig({
|
|
28630
28630
|
displayName: "CraftingTooltip__Recipe",
|
|
28631
28631
|
componentId: "sc-iqzgok-3"
|
|
@@ -28651,9 +28651,9 @@ var CraftingTooltip = function CraftingTooltip(_ref3) {
|
|
|
28651
28651
|
return React.createElement(TooltipContainer, {
|
|
28652
28652
|
x: x,
|
|
28653
28653
|
y: y
|
|
28654
|
-
}, React.createElement(MinCraftingRequirementsText, {
|
|
28654
|
+
}, React.createElement(TooltipTitle, null, "Skill Requirements"), React.createElement(MinCraftingRequirementsText, {
|
|
28655
28655
|
levelIsOk: levelIsOk
|
|
28656
|
-
}, 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, ")"), React.createElement(
|
|
28656
|
+
}, 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, ")"), React.createElement(TooltipTitle, null, "Ingredients"), recipe.ingredients.map(function (ingredient, index) {
|
|
28657
28657
|
var itemQtyInInventory = !inventory ? 0 : countItemFromInventory(ingredient.key, inventory);
|
|
28658
28658
|
var isQuantityOk = ingredient.qty <= itemQtyInInventory;
|
|
28659
28659
|
return React.createElement(Recipe, {
|
|
@@ -28684,7 +28684,7 @@ var MainContent = /*#__PURE__*/styled.div.withConfig({
|
|
|
28684
28684
|
var ItemHeader = /*#__PURE__*/styled.div.withConfig({
|
|
28685
28685
|
displayName: "CraftingRecipe__ItemHeader",
|
|
28686
28686
|
componentId: "sc-1fe04wz-3"
|
|
28687
|
-
})(["display:flex;align-items:center;gap:8px;margin-bottom:4px;label{font-size:0.
|
|
28687
|
+
})(["display:flex;align-items:center;gap:8px;margin-bottom:4px;label{font-size:0.8rem;font-weight:bold;display:flex;align-items:center;padding-right:1rem;}"]);
|
|
28688
28688
|
var CraftingRecipe = function CraftingRecipe(_ref) {
|
|
28689
28689
|
var atlasIMG = _ref.atlasIMG,
|
|
28690
28690
|
atlasJSON = _ref.atlasJSON,
|
|
@@ -28890,7 +28890,7 @@ var CraftBook = function CraftBook(_ref) {
|
|
|
28890
28890
|
});
|
|
28891
28891
|
var filteredCraftableItems = items == null ? void 0 : items.filter(function (item) {
|
|
28892
28892
|
var matchesSearch = item.name.toLowerCase().includes(searchTerm.toLowerCase());
|
|
28893
|
-
var matchesCategory = selectedType === 'Suggested' || selectedType === 'Pinned'
|
|
28893
|
+
var matchesCategory = selectedType === 'Suggested' || (selectedType === 'Pinned' ? pinnedItems.includes(item.key) : item.subType === selectedType);
|
|
28894
28894
|
return matchesSearch && matchesCategory;
|
|
28895
28895
|
});
|
|
28896
28896
|
var sortedItems = [].concat(filteredCraftableItems || []).sort(function (a, b) {
|