@rpg-engine/long-bow 0.2.68 → 0.2.69
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/CraftBook/MockItems.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 +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/package.json +1 -1
- package/src/components/CraftBook/CraftBook.tsx +4 -4
- package/src/components/CraftBook/MockItems.ts +39 -37
package/package.json
CHANGED
|
@@ -90,8 +90,8 @@ export const CraftBook: React.FC<IItemCraftSelectorProps> = ({
|
|
|
90
90
|
}}
|
|
91
91
|
>
|
|
92
92
|
<div style={{ width: '100%' }}>
|
|
93
|
-
<Title>{'
|
|
94
|
-
<Subtitle>{'
|
|
93
|
+
<Title>{'Craftbook'}</Title>
|
|
94
|
+
<Subtitle>{'Select an item to craft'}</Subtitle>
|
|
95
95
|
<hr className="golden" />
|
|
96
96
|
</div>
|
|
97
97
|
<Dropdown
|
|
@@ -105,7 +105,7 @@ export const CraftBook: React.FC<IItemCraftSelectorProps> = ({
|
|
|
105
105
|
<SpriteFromAtlas
|
|
106
106
|
atlasIMG={atlasIMG}
|
|
107
107
|
atlasJSON={atlasJSON}
|
|
108
|
-
spriteKey={option.
|
|
108
|
+
spriteKey={option.texturePath}
|
|
109
109
|
imgScale={3}
|
|
110
110
|
grayScale={!option.canCraft}
|
|
111
111
|
/>
|
|
@@ -134,7 +134,7 @@ export const CraftBook: React.FC<IItemCraftSelectorProps> = ({
|
|
|
134
134
|
<SpriteFromAtlas
|
|
135
135
|
atlasIMG={atlasIMG}
|
|
136
136
|
atlasJSON={atlasJSON}
|
|
137
|
-
spriteKey={
|
|
137
|
+
spriteKey={option.texturePath}
|
|
138
138
|
imgScale={1}
|
|
139
139
|
/>
|
|
140
140
|
<StyledItem>
|
|
@@ -1,41 +1,43 @@
|
|
|
1
|
-
import { ICraftableItem } from
|
|
1
|
+
import { ICraftableItem } from '@rpg-engine/shared';
|
|
2
2
|
|
|
3
3
|
export const craftableItems: ICraftableItem[] = [
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
canCraft: true,
|
|
16
|
-
key: 'axes/frost-double-axe.png',
|
|
17
|
-
name: 'rost-double-axe',
|
|
18
|
-
ingredients: [
|
|
19
|
-
{key: "crafting-resources/blue-sapphire.png", qty: 10},
|
|
20
|
-
]
|
|
4
|
+
{
|
|
5
|
+
canCraft: true,
|
|
6
|
+
key: 'frost-double-axe',
|
|
7
|
+
texturePath: 'axes/frost-double-axe.png',
|
|
8
|
+
name: 'Frost Double Axe',
|
|
9
|
+
ingredients: [
|
|
10
|
+
{
|
|
11
|
+
key: 'blue-sapphire',
|
|
12
|
+
qty: 10,
|
|
13
|
+
texturePath: 'crafting-resources/blue-sapphire.png',
|
|
21
14
|
},
|
|
15
|
+
],
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
key: 'frost-double-axe',
|
|
19
|
+
canCraft: true,
|
|
20
|
+
texturePath: 'axes/frost-double-axe.png',
|
|
21
|
+
name: 'Frost Double Axe',
|
|
22
|
+
ingredients: [
|
|
22
23
|
{
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
24
|
+
key: 'blue-sapphire',
|
|
25
|
+
texturePath: 'crafting-resources/blue-sapphire.png',
|
|
26
|
+
qty: 10,
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
key: 'frost-double-axe',
|
|
32
|
+
canCraft: false,
|
|
33
|
+
texturePath: 'axes/frost-double-axe.png',
|
|
34
|
+
name: 'Frost Double Axe',
|
|
35
|
+
ingredients: [
|
|
36
|
+
{
|
|
37
|
+
key: 'blue-sapphire',
|
|
38
|
+
texturePath: 'crafting-resources/blue-sapphire.png',
|
|
39
|
+
qty: 10,
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
];
|