@rpg-engine/long-bow 0.8.108 → 0.8.110

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.
@@ -27772,23 +27772,15 @@ var generateContextMenu = function generateContextMenu(item, itemContainerType,
27772
27772
  contextActionMenu = generateContextMenuListOptions(ActionsForLoot.Other);
27773
27773
  break;
27774
27774
  }
27775
- // Add "Use" for consumable items in nested containers
27776
- if (item.type === ItemType.Consumable && item.isUsable) {
27777
- var hasUseAction = contextActionMenu.some(function (action) {
27778
- return action.id === ItemSocketEvents.Use;
27775
+ // Add "Use" for consumable items in nested containers (same as Inventory)
27776
+ if (item.type === ItemType.Consumable) {
27777
+ contextActionMenu.unshift({
27778
+ id: ItemSocketEvents.Use,
27779
+ text: ItemSocketEventsDisplayLabels[ItemSocketEvents.Use]
27779
27780
  });
27780
- if (!hasUseAction) {
27781
- contextActionMenu.unshift({
27782
- id: ItemSocketEvents.Use,
27783
- text: ItemSocketEventsDisplayLabels[ItemSocketEvents.Use]
27784
- });
27785
- }
27786
27781
  }
27787
27782
  // Add "Use with..." for items that have hasUseWith property
27788
- var _contextActionMenuDontHaveUseWith = !contextActionMenu.find(function (action) {
27789
- return action.text.toLowerCase().includes('use with');
27790
- });
27791
- if (item.hasUseWith && _contextActionMenuDontHaveUseWith) {
27783
+ if (item.hasUseWith) {
27792
27784
  contextActionMenu.push({
27793
27785
  id: ItemSocketEvents.UseWith,
27794
27786
  text: ItemSocketEvents.UseWith
@@ -27816,10 +27808,10 @@ var generateContextMenu = function generateContextMenu(item, itemContainerType,
27816
27808
  contextActionMenu = generateContextMenuListOptions(ActionsForMapContainer.Other);
27817
27809
  break;
27818
27810
  }
27819
- var _contextActionMenuDontHaveUseWith2 = !contextActionMenu.find(function (action) {
27811
+ var _contextActionMenuDontHaveUseWith = !contextActionMenu.find(function (action) {
27820
27812
  return action.text.toLowerCase().includes('use with');
27821
27813
  });
27822
- if (item.hasUseWith && _contextActionMenuDontHaveUseWith2) {
27814
+ if (item.hasUseWith && _contextActionMenuDontHaveUseWith) {
27823
27815
  contextActionMenu.push({
27824
27816
  id: 'use-with',
27825
27817
  text: 'Use with...'