@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.
- package/dist/long-bow.cjs.development.js +8 -16
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +8 -16
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Item/Inventory/itemContainerHelper.ts +7 -14
|
@@ -27779,23 +27779,15 @@ var generateContextMenu = function generateContextMenu(item, itemContainerType,
|
|
|
27779
27779
|
contextActionMenu = generateContextMenuListOptions(shared.ActionsForLoot.Other);
|
|
27780
27780
|
break;
|
|
27781
27781
|
}
|
|
27782
|
-
// Add "Use" for consumable items in nested containers
|
|
27783
|
-
if (item.type === shared.ItemType.Consumable
|
|
27784
|
-
|
|
27785
|
-
|
|
27782
|
+
// Add "Use" for consumable items in nested containers (same as Inventory)
|
|
27783
|
+
if (item.type === shared.ItemType.Consumable) {
|
|
27784
|
+
contextActionMenu.unshift({
|
|
27785
|
+
id: shared.ItemSocketEvents.Use,
|
|
27786
|
+
text: shared.ItemSocketEventsDisplayLabels[shared.ItemSocketEvents.Use]
|
|
27786
27787
|
});
|
|
27787
|
-
if (!hasUseAction) {
|
|
27788
|
-
contextActionMenu.unshift({
|
|
27789
|
-
id: shared.ItemSocketEvents.Use,
|
|
27790
|
-
text: shared.ItemSocketEventsDisplayLabels[shared.ItemSocketEvents.Use]
|
|
27791
|
-
});
|
|
27792
|
-
}
|
|
27793
27788
|
}
|
|
27794
27789
|
// Add "Use with..." for items that have hasUseWith property
|
|
27795
|
-
|
|
27796
|
-
return action.text.toLowerCase().includes('use with');
|
|
27797
|
-
});
|
|
27798
|
-
if (item.hasUseWith && _contextActionMenuDontHaveUseWith) {
|
|
27790
|
+
if (item.hasUseWith) {
|
|
27799
27791
|
contextActionMenu.push({
|
|
27800
27792
|
id: shared.ItemSocketEvents.UseWith,
|
|
27801
27793
|
text: shared.ItemSocketEvents.UseWith
|
|
@@ -27823,10 +27815,10 @@ var generateContextMenu = function generateContextMenu(item, itemContainerType,
|
|
|
27823
27815
|
contextActionMenu = generateContextMenuListOptions(shared.ActionsForMapContainer.Other);
|
|
27824
27816
|
break;
|
|
27825
27817
|
}
|
|
27826
|
-
var
|
|
27818
|
+
var _contextActionMenuDontHaveUseWith = !contextActionMenu.find(function (action) {
|
|
27827
27819
|
return action.text.toLowerCase().includes('use with');
|
|
27828
27820
|
});
|
|
27829
|
-
if (item.hasUseWith &&
|
|
27821
|
+
if (item.hasUseWith && _contextActionMenuDontHaveUseWith) {
|
|
27830
27822
|
contextActionMenu.push({
|
|
27831
27823
|
id: 'use-with',
|
|
27832
27824
|
text: 'Use with...'
|