Fix small item dupe bug
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user