@rpg-engine/long-bow 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -83,7 +83,7 @@
83
83
  },
84
84
  "dependencies": {
85
85
  "@rollup/plugin-image": "^2.1.1",
86
- "@rpg-engine/shared": "^0.4.10",
86
+ "@rpg-engine/shared": "^0.4.15",
87
87
  "dayjs": "^1.11.2",
88
88
  "fs-extra": "^10.1.0",
89
89
  "lodash": "^4.17.21",
@@ -5,7 +5,7 @@ import {
5
5
  ActionsForMapContainer,
6
6
  ItemContainerType,
7
7
  ItemSocketEventsDisplayLabels,
8
- ItemType,
8
+ ItemType
9
9
  } from '@rpg-engine/shared';
10
10
 
11
11
  export interface IContextMenuItem {
@@ -34,11 +34,15 @@ export const generateContextMenu = (
34
34
  case ItemType.Armor:
35
35
  case ItemType.Accessory:
36
36
  case ItemType.Jewelry:
37
- case ItemType.Container:
38
37
  contextActionMenu = generateContextMenuListOptions(
39
38
  ActionsForInventory.Equipment
40
39
  );
41
40
  break;
41
+ case ItemType.Container:
42
+ contextActionMenu = generateContextMenuListOptions(
43
+ ActionsForInventory.Container
44
+ );
45
+ break;
42
46
  case ItemType.Consumable:
43
47
  contextActionMenu = generateContextMenuListOptions(
44
48
  ActionsForInventory.Consumable
@@ -3,7 +3,7 @@ import {
3
3
  IItemContainer,
4
4
  ItemSlotType,
5
5
  ItemSubType,
6
- ItemType,
6
+ ItemType
7
7
  } from '@rpg-engine/shared';
8
8
 
9
9
  export const items: IItem[] = [
@@ -224,6 +224,38 @@ export const items: IItem[] = [
224
224
  // createdAt: '2022-06-04T03:18:09.335Z',
225
225
  // updatedAt: '2022-06-04T18:16:49.056Z',
226
226
  // },
227
+ {
228
+ _id: '392acek4j7c8e8002ff60404',
229
+ type: ItemType.Container,
230
+ subType: ItemSubType.Other,
231
+ textureAtlas: 'items',
232
+ allowedEquipSlotType: [ItemSlotType.Inventory],
233
+ isEquipable: false,
234
+ isStackable: true,
235
+ maxStackSize: 999,
236
+ stackQty: 32,
237
+ isUsable: false,
238
+ isStorable: true,
239
+ layer: 1,
240
+ isItemContainer: true,
241
+ isSolid: false,
242
+ key: 'bag',
243
+ texturePath: 'containers/bag.png',
244
+ textureKey: 'bag',
245
+ name: 'Bag',
246
+ generateContainerSlots: 10,
247
+ description: 'You see a bag. It has made using leather and it has 10 total slots.',
248
+ attack: 7,
249
+ defense: 3,
250
+ weight: 13,
251
+ tiledId: 67,
252
+ x: 320,
253
+ y: 144,
254
+ scene: 'MainScene',
255
+ fullDescription: 'You see a bag. It has made using leather and it has 10 total slots.',
256
+ createdAt: '2022-06-04T03:18:09.335Z',
257
+ updatedAt: '2022-06-04T18:16:49.056Z',
258
+ }
227
259
  ];
228
260
 
229
261
  export const itemContainerMock: IItemContainer = {
@@ -238,7 +270,7 @@ export const itemContainerMock: IItemContainer = {
238
270
  3: items[3],
239
271
  4: items[4],
240
272
  5: items[5],
241
- // 6: items[6],
273
+ 6: items[6],
242
274
  //remaining slots are considered null by default
243
275
  },
244
276
  allowedItemTypes: [],