@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.8.108",
3
+ "version": "0.8.110",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -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 && item.isUsable) {
137
- const hasUseAction = contextActionMenu.some(action => action.id === ItemSocketEvents.Use);
138
- if (!hasUseAction) {
139
- contextActionMenu.unshift({
140
- id: ItemSocketEvents.Use,
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
- const contextActionMenuDontHaveUseWith = !contextActionMenu.find(action =>
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,