public void OnSold(BaseVendor vendor, int amount)
{
if (EconomyItem)
{
foreach (var bii in vendor.GetBuyInfo().OfType <GenericBuyInfo>())
{
if (bii.Type == m_Type || (m_Type == typeof(UncutCloth) && bii.Type == typeof(Cloth)) || (m_Type == typeof(Cloth) && bii.Type == typeof(UncutCloth)))
{
bii.TotalSold += amount;
}
}
}
}