(Feat) Add Build
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user