@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.2.68",
3
+ "version": "0.2.69",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -90,8 +90,8 @@ export const CraftBook: React.FC<IItemCraftSelectorProps> = ({
90
90
  }}
91
91
  >
92
92
  <div style={{ width: '100%' }}>
93
- <Title>{'Harvesting instruments'}</Title>
94
- <Subtitle>{'Use the tool, you need it'}</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.key}
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={`${option.key}`}
137
+ spriteKey={option.texturePath}
138
138
  imgScale={1}
139
139
  />
140
140
  <StyledItem>
@@ -1,41 +1,43 @@
1
- import { ICraftableItem } from "@rpg-engine/shared"
1
+ import { ICraftableItem } from '@rpg-engine/shared';
2
2
 
3
3
  export const craftableItems: ICraftableItem[] = [
4
- {
5
-
6
- canCraft: true,
7
- key: 'axes/frost-double-axe.png',
8
- name: 'rost-double-axe',
9
- ingredients: [
10
- {key: "crafting-resources/blue-sapphire.png", qty: 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
- canCraft: true,
25
- key: 'axes/frost-double-axe.png',
26
- name: 'rost-double-axe',
27
- ingredients: [
28
- {key: "crafting-resources/blue-sapphire.png", qty: 10},
29
- ]
30
- } , {
31
-
32
- canCraft: true,
33
- key: 'axes/frost-double-axe.png',
34
- name: 'rost-double-axe',
35
- ingredients: [
36
- {key: "crafting-resources/blue-sapphire.png", qty: 10},
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
+ ];