Fix small item dupe bug

This commit is contained in:
2026-05-30 17:06:41 -07:00
parent 4aa827960a
commit b16d0c3169
+1 -1
View File
@@ -791,7 +791,7 @@ public partial class Game : Node3D, IGame
InventoryEventNotification.Invoke($"HP has been reduced to 1."); InventoryEventNotification.Invoke($"HP has been reduced to 1.");
break; break;
case UsableItemTag.DoubleStackedItems: case UsableItemTag.DoubleStackedItems:
var stackableItems = _player.Inventory.Items.OfType<IStackable>().ToList(); var stackableItems = _player.Inventory.Items.OfType<IStackable>().Except([effectItem]).ToList();
stackableItems.ForEach(x => x.Count.OnNext(x.Count.Value * 2)); stackableItems.ForEach(x => x.Count.OnNext(x.Count.Value * 2));
InventoryEventNotification.Invoke($"Items with inventory count have been doubled."); InventoryEventNotification.Invoke($"Items with inventory count have been doubled.");
break; break;