(Feat) Add Build

This commit is contained in:
2026-07-22 12:56:13 +02:00
parent 3657b870d8
commit 0052b0d98e
244 changed files with 35752 additions and 3112 deletions
+10 -1
View File
@@ -85,7 +85,16 @@ namespace Ashwild.UI
PlayerEvents.FuelAdded -= OnItemSpent;
}
private void OnItemAdded(ItemData item, int quantity) => Push(item, quantity);
/// <summary>
/// Announces a gain — but never a transfer: pulling a stack out of a chest only shuffles items
/// between the player's own containers, so popping a "+N" for it would be noise.
/// </summary>
private void OnItemAdded(ItemData item, int quantity, bool isTransfer)
{
if (isTransfer) return;
Push(item, quantity);
}
private void OnItemDropped(ItemData item, int quantity) => Push(item, -quantity);
private void OnItemConsumed(ItemData item) => Push(item, -1);
private void OnRecipeDiscovered(Sprite icon, string recipeName) => PushDiscovery(icon, recipeName);