示例#1
0
        public static List <Pirate> RemoveDecoyFromList(this List <Pirate> list)
        {
            if (!DecoyDetector.IsActive())
            {
                return(list);
            }

            var newList = new List <Pirate>();

            for (var i = 0; i < list.Count; i++)
            {
                if (list[i].GetHashCode() == DecoyDetector.GetDecoyHashcode())
                {
                    continue;
                }

                newList.Add(list[i]);
            }

            return(newList);
        }