@rpg-engine/long-bow 0.5.44 → 0.5.46

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.
@@ -13841,6 +13841,15 @@ var generateContextMenu = function generateContextMenu(item, itemContainerType,
13841
13841
  text: 'Deposit'
13842
13842
  });
13843
13843
  }
13844
+ var contextActionMenuDontHaveUseWith = !contextActionMenu.find(function (action) {
13845
+ return action.text.toLowerCase().includes('use with');
13846
+ });
13847
+ if (item.hasUseWith && contextActionMenuDontHaveUseWith) {
13848
+ contextActionMenu.push({
13849
+ id: ItemSocketEvents.UseWith,
13850
+ text: ItemSocketEvents.UseWith
13851
+ });
13852
+ }
13844
13853
  }
13845
13854
  if (itemContainerType === ItemContainerType.Equipment) {
13846
13855
  switch (item.type) {
@@ -13894,10 +13903,10 @@ var generateContextMenu = function generateContextMenu(item, itemContainerType,
13894
13903
  contextActionMenu = generateContextMenuListOptions(ActionsForMapContainer.Other);
13895
13904
  break;
13896
13905
  }
13897
- var contextActionMenuDontHaveUseWith = !contextActionMenu.find(function (action) {
13906
+ var _contextActionMenuDontHaveUseWith = !contextActionMenu.find(function (action) {
13898
13907
  return action.text.toLowerCase().includes('use with');
13899
13908
  });
13900
- if (item.hasUseWith && contextActionMenuDontHaveUseWith) {
13909
+ if (item.hasUseWith && _contextActionMenuDontHaveUseWith) {
13901
13910
  contextActionMenu.push({
13902
13911
  id: 'use-with',
13903
13912
  text: 'Use with...'