@rpg-engine/long-bow 0.1.794 → 0.2.2

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.
Files changed (129) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +181 -181
  3. package/dist/components/Button.d.ts +1 -0
  4. package/dist/components/Equipment/EquipmentSet.d.ts +5 -3
  5. package/dist/components/Item/Cards/ItemTooltip.d.ts +6 -0
  6. package/dist/components/Item/Inventory/ItemContainer.d.ts +4 -6
  7. package/dist/components/Item/Inventory/ItemContainerTypes.d.ts +6 -0
  8. package/dist/components/Item/Inventory/ItemSlot.d.ts +5 -9
  9. package/dist/components/Item/Inventory/itemContainerHelper.d.ts +2 -7
  10. package/dist/components/PropertySelect/PropertySelect.d.ts +12 -0
  11. package/dist/components/QuestInfo/QuestInfo.d.ts +14 -0
  12. package/dist/components/RelativeListMenu.d.ts +13 -0
  13. package/dist/index.d.ts +1 -1
  14. package/dist/long-bow.cjs.development.js +748 -1194
  15. package/dist/long-bow.cjs.development.js.map +1 -1
  16. package/dist/long-bow.cjs.production.min.js +1 -1
  17. package/dist/long-bow.cjs.production.min.js.map +1 -1
  18. package/dist/long-bow.esm.js +748 -1196
  19. package/dist/long-bow.esm.js.map +1 -1
  20. package/dist/mocks/equipmentSet.mocks.d.ts +2 -2
  21. package/dist/stories/Button.stories.d.ts +5 -0
  22. package/dist/stories/Chat.stories.d.ts +5 -0
  23. package/dist/stories/CheckButton.stories.d.ts +5 -0
  24. package/dist/stories/DraggableContainer.stories.d.ts +5 -0
  25. package/dist/stories/Dropdown.stories.d.ts +5 -0
  26. package/dist/stories/EquipmentSet.stories.d.ts +5 -0
  27. package/dist/stories/ItemContainer.stories.d.ts +5 -0
  28. package/dist/stories/ListMenu.stories.d.ts +5 -0
  29. package/dist/stories/Multitab.stories.d.ts +6 -0
  30. package/dist/stories/NPCDialog.stories.d.ts +7 -0
  31. package/dist/stories/ProgressBar.stories.d.ts +8 -0
  32. package/dist/stories/PropertySelect.stories.d.ts +5 -0
  33. package/dist/stories/QuestInfo.stories.d.ts +5 -0
  34. package/dist/stories/RPGUIContainers.stories.d.ts +5 -0
  35. package/dist/stories/RadioButton.stories.d.ts +5 -0
  36. package/dist/stories/RangeSlider.stories.d.ts +5 -0
  37. package/dist/stories/ScrollList.stories.d.ts +5 -0
  38. package/dist/stories/SimpleProgressBar.stories.d.ts +5 -0
  39. package/dist/stories/SkillProgressBar.stories.d.ts +5 -0
  40. package/dist/stories/SkillsContainer.stories.d.ts +5 -0
  41. package/dist/stories/Text.stories.d.ts +7 -0
  42. package/package.json +98 -96
  43. package/src/components/Abstractions/SlotsContainer.tsx +42 -42
  44. package/src/components/Button.tsx +30 -29
  45. package/src/components/Chat/Chat.tsx +193 -193
  46. package/src/components/CheckButton.tsx +65 -65
  47. package/src/components/DraggableContainer.tsx +150 -150
  48. package/src/components/Dropdown.tsx +57 -57
  49. package/src/components/Equipment/EquipmentSet.tsx +138 -180
  50. package/src/components/Input.tsx +11 -11
  51. package/src/components/Item/Cards/ItemTooltip.tsx +32 -0
  52. package/src/components/Item/Inventory/ItemContainer.tsx +68 -113
  53. package/src/components/Item/Inventory/ItemContainerTypes.ts +6 -0
  54. package/src/components/Item/Inventory/ItemSlot.tsx +212 -158
  55. package/src/components/Item/Inventory/itemContainerHelper.ts +146 -81
  56. package/src/components/ListMenu.tsx +65 -65
  57. package/src/components/Multitab/Tab.tsx +57 -57
  58. package/src/components/Multitab/TabBody.tsx +13 -13
  59. package/src/components/Multitab/TabsContainer.tsx +97 -97
  60. package/src/components/NPCDialog/NPCDialog.tsx +145 -145
  61. package/src/components/NPCDialog/NPCDialogText.tsx +53 -53
  62. package/src/components/NPCDialog/QuestionDialog/QuestionDialog.tsx +237 -242
  63. package/src/components/ProgressBar.tsx +91 -91
  64. package/src/components/PropertySelect/PropertySelect.tsx +101 -0
  65. package/src/components/PropertySelect/img/ui-arrows/arrow01-left-clicked.png +0 -0
  66. package/src/components/PropertySelect/img/ui-arrows/arrow01-left.png +0 -0
  67. package/src/components/PropertySelect/img/ui-arrows/arrow01-right-clicked.png +0 -0
  68. package/src/components/PropertySelect/img/ui-arrows/arrow01-right.png +0 -0
  69. package/src/components/PropertySelect/img/ui-arrows/arrow02-left-clicked.png +0 -0
  70. package/src/components/PropertySelect/img/ui-arrows/arrow02-left.png +0 -0
  71. package/src/components/PropertySelect/img/ui-arrows/arrow02-right-clicked.png +0 -0
  72. package/src/components/PropertySelect/img/ui-arrows/arrow02-right.png +0 -0
  73. package/src/components/QuestInfo/QuestInfo.tsx +143 -0
  74. package/src/components/QuestInfo/img/default.png +0 -0
  75. package/src/components/RPGUIContainer.tsx +47 -47
  76. package/src/components/RPGUIRoot.tsx +14 -14
  77. package/src/components/RadioButton.tsx +53 -53
  78. package/src/components/RangeSlider.tsx +68 -68
  79. package/src/components/RelativeListMenu.tsx +83 -0
  80. package/src/components/ScrollList.tsx +77 -77
  81. package/src/components/SimpleProgressBar.tsx +62 -62
  82. package/src/components/SkillProgressBar.tsx +123 -124
  83. package/src/components/SkillsContainer.tsx +196 -235
  84. package/src/components/TextArea.tsx +11 -11
  85. package/src/components/Truncate.tsx +25 -25
  86. package/src/components/shared/Column.tsx +16 -16
  87. package/src/components/shared/SpriteFromAtlas.tsx +99 -99
  88. package/src/components/typography/DynamicText.tsx +49 -49
  89. package/src/constants/uiColors.ts +10 -10
  90. package/src/hooks/useEventListener.ts +21 -21
  91. package/src/hooks/useOutsideAlerter.ts +25 -25
  92. package/src/index.tsx +25 -25
  93. package/src/libs/StringHelpers.ts +3 -3
  94. package/src/mocks/atlas/icons/icons.json +735 -303
  95. package/src/mocks/atlas/icons/icons.png +0 -0
  96. package/src/mocks/atlas/items/items.json +5215 -5195
  97. package/src/mocks/atlas/items/items.png +0 -0
  98. package/src/mocks/equipmentSet.mocks.ts +347 -347
  99. package/src/mocks/itemContainer.mocks.ts +281 -249
  100. package/src/mocks/skills.mocks.ts +122 -122
  101. package/src/stories/Button.stories.tsx +36 -0
  102. package/src/stories/Chat.stories.tsx +170 -0
  103. package/src/stories/CheckButton.stories.tsx +48 -0
  104. package/src/stories/DraggableContainer.stories.tsx +28 -0
  105. package/src/stories/Dropdown.stories.tsx +46 -0
  106. package/src/stories/EquipmentSet.stories.tsx +51 -0
  107. package/src/stories/ItemContainer.stories.tsx +51 -0
  108. package/src/stories/ListMenu.stories.tsx +56 -0
  109. package/src/stories/Multitab.stories.tsx +51 -0
  110. package/src/stories/NPCDialog.stories.tsx +130 -0
  111. package/src/stories/ProgressBar.stories.tsx +23 -0
  112. package/src/stories/PropertySelect.stories.tsx +41 -0
  113. package/src/stories/QuestInfo.stories.tsx +76 -0
  114. package/src/stories/RPGUIContainers.stories.tsx +42 -0
  115. package/src/stories/RadioButton.stories.tsx +49 -0
  116. package/src/stories/RangeSlider.stories.tsx +60 -0
  117. package/src/stories/ScrollList.stories.tsx +85 -0
  118. package/src/stories/SimpleProgressBar.stories.tsx +22 -0
  119. package/src/stories/SkillProgressBar.stories.tsx +30 -0
  120. package/src/stories/SkillsContainer.stories.tsx +31 -0
  121. package/src/stories/Text.stories.tsx +42 -0
  122. package/src/types/eventTypes.ts +4 -4
  123. package/src/types/index.d.ts +2 -2
  124. package/dist/components/Item/Cards/ItemCard.d.ts +0 -9
  125. package/dist/components/shared/SpriteIcon.d.ts +0 -9
  126. package/dist/components/store/UI.store.d.ts +0 -38
  127. package/src/components/Item/Cards/ItemCard.tsx +0 -36
  128. package/src/components/shared/SpriteIcon.tsx +0 -67
  129. package/src/components/store/UI.store.ts +0 -232
