@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
package/package.json
CHANGED
|
@@ -132,23 +132,16 @@ export const generateContextMenu = (
|
|
|
132
132
|
break;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
// Add "Use" for consumable items in nested containers
|
|
136
|
-
if (item.type === ItemType.Consumable
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
text: ItemSocketEventsDisplayLabels[ItemSocketEvents.Use],
|
|
142
|
-
});
|
|
143
|
-
}
|
|
135
|
+
// Add "Use" for consumable items in nested containers (same as Inventory)
|
|
136
|
+
if (item.type === ItemType.Consumable) {
|
|
137
|
+
contextActionMenu.unshift({
|
|
138
|
+
id: ItemSocketEvents.Use,
|
|
139
|
+
text: ItemSocketEventsDisplayLabels[ItemSocketEvents.Use],
|
|
140
|
+
});
|
|
144
141
|
}
|
|
145
142
|
|
|
146
143
|
// Add "Use with..." for items that have hasUseWith property
|
|
147
|
-
|
|
148
|
-
action.text.toLowerCase().includes('use with')
|
|
149
|
-
);
|
|
150
|
-
|
|
151
|
-
if (item.hasUseWith && contextActionMenuDontHaveUseWith) {
|
|
144
|
+
if (item.hasUseWith) {
|
|
152
145
|
contextActionMenu.push({
|
|
153
146
|
id: ItemSocketEvents.UseWith,
|
|
154
147
|
text: ItemSocketEvents.UseWith,
|