@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.
- package/dist/long-bow.cjs.development.js +11 -2
- 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 +11 -2
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Item/Inventory/itemContainerHelper.ts +11 -0
|
@@ -13846,6 +13846,15 @@ var generateContextMenu = function generateContextMenu(item, itemContainerType,
|
|
|
13846
13846
|
text: 'Deposit'
|
|
13847
13847
|
});
|
|
13848
13848
|
}
|
|
13849
|
+
var contextActionMenuDontHaveUseWith = !contextActionMenu.find(function (action) {
|
|
13850
|
+
return action.text.toLowerCase().includes('use with');
|
|
13851
|
+
});
|
|
13852
|
+
if (item.hasUseWith && contextActionMenuDontHaveUseWith) {
|
|
13853
|
+
contextActionMenu.push({
|
|
13854
|
+
id: shared.ItemSocketEvents.UseWith,
|
|
13855
|
+
text: shared.ItemSocketEvents.UseWith
|
|
13856
|
+
});
|
|
13857
|
+
}
|
|
13849
13858
|
}
|
|
13850
13859
|
if (itemContainerType === shared.ItemContainerType.Equipment) {
|
|
13851
13860
|
switch (item.type) {
|
|
@@ -13899,10 +13908,10 @@ var generateContextMenu = function generateContextMenu(item, itemContainerType,
|
|
|
13899
13908
|
contextActionMenu = generateContextMenuListOptions(shared.ActionsForMapContainer.Other);
|
|
13900
13909
|
break;
|
|
13901
13910
|
}
|
|
13902
|
-
var
|
|
13911
|
+
var _contextActionMenuDontHaveUseWith = !contextActionMenu.find(function (action) {
|
|
13903
13912
|
return action.text.toLowerCase().includes('use with');
|
|
13904
13913
|
});
|
|
13905
|
-
if (item.hasUseWith &&
|
|
13914
|
+
if (item.hasUseWith && _contextActionMenuDontHaveUseWith) {
|
|
13906
13915
|
contextActionMenu.push({
|
|
13907
13916
|
id: 'use-with',
|
|
13908
13917
|
text: 'Use with...'
|