@rpg-engine/long-bow 0.3.77 → 0.3.78
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/LICENSE +20 -20
- package/README.md +181 -181
- package/dist/components/CraftBook/CraftBook.d.ts +3 -1
- package/dist/components/Item/Cards/ItemInfo.d.ts +10 -0
- package/dist/components/Item/Cards/ItemInfoDisplay.d.ts +10 -0
- package/dist/components/Item/Cards/ItemInfoWrapper.d.ts +12 -0
- package/dist/components/Item/Cards/ItemTooltip.d.ts +7 -4
- package/dist/components/Item/Cards/MobileItemTooltip.d.ts +18 -0
- package/dist/components/Item/Inventory/ItemContainer.d.ts +2 -1
- package/dist/components/Item/Inventory/ItemSlot.d.ts +4 -1
- package/dist/components/TradingMenu/TradingItemRow.d.ts +3 -1
- package/dist/components/TradingMenu/TradingMenu.d.ts +6 -4
- package/dist/components/shared/SpriteFromAtlas.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +1404 -1009
- 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 +1406 -1013
- package/dist/long-bow.esm.js.map +1 -1
- package/dist/stories/ItemInfoDisplay.stories.d.ts +8 -0
- package/dist/stories/TradingMenu.stories.d.ts +2 -2
- package/package.json +100 -100
- package/src/components/Abstractions/SlotsContainer.tsx +45 -45
- package/src/components/Arrow/SelectArrow.tsx +69 -69
- package/src/components/Arrow/img/arrow01-left-clicked.png +0 -0
- package/src/components/Arrow/img/arrow01-left.png +0 -0
- package/src/components/Arrow/img/arrow01-right-clicked.png +0 -0
- package/src/components/Arrow/img/arrow01-right.png +0 -0
- package/src/components/Arrow/img/arrow02-left-clicked.png +0 -0
- package/src/components/Arrow/img/arrow02-left.png +0 -0
- package/src/components/Arrow/img/arrow02-right-clicked.png +0 -0
- package/src/components/Arrow/img/arrow02-right.png +0 -0
- package/src/components/Button.tsx +40 -40
- package/src/components/Character/CharacterSelection.tsx +96 -96
- package/src/components/CharacterStatus/CharacterStatus.tsx +120 -120
- package/src/components/Chat/Chat.tsx +195 -195
- package/src/components/Chatdeprecated/ChatDeprecated.tsx +198 -198
- package/src/components/CheckButton.tsx +65 -65
- package/src/components/CircularController/CircularController.tsx +248 -248
- package/src/components/CraftBook/CraftBook.tsx +240 -227
- package/src/components/CraftBook/MockItems.ts +77 -251
- package/src/components/DraggableContainer.tsx +153 -153
- package/src/components/Dropdown.tsx +90 -90
- package/src/components/DropdownSelectorContainer.tsx +42 -42
- package/src/components/Equipment/EquipmentSet.tsx +190 -190
- package/src/components/HistoryDialog.tsx +104 -104
- package/src/components/Input.tsx +15 -15
- package/src/components/Item/Cards/ItemInfo.tsx +252 -0
- package/src/components/Item/Cards/ItemInfoDisplay.tsx +128 -0
- package/src/components/Item/Cards/ItemInfoWrapper.tsx +62 -0
- package/src/components/Item/Cards/ItemTooltip.tsx +85 -33
- package/src/components/Item/Cards/MobileItemTooltip.tsx +134 -0
- package/src/components/Item/Inventory/ErrorBoundary.tsx +42 -42
- package/src/components/Item/Inventory/ItemContainer.tsx +214 -210
- package/src/components/Item/Inventory/ItemContainerTypes.ts +6 -6
- package/src/components/Item/Inventory/ItemQuantitySelector.tsx +138 -138
- package/src/components/Item/Inventory/ItemSlot.tsx +540 -501
- package/src/components/Item/Inventory/itemContainerHelper.ts +156 -156
- package/src/components/ListMenu.tsx +63 -63
- package/src/components/Multitab/Tab.tsx +66 -66
- package/src/components/Multitab/TabBody.tsx +13 -13
- package/src/components/Multitab/TabsContainer.tsx +97 -97
- package/src/components/NPCDialog/NPCDialog.tsx +121 -121
- package/src/components/NPCDialog/NPCDialogText.tsx +113 -113
- package/src/components/NPCDialog/NPCMultiDialog.tsx +159 -159
- package/src/components/NPCDialog/QuestionDialog/QuestionDialog.tsx +237 -237
- package/src/components/ProgressBar.tsx +92 -92
- package/src/components/PropertySelect/PropertySelect.tsx +106 -106
- package/src/components/QuestInfo/QuestInfo.tsx +230 -230
- package/src/components/QuestList.tsx +129 -129
- package/src/components/RPGUIContainer.tsx +47 -47
- package/src/components/RPGUIForceRenderStart.tsx +45 -45
- package/src/components/RPGUIRoot.tsx +14 -14
- package/src/components/RadioButton.tsx +53 -53
- package/src/components/RadioInput/RadioButton.tsx +96 -96
- package/src/components/RadioInput/RadioInput.tsx +102 -102
- package/src/components/RadioInput/instruments.ts +15 -15
- package/src/components/RangeSlider.tsx +78 -78
- package/src/components/RelativeListMenu.tsx +83 -83
- package/src/components/ScrollList.tsx +79 -79
- package/src/components/Shortcuts/Shortcuts.tsx +151 -151
- package/src/components/Shortcuts/ShortcutsSetter.tsx +132 -132
- package/src/components/Shortcuts/SingleShortcut.ts +62 -62
- package/src/components/SimpleProgressBar.tsx +62 -62
- package/src/components/SkillProgressBar.tsx +133 -133
- package/src/components/SkillsContainer.tsx +200 -200
- package/src/components/Spellbook/Spell.tsx +201 -201
- package/src/components/Spellbook/Spellbook.tsx +150 -150
- package/src/components/Spellbook/constants.ts +8 -8
- package/src/components/Spellbook/mockSpells.ts +60 -60
- package/src/components/StaticBook/StaticBook.tsx +103 -103
- package/src/components/TextArea.tsx +11 -11
- package/src/components/TimeWidget/DayNightPeriod/DayNightPeriod.tsx +35 -35
- package/src/components/TimeWidget/TimeWidget.tsx +63 -63
- package/src/components/TradingMenu/TradingItemRow.tsx +198 -181
- package/src/components/TradingMenu/TradingMenu.tsx +215 -203
- package/src/components/TradingMenu/items.mock.ts +48 -96
- package/src/components/Truncate.tsx +25 -25
- package/src/components/itemSelector/ItemSelector.tsx +136 -136
- package/src/components/shared/Column.tsx +16 -16
- package/src/components/shared/Ellipsis.tsx +65 -65
- package/src/components/shared/SpriteFromAtlas.tsx +104 -102
- package/src/components/typography/DynamicText.tsx +49 -49
- package/src/constants/uiColors.ts +20 -20
- package/src/constants/uiDevices.ts +3 -3
- package/src/constants/uiFonts.ts +12 -12
- package/src/hooks/useEventListener.ts +21 -21
- package/src/hooks/useOutsideAlerter.ts +25 -25
- package/src/index.tsx +40 -40
- package/src/libs/StringHelpers.ts +3 -3
- package/src/mocks/atlas/entities/entities.json +20215 -20215
- package/src/mocks/atlas/icons/icons.json +735 -735
- package/src/mocks/atlas/items/items.json +12086 -12086
- package/src/mocks/equipmentSet.mocks.ts +391 -393
- package/src/mocks/itemContainer.mocks.ts +563 -562
- package/src/mocks/skills.mocks.ts +128 -128
- package/src/stories/Arrow.stories.tsx +26 -26
- package/src/stories/Button.stories.tsx +36 -36
- package/src/stories/CharacterSelection.stories.tsx +45 -45
- package/src/stories/CharacterStatus.stories.tsx +29 -29
- package/src/stories/Chat.stories.tsx +187 -187
- package/src/stories/ChatDeprecated.stories.tsx +170 -170
- package/src/stories/CheckButton.stories.tsx +48 -48
- package/src/stories/CircullarController.stories.tsx +37 -37
- package/src/stories/CraftBook.stories.tsx +42 -40
- package/src/stories/DayNightPeriod.stories.tsx +27 -27
- package/src/stories/DraggableContainer.stories.tsx +28 -28
- package/src/stories/Dropdown.stories.tsx +46 -46
- package/src/stories/DropdownSelectorContainer.stories.tsx +41 -41
- package/src/stories/EquipmentSet.stories.tsx +65 -65
- package/src/stories/HistoryDialog.stories.tsx +61 -61
- package/src/stories/ItemContainer.stories.tsx +200 -198
- package/src/stories/ItemInfoDisplay.stories.tsx +33 -0
- package/src/stories/ItemQuantitySelector.stories.tsx +26 -26
- package/src/stories/ItemSelector.stories.tsx +77 -77
- package/src/stories/ItemTradingComponent.stories.tsx +35 -35
- package/src/stories/ListMenu.stories.tsx +56 -56
- package/src/stories/Multitab.stories.tsx +51 -51
- package/src/stories/NPCDialog.stories.tsx +130 -130
- package/src/stories/NPCMultiDialog.stories.tsx +71 -71
- package/src/stories/ProgressBar.stories.tsx +23 -23
- package/src/stories/PropertySelect.stories.tsx +40 -40
- package/src/stories/QuestInfo.stories.tsx +107 -107
- package/src/stories/QuestList.stories.tsx +82 -82
- package/src/stories/RPGUIContainers.stories.tsx +42 -42
- package/src/stories/RadioButton.stories.tsx +49 -49
- package/src/stories/RadioInput.stories.tsx +34 -34
- package/src/stories/RangeSlider.stories.tsx +64 -64
- package/src/stories/ScrollList.stories.tsx +85 -85
- package/src/stories/Shortcuts.stories.tsx +39 -39
- package/src/stories/SimpleProgressBar.stories.tsx +22 -22
- package/src/stories/SkillProgressBar.stories.tsx +34 -34
- package/src/stories/SkillsContainer.stories.tsx +35 -35
- package/src/stories/Spellbook.stories.tsx +104 -104
- package/src/stories/StaticBook.stories.tsx +32 -32
- package/src/stories/Text.stories.tsx +42 -42
- package/src/stories/TimeWidget.stories.tsx +27 -27
- package/src/stories/TradingMenu.stories.tsx +47 -45
- package/src/types/eventTypes.ts +4 -4
- package/src/types/index.d.ts +2 -2
|
@@ -1,562 +1,563 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IItem,
|
|
3
|
-
IItemContainer,
|
|
4
|
-
ItemRarities,
|
|
5
|
-
ItemSlotType,
|
|
6
|
-
ItemSubType,
|
|
7
|
-
ItemType,
|
|
8
|
-
} from '@rpg-engine/shared';
|
|
9
|
-
|
|
10
|
-
export const items: IItem[] = [
|
|
11
|
-
{
|
|
12
|
-
_id: '629acef1c7c8e8002ff60736',
|
|
13
|
-
hasUseWith: false,
|
|
14
|
-
type: ItemType.Weapon,
|
|
15
|
-
subType: ItemSubType.Sword,
|
|
16
|
-
textureAtlas: 'items',
|
|
17
|
-
allowedEquipSlotType: [ItemSlotType.LeftHand, ItemSlotType.RightHand],
|
|
18
|
-
maxStackSize: 1,
|
|
19
|
-
isUsable: false,
|
|
20
|
-
isStorable: true,
|
|
21
|
-
layer: 1,
|
|
22
|
-
isItemContainer: false,
|
|
23
|
-
isSolid: false,
|
|
24
|
-
isTwoHanded: false,
|
|
25
|
-
key: 'short-sword-66',
|
|
26
|
-
texturePath: 'swords/short-sword.png',
|
|
27
|
-
textureKey: 'short-sword',
|
|
28
|
-
name: '
|
|
29
|
-
description:
|
|
30
|
-
'You see a short sword. It is a single-handed sword with a handle that just features a grip.',
|
|
31
|
-
attack: 5,
|
|
32
|
-
defense: 0,
|
|
33
|
-
weight: 10,
|
|
34
|
-
tiledId: 66,
|
|
35
|
-
x: 320,
|
|
36
|
-
y: 144,
|
|
37
|
-
scene: 'MainScene',
|
|
38
|
-
fullDescription:
|
|
39
|
-
'You see a short sword. It is a single-handed sword with a handle that just features a grip.',
|
|
40
|
-
isEquipable: true,
|
|
41
|
-
isStackable: false,
|
|
42
|
-
createdAt: '2022-06-04T03:18:09.335Z',
|
|
43
|
-
updatedAt: '2022-06-04T18:16:49.056Z',
|
|
44
|
-
rarity: ItemRarities.Legendary,
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
_id: '629acef1c7c8e8002ff73564',
|
|
48
|
-
hasUseWith: false,
|
|
49
|
-
type: ItemType.Weapon,
|
|
50
|
-
subType: ItemSubType.Axe,
|
|
51
|
-
textureAtlas: 'items',
|
|
52
|
-
allowedEquipSlotType: [ItemSlotType.LeftHand, ItemSlotType.RightHand],
|
|
53
|
-
maxStackSize: 1,
|
|
54
|
-
isUsable: false,
|
|
55
|
-
isStorable: true,
|
|
56
|
-
isTwoHanded: false,
|
|
57
|
-
layer: 1,
|
|
58
|
-
isItemContainer: false,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
1
|
+
import {
|
|
2
|
+
IItem,
|
|
3
|
+
IItemContainer,
|
|
4
|
+
ItemRarities,
|
|
5
|
+
ItemSlotType,
|
|
6
|
+
ItemSubType,
|
|
7
|
+
ItemType,
|
|
8
|
+
} from '@rpg-engine/shared';
|
|
9
|
+
|
|
10
|
+
export const items: IItem[] = [
|
|
11
|
+
{
|
|
12
|
+
_id: '629acef1c7c8e8002ff60736',
|
|
13
|
+
hasUseWith: false,
|
|
14
|
+
type: ItemType.Weapon,
|
|
15
|
+
subType: ItemSubType.Sword,
|
|
16
|
+
textureAtlas: 'items',
|
|
17
|
+
allowedEquipSlotType: [ItemSlotType.LeftHand, ItemSlotType.RightHand],
|
|
18
|
+
maxStackSize: 1,
|
|
19
|
+
isUsable: false,
|
|
20
|
+
isStorable: true,
|
|
21
|
+
layer: 1,
|
|
22
|
+
isItemContainer: false,
|
|
23
|
+
isSolid: false,
|
|
24
|
+
isTwoHanded: false,
|
|
25
|
+
key: 'short-sword-66',
|
|
26
|
+
texturePath: 'swords/short-sword.png',
|
|
27
|
+
textureKey: 'short-sword',
|
|
28
|
+
name: "Carpenter's Axe",
|
|
29
|
+
description:
|
|
30
|
+
'You see a short sword. It is a single-handed sword with a handle that just features a grip.',
|
|
31
|
+
attack: 5,
|
|
32
|
+
defense: 0,
|
|
33
|
+
weight: 10,
|
|
34
|
+
tiledId: 66,
|
|
35
|
+
x: 320,
|
|
36
|
+
y: 144,
|
|
37
|
+
scene: 'MainScene',
|
|
38
|
+
fullDescription:
|
|
39
|
+
'You see a short sword. It is a single-handed sword with a handle that just features a grip.',
|
|
40
|
+
isEquipable: true,
|
|
41
|
+
isStackable: false,
|
|
42
|
+
createdAt: '2022-06-04T03:18:09.335Z',
|
|
43
|
+
updatedAt: '2022-06-04T18:16:49.056Z',
|
|
44
|
+
rarity: ItemRarities.Legendary,
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
_id: '629acef1c7c8e8002ff73564',
|
|
48
|
+
hasUseWith: false,
|
|
49
|
+
type: ItemType.Weapon,
|
|
50
|
+
subType: ItemSubType.Axe,
|
|
51
|
+
textureAtlas: 'items',
|
|
52
|
+
allowedEquipSlotType: [ItemSlotType.LeftHand, ItemSlotType.RightHand],
|
|
53
|
+
maxStackSize: 1,
|
|
54
|
+
isUsable: false,
|
|
55
|
+
isStorable: true,
|
|
56
|
+
isTwoHanded: false,
|
|
57
|
+
layer: 1,
|
|
58
|
+
isItemContainer: false,
|
|
59
|
+
maxRange: 10,
|
|
60
|
+
isSolid: false,
|
|
61
|
+
key: 'board-sword-20',
|
|
62
|
+
texturePath: 'ranged-weapons/bow.png',
|
|
63
|
+
textureKey: 'bow',
|
|
64
|
+
name: 'Bow',
|
|
65
|
+
description: 'You see a broad bow.',
|
|
66
|
+
attack: 7,
|
|
67
|
+
defense: 3,
|
|
68
|
+
weight: 13,
|
|
69
|
+
tiledId: 67,
|
|
70
|
+
x: 320,
|
|
71
|
+
y: 144,
|
|
72
|
+
scene: 'MainScene',
|
|
73
|
+
fullDescription: 'You see a board bow.',
|
|
74
|
+
isEquipable: true,
|
|
75
|
+
isStackable: false,
|
|
76
|
+
createdAt: '2022-06-04T03:18:09.335Z',
|
|
77
|
+
updatedAt: '2022-06-04T18:16:49.056Z',
|
|
78
|
+
rarity: ItemRarities.Epic,
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
_id: '629acef1c7c8e8002ff60723',
|
|
82
|
+
hasUseWith: false,
|
|
83
|
+
type: ItemType.Consumable,
|
|
84
|
+
subType: ItemSubType.Potion,
|
|
85
|
+
textureAtlas: 'items',
|
|
86
|
+
allowedEquipSlotType: [ItemSlotType.Inventory],
|
|
87
|
+
isEquipable: false,
|
|
88
|
+
isStackable: true,
|
|
89
|
+
maxStackSize: 99,
|
|
90
|
+
isTwoHanded: false,
|
|
91
|
+
stackQty: 3,
|
|
92
|
+
isUsable: true,
|
|
93
|
+
isStorable: true,
|
|
94
|
+
layer: 1,
|
|
95
|
+
isItemContainer: false,
|
|
96
|
+
isSolid: false,
|
|
97
|
+
key: 'board-sword-22',
|
|
98
|
+
texturePath: 'potions/greater-life-potion.png',
|
|
99
|
+
textureKey: 'greater-life-potion',
|
|
100
|
+
name: 'Greater Life Potion',
|
|
101
|
+
description: 'Recover your life',
|
|
102
|
+
attack: 7,
|
|
103
|
+
defense: 3,
|
|
104
|
+
weight: 13,
|
|
105
|
+
tiledId: 67,
|
|
106
|
+
x: 320,
|
|
107
|
+
y: 144,
|
|
108
|
+
scene: 'MainScene',
|
|
109
|
+
fullDescription: 'Recover your life',
|
|
110
|
+
createdAt: '2022-06-04T03:18:09.335Z',
|
|
111
|
+
updatedAt: '2022-06-04T18:16:49.056Z',
|
|
112
|
+
rarity: ItemRarities.Uncommon,
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
_id: '629acek4j7c8e8002ff60034',
|
|
116
|
+
hasUseWith: false,
|
|
117
|
+
type: ItemType.Consumable,
|
|
118
|
+
subType: ItemSubType.Food,
|
|
119
|
+
textureAtlas: 'items',
|
|
120
|
+
allowedEquipSlotType: [ItemSlotType.Inventory],
|
|
121
|
+
isEquipable: false,
|
|
122
|
+
isStackable: true,
|
|
123
|
+
maxStackSize: 99,
|
|
124
|
+
stackQty: 100,
|
|
125
|
+
isUsable: true,
|
|
126
|
+
isStorable: true,
|
|
127
|
+
isTwoHanded: false,
|
|
128
|
+
layer: 1,
|
|
129
|
+
isItemContainer: false,
|
|
130
|
+
isSolid: false,
|
|
131
|
+
key: 'board-sword-21',
|
|
132
|
+
texturePath: 'potions/mana-potion.png',
|
|
133
|
+
textureKey: 'mana-potion',
|
|
134
|
+
name: 'Mana Potion',
|
|
135
|
+
description: 'Recover your mana',
|
|
136
|
+
attack: 7,
|
|
137
|
+
defense: 3,
|
|
138
|
+
weight: 13,
|
|
139
|
+
tiledId: 67,
|
|
140
|
+
x: 320,
|
|
141
|
+
y: 144,
|
|
142
|
+
scene: 'MainScene',
|
|
143
|
+
fullDescription: 'Recover your mana',
|
|
144
|
+
createdAt: '2022-06-04T03:18:09.335Z',
|
|
145
|
+
updatedAt: '2022-06-04T18:16:49.056Z',
|
|
146
|
+
rarity: ItemRarities.Rare,
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
_id: '629acek4j7c8e8002fg60034',
|
|
150
|
+
hasUseWith: true,
|
|
151
|
+
type: ItemType.Consumable,
|
|
152
|
+
subType: ItemSubType.Armor,
|
|
153
|
+
textureAtlas: 'items',
|
|
154
|
+
allowedEquipSlotType: [ItemSlotType.Torso],
|
|
155
|
+
isEquipable: false,
|
|
156
|
+
isStackable: true,
|
|
157
|
+
maxStackSize: 100,
|
|
158
|
+
isTwoHanded: false,
|
|
159
|
+
|
|
160
|
+
isUsable: true,
|
|
161
|
+
isStorable: true,
|
|
162
|
+
layer: 1,
|
|
163
|
+
isItemContainer: false,
|
|
164
|
+
isSolid: false,
|
|
165
|
+
key: 'silver-key',
|
|
166
|
+
texturePath: 'others/silver-key.png',
|
|
167
|
+
textureKey: 'silver-key',
|
|
168
|
+
name: 'Key',
|
|
169
|
+
description: 'Open the gates, but use the key!',
|
|
170
|
+
attack: 7,
|
|
171
|
+
defense: 3,
|
|
172
|
+
weight: 13,
|
|
173
|
+
tiledId: 67,
|
|
174
|
+
x: 320,
|
|
175
|
+
y: 144,
|
|
176
|
+
scene: 'MainScene',
|
|
177
|
+
fullDescription: 'Key to open things',
|
|
178
|
+
createdAt: '2022-06-04T03:18:09.335Z',
|
|
179
|
+
updatedAt: '2022-06-04T18:16:49.056Z',
|
|
180
|
+
rarity: ItemRarities.Common,
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
_id: '392acek4j7c8e8002ff60403',
|
|
184
|
+
type: ItemType.CraftingResource,
|
|
185
|
+
hasUseWith: false,
|
|
186
|
+
subType: ItemSubType.Other,
|
|
187
|
+
textureAtlas: 'items',
|
|
188
|
+
allowedEquipSlotType: [ItemSlotType.Inventory],
|
|
189
|
+
isEquipable: false,
|
|
190
|
+
isStackable: true,
|
|
191
|
+
maxStackSize: 100,
|
|
192
|
+
stackQty: 32,
|
|
193
|
+
isUsable: false,
|
|
194
|
+
isStorable: true,
|
|
195
|
+
isTwoHanded: false,
|
|
196
|
+
layer: 1,
|
|
197
|
+
isItemContainer: false,
|
|
198
|
+
isSolid: false,
|
|
199
|
+
key: 'rune-22',
|
|
200
|
+
texturePath: 'magics/rune.png',
|
|
201
|
+
textureKey: 'rune',
|
|
202
|
+
name: 'Some Shard',
|
|
203
|
+
description: 'Use this to craft things!',
|
|
204
|
+
attack: 7,
|
|
205
|
+
defense: 3,
|
|
206
|
+
weight: 13,
|
|
207
|
+
tiledId: 67,
|
|
208
|
+
x: 320,
|
|
209
|
+
y: 144,
|
|
210
|
+
scene: 'MainScene',
|
|
211
|
+
fullDescription: 'Somes shard, some crafts.',
|
|
212
|
+
createdAt: '2022-06-04T03:18:09.335Z',
|
|
213
|
+
updatedAt: '2022-06-04T18:16:49.056Z',
|
|
214
|
+
rarity: ItemRarities.Common,
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
_id: '392acek4j7c8e8002ff60404',
|
|
218
|
+
hasUseWith: false,
|
|
219
|
+
type: ItemType.Container,
|
|
220
|
+
subType: ItemSubType.Other,
|
|
221
|
+
textureAtlas: 'items',
|
|
222
|
+
allowedEquipSlotType: [ItemSlotType.Inventory],
|
|
223
|
+
isEquipable: false,
|
|
224
|
+
isStackable: true,
|
|
225
|
+
maxStackSize: 100,
|
|
226
|
+
|
|
227
|
+
isUsable: false,
|
|
228
|
+
isStorable: true,
|
|
229
|
+
isTwoHanded: false,
|
|
230
|
+
layer: 1,
|
|
231
|
+
isItemContainer: true,
|
|
232
|
+
isSolid: false,
|
|
233
|
+
key: 'bag',
|
|
234
|
+
texturePath: 'containers/bag.png',
|
|
235
|
+
textureKey: 'bag',
|
|
236
|
+
name: 'Bag',
|
|
237
|
+
generateContainerSlots: 10,
|
|
238
|
+
description:
|
|
239
|
+
'You see a bag. It has made using leather and it has 10 total slots.',
|
|
240
|
+
attack: 7,
|
|
241
|
+
defense: 3,
|
|
242
|
+
weight: 13,
|
|
243
|
+
tiledId: 67,
|
|
244
|
+
x: 320,
|
|
245
|
+
y: 144,
|
|
246
|
+
scene: 'MainScene',
|
|
247
|
+
fullDescription:
|
|
248
|
+
'You see a bag. It has made using leather and it has 10 total slots.',
|
|
249
|
+
createdAt: '2022-06-04T03:18:09.335Z',
|
|
250
|
+
updatedAt: '2022-06-04T18:16:49.056Z',
|
|
251
|
+
rarity: ItemRarities.Common,
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
_id: '392acek4j7c8e80d2fs60404',
|
|
255
|
+
hasUseWith: false,
|
|
256
|
+
type: ItemType.Accessory,
|
|
257
|
+
subType: ItemSubType.Ranged,
|
|
258
|
+
textureAtlas: 'items',
|
|
259
|
+
allowedEquipSlotType: [ItemSlotType.Accessory],
|
|
260
|
+
isEquipable: true,
|
|
261
|
+
isStackable: true,
|
|
262
|
+
maxStackSize: 100,
|
|
263
|
+
stackQty: 1,
|
|
264
|
+
isUsable: false,
|
|
265
|
+
isStorable: true,
|
|
266
|
+
isTwoHanded: false,
|
|
267
|
+
layer: 1,
|
|
268
|
+
isItemContainer: true,
|
|
269
|
+
isSolid: false,
|
|
270
|
+
key: 'stone',
|
|
271
|
+
texturePath: 'ranged-weapons/stone.png',
|
|
272
|
+
textureKey: 'stone',
|
|
273
|
+
name: 'stone',
|
|
274
|
+
generateContainerSlots: 10,
|
|
275
|
+
description: 'You see a stone. It is used with slingshot.',
|
|
276
|
+
attack: 7,
|
|
277
|
+
defense: 3,
|
|
278
|
+
weight: 13,
|
|
279
|
+
tiledId: 67,
|
|
280
|
+
x: 320,
|
|
281
|
+
y: 144,
|
|
282
|
+
scene: 'MainScene',
|
|
283
|
+
fullDescription: 'You see a stone. It is used with slingshot',
|
|
284
|
+
createdAt: '2022-06-04T03:18:09.335Z',
|
|
285
|
+
updatedAt: '2022-06-04T18:16:49.056Z',
|
|
286
|
+
rarity: ItemRarities.Common,
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
_id: '392acek4j7c8e80d2fs60404',
|
|
290
|
+
hasUseWith: false,
|
|
291
|
+
type: ItemType.Accessory,
|
|
292
|
+
subType: ItemSubType.Ranged,
|
|
293
|
+
textureAtlas: 'items',
|
|
294
|
+
allowedEquipSlotType: [ItemSlotType.Accessory],
|
|
295
|
+
isEquipable: true,
|
|
296
|
+
isStackable: true,
|
|
297
|
+
maxStackSize: 100,
|
|
298
|
+
stackQty: 2,
|
|
299
|
+
isUsable: false,
|
|
300
|
+
isStorable: true,
|
|
301
|
+
isTwoHanded: false,
|
|
302
|
+
layer: 1,
|
|
303
|
+
isItemContainer: true,
|
|
304
|
+
isSolid: false,
|
|
305
|
+
key: 'stone',
|
|
306
|
+
texturePath: 'ranged-weapons/stone.png',
|
|
307
|
+
textureKey: 'stone',
|
|
308
|
+
name: 'stone',
|
|
309
|
+
generateContainerSlots: 10,
|
|
310
|
+
description: 'You see a stone. It is used with slingshot.',
|
|
311
|
+
attack: 7,
|
|
312
|
+
defense: 3,
|
|
313
|
+
weight: 13,
|
|
314
|
+
tiledId: 67,
|
|
315
|
+
x: 320,
|
|
316
|
+
y: 144,
|
|
317
|
+
scene: 'MainScene',
|
|
318
|
+
fullDescription: 'You see a stone. It is used with slingshot',
|
|
319
|
+
createdAt: '2022-06-04T03:18:09.335Z',
|
|
320
|
+
updatedAt: '2022-06-04T18:16:49.056Z',
|
|
321
|
+
rarity: ItemRarities.Common,
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
_id: '392acek4j7c8e80d2fs60404',
|
|
325
|
+
hasUseWith: false,
|
|
326
|
+
type: ItemType.Accessory,
|
|
327
|
+
subType: ItemSubType.Ranged,
|
|
328
|
+
textureAtlas: 'items',
|
|
329
|
+
allowedEquipSlotType: [ItemSlotType.Accessory],
|
|
330
|
+
isEquipable: true,
|
|
331
|
+
isStackable: true,
|
|
332
|
+
maxStackSize: 100,
|
|
333
|
+
stackQty: 3,
|
|
334
|
+
isUsable: false,
|
|
335
|
+
isStorable: true,
|
|
336
|
+
isTwoHanded: false,
|
|
337
|
+
layer: 1,
|
|
338
|
+
isItemContainer: true,
|
|
339
|
+
isSolid: false,
|
|
340
|
+
key: 'stone',
|
|
341
|
+
texturePath: 'ranged-weapons/stone.png',
|
|
342
|
+
textureKey: 'stone',
|
|
343
|
+
name: 'stone',
|
|
344
|
+
generateContainerSlots: 10,
|
|
345
|
+
description: 'You see a stone. It is used with slingshot.',
|
|
346
|
+
attack: 7,
|
|
347
|
+
defense: 3,
|
|
348
|
+
weight: 13,
|
|
349
|
+
tiledId: 67,
|
|
350
|
+
x: 320,
|
|
351
|
+
y: 144,
|
|
352
|
+
scene: 'MainScene',
|
|
353
|
+
fullDescription: 'You see a stone. It is used with slingshot',
|
|
354
|
+
createdAt: '2022-06-04T03:18:09.335Z',
|
|
355
|
+
updatedAt: '2022-06-04T18:16:49.056Z',
|
|
356
|
+
rarity: ItemRarities.Common,
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
_id: '392acek4j7c8e80d2fs60404',
|
|
360
|
+
hasUseWith: false,
|
|
361
|
+
type: ItemType.Accessory,
|
|
362
|
+
subType: ItemSubType.Ranged,
|
|
363
|
+
textureAtlas: 'items',
|
|
364
|
+
allowedEquipSlotType: [ItemSlotType.Accessory],
|
|
365
|
+
isEquipable: true,
|
|
366
|
+
isStackable: true,
|
|
367
|
+
maxStackSize: 100,
|
|
368
|
+
stackQty: 4,
|
|
369
|
+
isUsable: false,
|
|
370
|
+
isStorable: true,
|
|
371
|
+
isTwoHanded: false,
|
|
372
|
+
layer: 1,
|
|
373
|
+
isItemContainer: true,
|
|
374
|
+
isSolid: false,
|
|
375
|
+
key: 'stone',
|
|
376
|
+
texturePath: 'ranged-weapons/stone.png',
|
|
377
|
+
textureKey: 'stone',
|
|
378
|
+
name: 'stone',
|
|
379
|
+
generateContainerSlots: 10,
|
|
380
|
+
description: 'You see a stone. It is used with slingshot.',
|
|
381
|
+
attack: 7,
|
|
382
|
+
defense: 3,
|
|
383
|
+
weight: 13,
|
|
384
|
+
tiledId: 67,
|
|
385
|
+
x: 320,
|
|
386
|
+
y: 144,
|
|
387
|
+
scene: 'MainScene',
|
|
388
|
+
fullDescription: 'You see a stone. It is used with slingshot',
|
|
389
|
+
createdAt: '2022-06-04T03:18:09.335Z',
|
|
390
|
+
updatedAt: '2022-06-04T18:16:49.056Z',
|
|
391
|
+
rarity: ItemRarities.Common,
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
_id: '392acek4j7c8e80d2fs60404',
|
|
395
|
+
hasUseWith: false,
|
|
396
|
+
type: ItemType.Accessory,
|
|
397
|
+
subType: ItemSubType.Ranged,
|
|
398
|
+
textureAtlas: 'items',
|
|
399
|
+
allowedEquipSlotType: [ItemSlotType.Accessory],
|
|
400
|
+
isEquipable: true,
|
|
401
|
+
isStackable: true,
|
|
402
|
+
maxStackSize: 100,
|
|
403
|
+
stackQty: 5,
|
|
404
|
+
isUsable: false,
|
|
405
|
+
isStorable: true,
|
|
406
|
+
isTwoHanded: false,
|
|
407
|
+
layer: 1,
|
|
408
|
+
isItemContainer: true,
|
|
409
|
+
isSolid: false,
|
|
410
|
+
key: 'stone',
|
|
411
|
+
texturePath: 'ranged-weapons/stone.png',
|
|
412
|
+
textureKey: 'stone',
|
|
413
|
+
name: 'stone',
|
|
414
|
+
generateContainerSlots: 10,
|
|
415
|
+
description: 'You see a stone. It is used with slingshot.',
|
|
416
|
+
attack: 7,
|
|
417
|
+
defense: 3,
|
|
418
|
+
weight: 13,
|
|
419
|
+
tiledId: 67,
|
|
420
|
+
x: 320,
|
|
421
|
+
y: 144,
|
|
422
|
+
scene: 'MainScene',
|
|
423
|
+
fullDescription: 'You see a stone. It is used with slingshot',
|
|
424
|
+
createdAt: '2022-06-04T03:18:09.335Z',
|
|
425
|
+
updatedAt: '2022-06-04T18:16:49.056Z',
|
|
426
|
+
rarity: ItemRarities.Common,
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
_id: '392acek4j7c8e80d2fs60404',
|
|
430
|
+
hasUseWith: false,
|
|
431
|
+
type: ItemType.Other,
|
|
432
|
+
subType: ItemSubType.Other,
|
|
433
|
+
textureAtlas: 'items',
|
|
434
|
+
allowedEquipSlotType: [],
|
|
435
|
+
isEquipable: true,
|
|
436
|
+
isStackable: true,
|
|
437
|
+
maxStackSize: 100,
|
|
438
|
+
stackQty: 9999,
|
|
439
|
+
isUsable: false,
|
|
440
|
+
isStorable: true,
|
|
441
|
+
isTwoHanded: false,
|
|
442
|
+
layer: 1,
|
|
443
|
+
isItemContainer: true,
|
|
444
|
+
isSolid: false,
|
|
445
|
+
key: 'gold-coin',
|
|
446
|
+
texturePath: 'others/gold-coin.png',
|
|
447
|
+
textureKey: 'gold-coin',
|
|
448
|
+
name: 'gold-coin',
|
|
449
|
+
generateContainerSlots: 10,
|
|
450
|
+
description: 'You see a coin.',
|
|
451
|
+
attack: 7,
|
|
452
|
+
defense: 3,
|
|
453
|
+
weight: 13,
|
|
454
|
+
tiledId: 67,
|
|
455
|
+
x: 320,
|
|
456
|
+
y: 144,
|
|
457
|
+
scene: 'MainScene',
|
|
458
|
+
fullDescription: 'You see a stone. It is used with slingshot',
|
|
459
|
+
createdAt: '2022-06-04T03:18:09.335Z',
|
|
460
|
+
updatedAt: '2022-06-04T18:16:49.056Z',
|
|
461
|
+
rarity: ItemRarities.Common,
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
_id: '392acek4j7c8e80d2fs60404',
|
|
465
|
+
hasUseWith: false,
|
|
466
|
+
type: ItemType.Other,
|
|
467
|
+
subType: ItemSubType.Other,
|
|
468
|
+
textureAtlas: 'items',
|
|
469
|
+
allowedEquipSlotType: [],
|
|
470
|
+
isEquipable: true,
|
|
471
|
+
isStackable: true,
|
|
472
|
+
maxStackSize: 100,
|
|
473
|
+
stackQty: 203.23,
|
|
474
|
+
isUsable: false,
|
|
475
|
+
isStorable: true,
|
|
476
|
+
isTwoHanded: false,
|
|
477
|
+
layer: 1,
|
|
478
|
+
isItemContainer: true,
|
|
479
|
+
isSolid: false,
|
|
480
|
+
key: 'gold-coin',
|
|
481
|
+
texturePath: 'others/gold-coin.png',
|
|
482
|
+
textureKey: 'gold-coin',
|
|
483
|
+
name: 'gold-coin',
|
|
484
|
+
generateContainerSlots: 10,
|
|
485
|
+
description: 'You see a coin.',
|
|
486
|
+
attack: 7,
|
|
487
|
+
defense: 3,
|
|
488
|
+
weight: 13,
|
|
489
|
+
tiledId: 67,
|
|
490
|
+
x: 320,
|
|
491
|
+
y: 144,
|
|
492
|
+
scene: 'MainScene',
|
|
493
|
+
fullDescription: 'You see a stone. It is used with slingshot',
|
|
494
|
+
createdAt: '2022-06-04T03:18:09.335Z',
|
|
495
|
+
updatedAt: '2022-06-04T18:16:49.056Z',
|
|
496
|
+
rarity: ItemRarities.Common,
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
_id: '392acek4j7casd0d2fs60404',
|
|
500
|
+
hasUseWith: false,
|
|
501
|
+
type: ItemType.Other,
|
|
502
|
+
subType: ItemSubType.Other,
|
|
503
|
+
textureAtlas: 'items',
|
|
504
|
+
allowedEquipSlotType: [],
|
|
505
|
+
isEquipable: true,
|
|
506
|
+
isStackable: true,
|
|
507
|
+
maxStackSize: 100,
|
|
508
|
+
stackQty: 345,
|
|
509
|
+
isUsable: false,
|
|
510
|
+
isStorable: true,
|
|
511
|
+
isTwoHanded: false,
|
|
512
|
+
layer: 1,
|
|
513
|
+
isItemContainer: true,
|
|
514
|
+
isSolid: false,
|
|
515
|
+
key: 'gold-coin',
|
|
516
|
+
texturePath: 'others/gold-coin.png',
|
|
517
|
+
textureKey: 'gold-coin',
|
|
518
|
+
name: 'gold-coin',
|
|
519
|
+
generateContainerSlots: 10,
|
|
520
|
+
description: 'You see a coin.',
|
|
521
|
+
attack: 7,
|
|
522
|
+
defense: 3,
|
|
523
|
+
weight: 13,
|
|
524
|
+
tiledId: 67,
|
|
525
|
+
x: 320,
|
|
526
|
+
y: 144,
|
|
527
|
+
scene: 'MainScene',
|
|
528
|
+
fullDescription: 'You see a stone. It is used with slingshot',
|
|
529
|
+
createdAt: '2022-06-04T03:18:09.335Z',
|
|
530
|
+
updatedAt: '2022-06-04T18:16:49.056Z',
|
|
531
|
+
rarity: ItemRarities.Common,
|
|
532
|
+
},
|
|
533
|
+
];
|
|
534
|
+
|
|
535
|
+
export const itemContainerMock: IItemContainer = {
|
|
536
|
+
_id: '629ba0b6fe3f43002f58f23b',
|
|
537
|
+
name: 'Item Container',
|
|
538
|
+
owner: '629ba0b6fe3f43002f58f23b',
|
|
539
|
+
slotQty: 20,
|
|
540
|
+
slots: {
|
|
541
|
+
0: items[0],
|
|
542
|
+
1: items[1],
|
|
543
|
+
2: items[2],
|
|
544
|
+
3: items[3],
|
|
545
|
+
4: items[4],
|
|
546
|
+
5: items[5],
|
|
547
|
+
6: items[6],
|
|
548
|
+
7: items[7],
|
|
549
|
+
8: items[8],
|
|
550
|
+
9: items[9],
|
|
551
|
+
10: items[10],
|
|
552
|
+
11: items[11],
|
|
553
|
+
12: items[12],
|
|
554
|
+
13: items[13],
|
|
555
|
+
14: items[14],
|
|
556
|
+
//remaining slots are considered null by default
|
|
557
|
+
},
|
|
558
|
+
allowedItemTypes: [],
|
|
559
|
+
parentItem: '629ba0b6fe3f43002f58f239',
|
|
560
|
+
isEmpty: false,
|
|
561
|
+
createdAt: '2022-06-04T18:13:10.581Z',
|
|
562
|
+
updatedAt: '2022-06-04T18:13:10.581Z',
|
|
563
|
+
};
|