Exemplo n.º 1
0
        /// <summary>
        /// Make sure there's at least one item which hasn't been targeted
        /// </summary>
        public override bool IsPossible(PlayerScript candidate)
        {
            // Get all items from the item pool which haven't been targeted already
            int itemCount = ItemPool.Where(itemDict =>
                                           !AntagManager.Instance.TargetedItems.Contains(itemDict.Key)).Count();

            return(itemCount > 0);
        }