@rpg-engine/long-bow 0.7.96 → 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 +7 -7
- 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 +7 -7
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CraftBook/CraftingRecipe.tsx +2 -1
- package/src/components/CraftBook/CraftingTooltip.tsx +4 -3
package/package.json
CHANGED
|
@@ -51,15 +51,15 @@ const MinCraftingRequirementsText = styled.div<{ levelIsOk: boolean }>`
|
|
|
51
51
|
font-size: 0.55rem;
|
|
52
52
|
margin: 0;
|
|
53
53
|
margin-bottom: 12px;
|
|
54
|
+
margin-left: 0.5rem;
|
|
54
55
|
color: ${({ levelIsOk }) =>
|
|
55
56
|
levelIsOk ? uiColors.lightGreen : uiColors.lightGray} !important;
|
|
56
57
|
`;
|
|
57
58
|
|
|
58
|
-
const
|
|
59
|
+
const TooltipTitle = styled.div`
|
|
59
60
|
color: ${uiColors.yellow};
|
|
60
61
|
font-size: 0.6rem;
|
|
61
62
|
margin-bottom: 12px;
|
|
62
|
-
text-transform: uppercase;
|
|
63
63
|
letter-spacing: 0.5px;
|
|
64
64
|
`;
|
|
65
65
|
|
|
@@ -105,12 +105,13 @@ export const CraftingTooltip: React.FC<ICraftingTooltipProps> = ({
|
|
|
105
105
|
|
|
106
106
|
return (
|
|
107
107
|
<TooltipContainer x={x} y={y}>
|
|
108
|
+
<TooltipTitle>Skill Requirements</TooltipTitle>
|
|
108
109
|
<MinCraftingRequirementsText levelIsOk={levelIsOk}>
|
|
109
110
|
{modifyString(`${recipe?.minCraftingRequirements?.[0] ?? ''}`)} lvl{' '}
|
|
110
111
|
{recipe?.minCraftingRequirements?.[1] ?? 0} ({levelInSkill})
|
|
111
112
|
</MinCraftingRequirementsText>
|
|
112
113
|
|
|
113
|
-
<
|
|
114
|
+
<TooltipTitle>Ingredients</TooltipTitle>
|
|
114
115
|
{recipe.ingredients.map((ingredient, index) => {
|
|
115
116
|
const itemQtyInInventory = !inventory
|
|
116
117
|
? 0
|