Пример #1
0
        public bool CanActivePlayerTrade(int amount, Item tradeType)
        {
            if (tradeType == Item.Any)
            {
                return(ActivePlayer.GetMatchingItems(ItemHelper.ResourceCards).Any(pair => pair.Value >= amount));
            }

            return(ActivePlayer.GetAmount(tradeType) >= amount);
        }