@@ -1,347 +1,347 @@
1
- import {
2
- IEquipementSet,
3
- // IItem,
4
- ItemSlotType,
5
- ItemSubType,
6
- ItemType,
7
- } from '@rpg-engine/shared';
8
-
9
- export const items: any = {
10
- leftHand: {
11
- _id: '0',
12
- type: ItemType.Weapon,
13
- subType: ItemSubType.Sword,
14
- textureAtlas: 'items',
15
- allowedEquipSlotType: [ItemSlotType.LeftHand, ItemSlotType.RightHand],
16
- maxStackSize: 1,
17
- isUsable: false,
18
- isStorable: true,
19
- layer: 1,
20
- isItemContainer: false,
21
- isSolid: false,
22
- key: 'basilisk-sword',
23
- texturePath: 'swords/basilisk-sword.png',
24
- textureKey: 'basilisk-sword',
25
- name: 'basilisk sword',
26
- description:
27
- 'You see a short sword. It is a single-handed sword with a handle that just features a grip.',
28
- attack: 5,
29
- defense: 0,
30
- weight: 10,
31
- tiledId: 66,
32
- x: 320,
33
- y: 144,
34
- scene: 'MainScene',
35
- fullDescription:
36
- 'You see a short sword. It is a single-handed sword with a handle that just features a grip.',
37
- isEquipable: true,
38
- isStackable: false,
39
- createdAt: '2022-06-04T03:18:09.335Z',
40
- updatedAt: '2022-06-04T18:16:49.056Z',
41
- },
42
- head: {
43
- _id: '1',
44
- type: ItemType.Armor,
45
- subType: ItemSubType.Helmet,
46
- textureAtlas: 'items',
47
- allowedEquipSlotType: [ItemSlotType.Head],
48
- maxStackSize: 1,
49
- isUsable: false,
50
- isStorable: true,
51
- layer: 1,
52
- isItemContainer: false,
53
- isSolid: false,
54
- key: 'iron-helmet',
55
- texturePath: 'helmets/iron-helmet.png',
56
- textureKey: 'iron-helmet',
57
- name: 'Helmet',
58
- description: 'You see a broad bow.',
59
- attack: 7,
60
- defense: 3,
61
- weight: 13,
62
- tiledId: 67,
63
- x: 320,
64
- y: 144,
65
- scene: 'MainScene',
66
- fullDescription: 'You see a board bow.',
67
- isEquipable: true,
68
- isStackable: false,
69
- createdAt: '2022-06-04T03:18:09.335Z',
70
- updatedAt: '2022-06-04T18:16:49.056Z',
71
- },
72
- armor: {
73
- _id: '2',
74
- type: ItemType.Armor,
75
- subType: ItemSubType.Armor,
76
- textureAtlas: 'items',
77
- allowedEquipSlotType: [ItemSlotType.Torso],
78
- isEquipable: false,
79
- isStackable: false,
80
- maxStackSize: 99,
81
- stackQty: 3,
82
- isUsable: true,
83
- isStorable: true,
84
- layer: 1,
85
- isItemContainer: false,
86
- isSolid: false,
87
- key: 'board-sword-22',
88
- texturePath: 'armors/golden-armor.png',
89
- textureKey: 'golden-armor',
90
- name: 'golden armor',
91
- description: 'Recover your life',
92
- attack: 7,
93
- defense: 3,
94
- weight: 13,
95
- tiledId: 67,
96
- x: 320,
97
- y: 144,
98
- scene: 'MainScene',
99
- fullDescription: 'Recover your life',
100
- createdAt: '2022-06-04T03:18:09.335Z',
101
- updatedAt: '2022-06-04T18:16:49.056Z',
102
- },
103
- legs: {
104
- _id: '3',
105
- type: ItemType.Armor,
106
- subType: ItemSubType.Legs,
107
- textureAtlas: 'items',
108
- allowedEquipSlotType: [ItemSlotType.Legs],
109
- isEquipable: false,
110
- isStackable: false,
111
- maxStackSize: 99,
112
- stackQty: 13,
113
- isUsable: true,
114
- isStorable: true,
115
- layer: 1,
116
- isItemContainer: false,
117
- isSolid: false,
118
- key: 'leather-legs',
119
- texturePath: 'legs/leather-legs.png',
120
- textureKey: 'leather-legs',
121
- name: 'Leather legs',
122
- description: 'Protect your legs',
123
- attack: 7,
124
- defense: 3,
125
- weight: 13,
126
- tiledId: 67,
127
- x: 320,
128
- y: 144,
129
- scene: 'MainScene',
130
- fullDescription: 'Leather legs',
131
- createdAt: '2022-06-04T03:18:09.335Z',
132
- updatedAt: '2022-06-04T18:16:49.056Z',
133
- },
134
- boot: {
135
- _id: '4',
136
- type: ItemType.Armor,
137
- subType: ItemSubType.Boot,
138
- textureAtlas: 'items',
139
- allowedEquipSlotType: [ItemSlotType.Feet],
140
- isEquipable: false,
141
- isStackable: false,
142
- maxStackSize: 999,
143
- stackQty: 171,
144
- isUsable: true,
145
- isStorable: true,
146
- layer: 1,
147
- isItemContainer: false,
148
- isSolid: false,
149
- key: 'board-sword-22',
150
- texturePath: 'boots/golden-boots.png',
151
- textureKey: 'golden-boots',
152
- name: 'golden-boots',
153
- description: 'Open the gates, but use the key!',
154
- attack: 7,
155
- defense: 3,
156
- weight: 13,
157
- tiledId: 67,
158
- x: 320,
159
- y: 144,
160
- scene: 'MainScene',
161
- fullDescription: 'Key to open things',
162
- createdAt: '2022-06-04T03:18:09.335Z',
163
- updatedAt: '2022-06-04T18:16:49.056Z',
164
- },
165
- neck: {
166
- _id: '5',
167
- type: ItemType.Armor,
168
- subType: ItemSubType.Accessory,
169
- textureAtlas: 'items',
170
- allowedEquipSlotType: [ItemSlotType.Neck],
171
- isEquipable: false,
172
- isStackable: false,
173
- maxStackSize: 999,
174
- stackQty: 32,
175
- isUsable: false,
176
- isStorable: true,
177
- layer: 1,
178
- isItemContainer: false,
179
- isSolid: false,
180
- key: 'sapphire-necklace',
181
- texturePath: 'accessories/sapphire-necklace.png',
182
- textureKey: 'sapphire-necklace',
183
- name: 'sapphire-necklace',
184
- description: 'Use this to craft things!',
185
- attack: 7,
186
- defense: 3,
187
- weight: 13,
188
- tiledId: 67,
189
- x: 320,
190
- y: 144,
191
- scene: 'MainScene',
192
- fullDescription: 'Somes shard, some crafts.',
193
- createdAt: '2022-06-04T03:18:09.335Z',
194
- updatedAt: '2022-06-04T18:16:49.056Z',
195
- },
196
- ring: {
197
- _id: '6',
198
- type: ItemType.Accessory,
199
- subType: ItemSubType.Armor,
200
- textureAtlas: 'items',
201
- allowedEquipSlotType: [ItemSlotType.Ring],
202
- isEquipable: false,
203
- isStackable: false,
204
- maxStackSize: 999,
205
- stackQty: 32,
206
- isUsable: false,
207
- isStorable: true,
208
- layer: 1,
209
- isItemContainer: false,
210
- isSolid: false,
211
- key: 'jade-ring',
212
- texturePath: '"rings/jade-ring.png',
213
- textureKey: 'jade-ring',
214
- name: 'jade-ring',
215
- description: 'Chop chop.',
216
- attack: 7,
217
- defense: 3,
218
- weight: 13,
219
- tiledId: 67,
220
- x: 320,
221
- y: 144,
222
- scene: 'MainScene',
223
- fullDescription: 'Use this axe to chop wood and stuffs.',
224
- createdAt: '2022-06-04T03:18:09.335Z',
225
- updatedAt: '2022-06-04T18:16:49.056Z',
226
- },
227
- accessory: {
228
- _id: '7',
229
- type: ItemType.Accessory,
230
- subType: ItemSubType.Accessory,
231
- textureAtlas: 'items',
232
- allowedEquipSlotType: [ItemSlotType.Accessory],
233
- isEquipable: false,
234
- isStackable: false,
235
- maxStackSize: 999,
236
- stackQty: 32,
237
- isUsable: false,
238
- isStorable: true,
239
- layer: 1,
240
- isItemContainer: false,
241
- isSolid: false,
242
- key: 'wolf-tooth-chain',
243
- texturePath: 'accessories/wolf-tooth-chain.png',
244
- textureKey: 'wolf-tooth-chain',
245
- name: 'wolf-tooth-chain',
246
- description: 'Chop chop.',
247
- attack: 7,
248
- defense: 3,
249
- weight: 13,
250
- tiledId: 67,
251
- x: 320,
252
- y: 144,
253
- scene: 'MainScene',
254
- fullDescription: 'Use this axe to chop wood and stuffs.',
255
- createdAt: '2022-06-04T03:18:09.335Z',
256
- updatedAt: '2022-06-04T18:16:49.056Z',
257
- },
258
- inventory: {
259
- _id: '8',
260
- type: ItemType.Container,
261
- subType: ItemSubType.Other,
262
- textureAtlas: 'items',
263
- allowedEquipSlotType: [ItemSlotType.Inventory],
264
- isEquipable: false,
265
- isStackable: false,
266
- maxStackSize: 999,
267
- stackQty: 171,
268
- isUsable: true,
269
- isStorable: true,
270
- layer: 1,
271
- isItemContainer: true,
272
- isSolid: false,
273
- key: 'backpack',
274
- texturePath: 'containers/backpack.png',
275
- textureKey: 'backpack',
276
- name: 'backpack',
277
- description: 'Open the gates, but use the key!',
278
- attack: 7,
279
- defense: 3,
280
- weight: 13,
281
- tiledId: 67,
282
- x: 320,
283
- y: 144,
284
- scene: 'MainScene',
285
- fullDescription: 'Key to open things',
286
- createdAt: '2022-06-04T03:18:09.335Z',
287
- updatedAt: '2022-06-04T18:16:49.056Z',
288
- generateContainerSlots: 10,
289
- itemContainer: {
290
- _id: '62aebdb5785a9f0089a4f8cf',
291
- slotQty: 10,
292
- allowedItemTypes: [],
293
- parentItem: '8',
294
- slots: {},
295
- owner: '62aebdb2785a9f0089a4f869',
296
- createdAt: '2022-06-19T06:09:57.971Z',
297
- updatedAt: '2022-06-19T06:09:57.971Z',
298
- isEmpty: true,
299
- },
300
- },
301
- rightHand: {
302
- _id: '629acef1c7c8e8002ff60736',
303
- type: ItemType.Armor,
304
- subType: ItemSubType.Shield,
305
- textureAtlas: 'items',
306
- allowedEquipSlotType: [ItemSlotType.LeftHand, ItemSlotType.RightHand],
307
- maxStackSize: 1,
308
- isUsable: false,
309
- isStorable: true,
310
- layer: 1,
311
- isItemContainer: false,
312
- isSolid: false,
313
- key: 'plate-shield',
314
- texturePath: 'shields/plate-shield.png',
315
- textureKey: 'plate-shield',
316
- name: 'Plate Shield',
317
- description:
318
- 'You see a short sword. It is a single-handed sword with a handle that just features a grip.',
319
- attack: 5,
320
- defense: 0,
321
- weight: 10,
322
- tiledId: 66,
323
- x: 320,
324
- y: 144,
325
- scene: 'MainScene',
326
- fullDescription:
327
- 'You see a short sword. It is a single-handed sword with a handle that just features a grip.',
328
- isEquipable: true,
329
- isStackable: false,
330
- createdAt: '2022-06-04T03:18:09.335Z',
331
- updatedAt: '2022-06-04T18:16:49.056Z',
332
- },
333
- };
334
-
335
- export const equipmentSetMock: IEquipementSet = {
336
- _id: '629acef1c7c8e8002ff60736',
337
- head: undefined,
338
- armor: items.armor,
339
- legs: undefined,
340
- boot: items.boot,
341
- leftHand: items.leftHand,
342
- rightHand: undefined,
343
- neck: undefined,
344
- ring: undefined,
345
- accessory: undefined,
346
- inventory: items.inventory,
347
- };
1
+ import {
2
+ IEquipmentSet,
3
+ // IItem,
4
+ ItemSlotType,
5
+ ItemSubType,
6
+ ItemType,
7
+ } from '@rpg-engine/shared';
8
+
9
+ export const items: any = {
10
+ leftHand: {
11
+ _id: '0',
12
+ type: ItemType.Weapon,
13
+ subType: ItemSubType.Sword,
14
+ textureAtlas: 'items',
15
+ allowedEquipSlotType: [ItemSlotType.LeftHand, ItemSlotType.RightHand],
16
+ maxStackSize: 1,
17
+ isUsable: false,
18
+ isStorable: true,
19
+ layer: 1,
20
+ isItemContainer: false,
21
+ isSolid: false,
22
+ key: 'basilisk-sword',
23
+ texturePath: 'swords/basilisk-sword.png',
24
+ textureKey: 'basilisk-sword',
25
+ name: 'basilisk sword',
26
+ description:
27
+ 'You see a short sword. It is a single-handed sword with a handle that just features a grip.',
28
+ attack: 5,
29
+ defense: 0,
30
+ weight: 10,
31
+ tiledId: 66,
32
+ x: 320,
33
+ y: 144,
34
+ scene: 'MainScene',
35
+ fullDescription:
36
+ 'You see a short sword. It is a single-handed sword with a handle that just features a grip.',
37
+ isEquipable: true,
38
+ isStackable: false,
39
+ createdAt: '2022-06-04T03:18:09.335Z',
40
+ updatedAt: '2022-06-04T18:16:49.056Z',
41
+ },
42
+ head: {
43
+ _id: '1',
44
+ type: ItemType.Armor,
45
+ subType: ItemSubType.Helmet,
46
+ textureAtlas: 'items',
47
+ allowedEquipSlotType: [ItemSlotType.Head],
48
+ maxStackSize: 1,
49
+ isUsable: false,
50
+ isStorable: true,
51
+ layer: 1,
52
+ isItemContainer: false,
53
+ isSolid: false,
54
+ key: 'iron-helmet',
55
+ texturePath: 'helmets/iron-helmet.png',
56
+ textureKey: 'iron-helmet',
57
+ name: 'Helmet',
58
+ description: 'You see a broad bow.',
59
+ attack: 7,
60
+ defense: 3,
61
+ weight: 13,
62
+ tiledId: 67,
63
+ x: 320,
64
+ y: 144,
65
+ scene: 'MainScene',
66
+ fullDescription: 'You see a board bow.',
67
+ isEquipable: true,
68
+ isStackable: false,
69
+ createdAt: '2022-06-04T03:18:09.335Z',
70
+ updatedAt: '2022-06-04T18:16:49.056Z',
71
+ },
72
+ armor: {
73
+ _id: '2',
74
+ type: ItemType.Armor,
75
+ subType: ItemSubType.Armor,
76
+ textureAtlas: 'items',
77
+ allowedEquipSlotType: [ItemSlotType.Torso],
78
+ isEquipable: false,
79
+ isStackable: false,
80
+ maxStackSize: 99,
81
+ stackQty: 3,
82
+ isUsable: true,
83
+ isStorable: true,
84
+ layer: 1,
85
+ isItemContainer: false,
86
+ isSolid: false,
87
+ key: 'board-sword-22',
88
+ texturePath: 'armors/golden-armor.png',
89
+ textureKey: 'golden-armor',
90
+ name: 'golden armor',
91
+ description: 'Recover your life',
92
+ attack: 7,
93
+ defense: 3,
94
+ weight: 13,
95
+ tiledId: 67,
96
+ x: 320,
97
+ y: 144,
98
+ scene: 'MainScene',
99
+ fullDescription: 'Recover your life',
100
+ createdAt: '2022-06-04T03:18:09.335Z',
101
+ updatedAt: '2022-06-04T18:16:49.056Z',
102
+ },
103
+ legs: {
104
+ _id: '3',
105
+ type: ItemType.Armor,
106
+ subType: ItemSubType.Legs,
107
+ textureAtlas: 'items',
108
+ allowedEquipSlotType: [ItemSlotType.Legs],
109
+ isEquipable: false,
110
+ isStackable: false,
111
+ maxStackSize: 99,
112
+ stackQty: 13,
113
+ isUsable: true,
114
+ isStorable: true,
115
+ layer: 1,
116
+ isItemContainer: false,
117
+ isSolid: false,
118
+ key: 'leather-legs',
119
+ texturePath: 'legs/leather-legs.png',
120
+ textureKey: 'leather-legs',
121
+ name: 'Leather legs',
122
+ description: 'Protect your legs',
123
+ attack: 7,
124
+ defense: 3,
125
+ weight: 13,
126
+ tiledId: 67,
127
+ x: 320,
128
+ y: 144,
129
+ scene: 'MainScene',
130
+ fullDescription: 'Leather legs',
131
+ createdAt: '2022-06-04T03:18:09.335Z',
132
+ updatedAt: '2022-06-04T18:16:49.056Z',
133
+ },
134
+ boot: {
135
+ _id: '4',
136
+ type: ItemType.Armor,
137
+ subType: ItemSubType.Boot,
138
+ textureAtlas: 'items',
139
+ allowedEquipSlotType: [ItemSlotType.Feet],
140
+ isEquipable: false,
141
+ isStackable: false,
142
+ maxStackSize: 999,
143
+ stackQty: 171,
144
+ isUsable: true,
145
+ isStorable: true,
146
+ layer: 1,
147
+ isItemContainer: false,
148
+ isSolid: false,
149
+ key: 'board-sword-22',
150
+ texturePath: 'boots/golden-boots.png',
151
+ textureKey: 'golden-boots',
152
+ name: 'golden-boots',
153
+ description: 'Open the gates, but use the key!',
154
+ attack: 7,
155
+ defense: 3,
156
+ weight: 13,
157
+ tiledId: 67,
158
+ x: 320,
159
+ y: 144,
160
+ scene: 'MainScene',
161
+ fullDescription: 'Key to open things',
162
+ createdAt: '2022-06-04T03:18:09.335Z',
163
+ updatedAt: '2022-06-04T18:16:49.056Z',
164
+ },
165
+ neck: {
166
+ _id: '5',
167
+ type: ItemType.Armor,
168
+ subType: ItemSubType.Accessory,
169
+ textureAtlas: 'items',
170
+ allowedEquipSlotType: [ItemSlotType.Neck],
171
+ isEquipable: false,
172
+ isStackable: false,
173
+ maxStackSize: 999,
174
+ stackQty: 32,
175
+ isUsable: false,
176
+ isStorable: true,
177
+ layer: 1,
178
+ isItemContainer: false,
179
+ isSolid: false,
180
+ key: 'sapphire-necklace',
181
+ texturePath: 'accessories/sapphire-necklace.png',
182
+ textureKey: 'sapphire-necklace',
183
+ name: 'sapphire-necklace',
184
+ description: 'Use this to craft things!',
185
+ attack: 7,
186
+ defense: 3,
187
+ weight: 13,
188
+ tiledId: 67,
189
+ x: 320,
190
+ y: 144,
191
+ scene: 'MainScene',
192
+ fullDescription: 'Somes shard, some crafts.',
193
+ createdAt: '2022-06-04T03:18:09.335Z',
194
+ updatedAt: '2022-06-04T18:16:49.056Z',
195
+ },
196
+ ring: {
197
+ _id: '6',
198
+ type: ItemType.Accessory,
199
+ subType: ItemSubType.Armor,
200
+ textureAtlas: 'items',
201
+ allowedEquipSlotType: [ItemSlotType.Ring],
202
+ isEquipable: false,
203
+ isStackable: false,
204
+ maxStackSize: 999,
205
+ stackQty: 32,
206
+ isUsable: false,
207
+ isStorable: true,
208
+ layer: 1,
209
+ isItemContainer: false,
210
+ isSolid: false,
211
+ key: 'jade-ring',
212
+ texturePath: '"rings/jade-ring.png',
213
+ textureKey: 'jade-ring',
214
+ name: 'jade-ring',
215
+ description: 'Chop chop.',
216
+ attack: 7,
217
+ defense: 3,
218
+ weight: 13,
219
+ tiledId: 67,
220
+ x: 320,
221
+ y: 144,
222
+ scene: 'MainScene',
223
+ fullDescription: 'Use this axe to chop wood and stuffs.',
224
+ createdAt: '2022-06-04T03:18:09.335Z',
225
+ updatedAt: '2022-06-04T18:16:49.056Z',
226
+ },
227
+ accessory: {
228
+ _id: '7',
229
+ type: ItemType.Accessory,
230
+ subType: ItemSubType.Accessory,
231
+ textureAtlas: 'items',
232
+ allowedEquipSlotType: [ItemSlotType.Accessory],
233
+ isEquipable: false,
234
+ isStackable: false,
235
+ maxStackSize: 999,
236
+ stackQty: 32,
237
+ isUsable: false,
238
+ isStorable: true,
239
+ layer: 1,
240
+ isItemContainer: false,
241
+ isSolid: false,
242
+ key: 'wolf-tooth-chain',
243
+ texturePath: 'accessories/wolf-tooth-chain.png',
244
+ textureKey: 'wolf-tooth-chain',
245
+ name: 'wolf-tooth-chain',
246
+ description: 'Chop chop.',
247
+ attack: 7,
248
+ defense: 3,
249
+ weight: 13,
250
+ tiledId: 67,
251
+ x: 320,
252
+ y: 144,
253
+ scene: 'MainScene',
254
+ fullDescription: 'Use this axe to chop wood and stuffs.',
255
+ createdAt: '2022-06-04T03:18:09.335Z',
256
+ updatedAt: '2022-06-04T18:16:49.056Z',
257
+ },
258
+ inventory: {
259
+ _id: '8',
260
+ type: ItemType.Container,
261
+ subType: ItemSubType.Other,
262
+ textureAtlas: 'items',
263
+ allowedEquipSlotType: [ItemSlotType.Inventory],
264
+ isEquipable: false,
265
+ isStackable: false,
266
+ maxStackSize: 999,
267
+ stackQty: 171,
268
+ isUsable: true,
269
+ isStorable: true,
270
+ layer: 1,
271
+ isItemContainer: true,
272
+ isSolid: false,
273
+ key: 'backpack',
274
+ texturePath: 'containers/backpack.png',
275
+ textureKey: 'backpack',
276
+ name: 'backpack',
277
+ description: 'Open the gates, but use the key!',
278
+ attack: 7,
279
+ defense: 3,
280
+ weight: 13,
281
+ tiledId: 67,
282
+ x: 320,
283
+ y: 144,
284
+ scene: 'MainScene',
285
+ fullDescription: 'Key to open things',
286
+ createdAt: '2022-06-04T03:18:09.335Z',
287
+ updatedAt: '2022-06-04T18:16:49.056Z',
288
+ generateContainerSlots: 10,
289
+ itemContainer: {
290
+ _id: '62aebdb5785a9f0089a4f8cf',
291
+ slotQty: 10,
292
+ allowedItemTypes: [],
293
+ parentItem: '8',
294
+ slots: {},
295
+ owner: '62aebdb2785a9f0089a4f869',
296
+ createdAt: '2022-06-19T06:09:57.971Z',
297
+ updatedAt: '2022-06-19T06:09:57.971Z',
298
+ isEmpty: true,
299
+ },
300
+ },
301
+ rightHand: {
302
+ _id: '629acef1c7c8e8002ff60736',
303
+ type: ItemType.Armor,
304
+ subType: ItemSubType.Shield,
305
+ textureAtlas: 'items',
306
+ allowedEquipSlotType: [ItemSlotType.LeftHand, ItemSlotType.RightHand],
307
+ maxStackSize: 1,
308
+ isUsable: false,
309
+ isStorable: true,
310
+ layer: 1,
311
+ isItemContainer: false,
312
+ isSolid: false,
313
+ key: 'plate-shield',
314
+ texturePath: 'shields/plate-shield.png',
315
+ textureKey: 'plate-shield',
316
+ name: 'Plate Shield',
317
+ description:
318
+ 'You see a short sword. It is a single-handed sword with a handle that just features a grip.',
319
+ attack: 5,
320
+ defense: 0,
321
+ weight: 10,
322
+ tiledId: 66,
323
+ x: 320,
324
+ y: 144,
325
+ scene: 'MainScene',
326
+ fullDescription:
327
+ 'You see a short sword. It is a single-handed sword with a handle that just features a grip.',
328
+ isEquipable: true,
329
+ isStackable: false,
330
+ createdAt: '2022-06-04T03:18:09.335Z',
331
+ updatedAt: '2022-06-04T18:16:49.056Z',
332
+ },
333
+ };
334
+
335
+ export const equipmentSetMock: IEquipmentSet = {
336
+ _id: '629acef1c7c8e8002ff60736',
337
+ head: undefined,
338
+ armor: items.armor,
339
+ legs: undefined,
340
+ boot: items.boot,
341
+ leftHand: items.leftHand,
342
+ rightHand: undefined,
343
+ neck: undefined,
344
+ ring: undefined,
345
+ accessory: undefined,
346
+ inventory: items.inventory,
347
+ };