@rpg-engine/long-bow 0.4.2 → 0.4.4

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