@rpg-engine/long-bow 0.2.49 → 0.2.51
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 -5
- 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 -5
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Item/Inventory/itemContainerHelper.ts +7 -3
package/dist/long-bow.esm.js
CHANGED
|
@@ -28002,12 +28002,15 @@ var generateContextMenu = function generateContextMenu(item, itemContainerType)
|
|
|
28002
28002
|
contextActionMenu = generateContextMenuListOptions(ActionsForMapContainer.Other);
|
|
28003
28003
|
break;
|
|
28004
28004
|
}
|
|
28005
|
-
|
|
28006
|
-
|
|
28007
|
-
contextActionMenu.push({
|
|
28008
|
-
id: 'use-with',
|
|
28009
|
-
text: 'Use With...'
|
|
28005
|
+
var contextActionMenuDontHaveUseWith = !contextActionMenu.find(function (action) {
|
|
28006
|
+
return action.text.toLowerCase().includes('use with');
|
|
28010
28007
|
});
|
|
28008
|
+
if (item.hasUseWith && contextActionMenuDontHaveUseWith) {
|
|
28009
|
+
contextActionMenu.push({
|
|
28010
|
+
id: 'use-with',
|
|
28011
|
+
text: 'Use with...'
|
|
28012
|
+
});
|
|
28013
|
+
}
|
|
28011
28014
|
}
|
|
28012
28015
|
return contextActionMenu;
|
|
28013
28016
|
};
|