Esempio n. 1
0
 public Item SetStack(int amount)
 {
     StackCount = Math.Max(1, Math.Min(amount, StackCountMax));
     StackCountChanged?.Invoke();
     return(this);
 }
Esempio n. 2
0
 public Item RemoveStack(int amount = 1)
 {
     StackCount = Math.Max(StackCount - amount, 0);
     StackCountChanged?.Invoke();
     return(this);
 }