@rpg-engine/long-bow 0.3.53 → 0.3.55

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