// Copyright Pacificao. All Rights Reserved.

#include "AgrarianItemDefinitionAsset.h"

FAgrarianItemStack UAgrarianItemDefinitionAsset::MakeStack(int32 Quantity) const
{
	FAgrarianItemStack Stack;
	Stack.ItemId = Definition.ItemId;
	Stack.DisplayName = Definition.DisplayName;
	Stack.Quantity = FMath::Clamp(Quantity, 0, Definition.MaxStackSize);
	Stack.UnitWeight = Definition.UnitWeight;
	return Stack;
}
