(Feat) Add Build
This commit is contained in:
@@ -55,17 +55,6 @@ namespace Ashwild.Inventory
|
||||
currentUses = 0;
|
||||
}
|
||||
|
||||
public int AddQuantity(int amount)
|
||||
{
|
||||
if (itemData == null || !itemData.IsStackable || itemData.HasUses)
|
||||
return amount;
|
||||
|
||||
int space = itemData.MaxStackSize - quantity;
|
||||
int toAdd = amount < space ? amount : space;
|
||||
quantity += toAdd;
|
||||
return amount - toAdd;
|
||||
}
|
||||
|
||||
public void RemoveQuantity(int amount)
|
||||
{
|
||||
quantity -= amount;
|
||||
|
||||
Reference in New Issue
Block a user