@rpg-engine/long-bow 0.2.79 → 0.2.80
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 +14196 -8416
- 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 +14196 -8416
- package/dist/long-bow.esm.js.map +1 -1
- package/dist/mocks/equipmentSet.mocks.d.ts +15 -2
- package/package.json +2 -2
- package/src/components/CraftBook/MockItems.ts +28 -28
- package/src/components/Item/Inventory/ItemSlot.tsx +19 -3
- package/src/components/shared/SpriteFromAtlas.tsx +17 -20
- package/src/mocks/atlas/items/items.json +6086 -314
- package/src/mocks/atlas/items/items.png +0 -0
- package/src/mocks/equipmentSet.mocks.ts +38 -4
|
Binary file
|
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
IEquipmentSet,
|
|
3
|
+
IItem,
|
|
3
4
|
// IItem,
|
|
4
5
|
ItemSlotType,
|
|
5
6
|
ItemSubType,
|
|
6
|
-
ItemType
|
|
7
|
+
ItemType
|
|
7
8
|
} from '@rpg-engine/shared';
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
interface IEquipmentSetItems {
|
|
11
|
+
leftHand: IItem
|
|
12
|
+
head: IItem
|
|
13
|
+
armor: IItem
|
|
14
|
+
legs: IItem
|
|
15
|
+
boot: IItem
|
|
16
|
+
neck: IItem
|
|
17
|
+
ring: IItem
|
|
18
|
+
accessory: IItem
|
|
19
|
+
inventory: IItem
|
|
20
|
+
rightHand: IItem
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const items: IEquipmentSetItems = {
|
|
10
26
|
leftHand: {
|
|
11
27
|
_id: '0',
|
|
12
28
|
type: ItemType.Weapon,
|
|
@@ -38,6 +54,8 @@ export const items: any = {
|
|
|
38
54
|
isStackable: false,
|
|
39
55
|
createdAt: '2022-06-04T03:18:09.335Z',
|
|
40
56
|
updatedAt: '2022-06-04T18:16:49.056Z',
|
|
57
|
+
isTwoHanded: false,
|
|
58
|
+
hasUseWith: false
|
|
41
59
|
},
|
|
42
60
|
head: {
|
|
43
61
|
_id: '1',
|
|
@@ -68,6 +86,8 @@ export const items: any = {
|
|
|
68
86
|
isStackable: false,
|
|
69
87
|
createdAt: '2022-06-04T03:18:09.335Z',
|
|
70
88
|
updatedAt: '2022-06-04T18:16:49.056Z',
|
|
89
|
+
isTwoHanded: false,
|
|
90
|
+
hasUseWith: false
|
|
71
91
|
},
|
|
72
92
|
armor: {
|
|
73
93
|
_id: '2',
|
|
@@ -99,6 +119,8 @@ export const items: any = {
|
|
|
99
119
|
fullDescription: 'Recover your life',
|
|
100
120
|
createdAt: '2022-06-04T03:18:09.335Z',
|
|
101
121
|
updatedAt: '2022-06-04T18:16:49.056Z',
|
|
122
|
+
isTwoHanded: false,
|
|
123
|
+
hasUseWith: false
|
|
102
124
|
},
|
|
103
125
|
legs: {
|
|
104
126
|
_id: '3',
|
|
@@ -130,6 +152,8 @@ export const items: any = {
|
|
|
130
152
|
fullDescription: 'Leather legs',
|
|
131
153
|
createdAt: '2022-06-04T03:18:09.335Z',
|
|
132
154
|
updatedAt: '2022-06-04T18:16:49.056Z',
|
|
155
|
+
isTwoHanded: false,
|
|
156
|
+
hasUseWith: false
|
|
133
157
|
},
|
|
134
158
|
boot: {
|
|
135
159
|
_id: '4',
|
|
@@ -160,6 +184,8 @@ export const items: any = {
|
|
|
160
184
|
fullDescription: 'Key to open things',
|
|
161
185
|
createdAt: '2022-06-04T03:18:09.335Z',
|
|
162
186
|
updatedAt: '2022-06-04T18:16:49.056Z',
|
|
187
|
+
isTwoHanded: false,
|
|
188
|
+
hasUseWith: false
|
|
163
189
|
},
|
|
164
190
|
neck: {
|
|
165
191
|
_id: '5',
|
|
@@ -191,6 +217,8 @@ export const items: any = {
|
|
|
191
217
|
fullDescription: 'Somes shard, some crafts.',
|
|
192
218
|
createdAt: '2022-06-04T03:18:09.335Z',
|
|
193
219
|
updatedAt: '2022-06-04T18:16:49.056Z',
|
|
220
|
+
isTwoHanded: false,
|
|
221
|
+
hasUseWith: false
|
|
194
222
|
},
|
|
195
223
|
ring: {
|
|
196
224
|
_id: '6',
|
|
@@ -222,6 +250,8 @@ export const items: any = {
|
|
|
222
250
|
fullDescription: 'Use this axe to chop wood and stuffs.',
|
|
223
251
|
createdAt: '2022-06-04T03:18:09.335Z',
|
|
224
252
|
updatedAt: '2022-06-04T18:16:49.056Z',
|
|
253
|
+
isTwoHanded: false,
|
|
254
|
+
hasUseWith: false
|
|
225
255
|
},
|
|
226
256
|
accessory: {
|
|
227
257
|
_id: '392acek4j7c8e80d2fs60404',
|
|
@@ -241,7 +271,7 @@ export const items: any = {
|
|
|
241
271
|
isItemContainer: true,
|
|
242
272
|
isSolid: false,
|
|
243
273
|
key: 'stone',
|
|
244
|
-
texturePath: 'ranged-weapons/stone-qty-
|
|
274
|
+
texturePath: 'ranged-weapons/stone-qty-5.png',
|
|
245
275
|
textureKey: 'stone',
|
|
246
276
|
name: 'stone',
|
|
247
277
|
generateContainerSlots: 10,
|
|
@@ -273,7 +303,7 @@ export const items: any = {
|
|
|
273
303
|
isSolid: false,
|
|
274
304
|
key: 'backpack',
|
|
275
305
|
texturePath: 'containers/backpack.png',
|
|
276
|
-
textureKey: 'backpack',
|
|
306
|
+
textureKey: 'containers/backpack.png',
|
|
277
307
|
name: 'backpack',
|
|
278
308
|
description: 'Open the gates, but use the key!',
|
|
279
309
|
attack: 7,
|
|
@@ -298,6 +328,8 @@ export const items: any = {
|
|
|
298
328
|
updatedAt: '2022-06-19T06:09:57.971Z',
|
|
299
329
|
isEmpty: true,
|
|
300
330
|
},
|
|
331
|
+
isTwoHanded: false,
|
|
332
|
+
hasUseWith: false
|
|
301
333
|
},
|
|
302
334
|
rightHand: {
|
|
303
335
|
_id: '629acef1c7c8e8002ff60736',
|
|
@@ -330,6 +362,8 @@ export const items: any = {
|
|
|
330
362
|
isStackable: false,
|
|
331
363
|
createdAt: '2022-06-04T03:18:09.335Z',
|
|
332
364
|
updatedAt: '2022-06-04T18:16:49.056Z',
|
|
365
|
+
isTwoHanded: false,
|
|
366
|
+
hasUseWith: false
|
|
333
367
|
},
|
|
334
368
|
};
|
|
335
369
|
|