@rpg-engine/long-bow 0.3.72 → 0.3.73

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