Exemplo n.º 1
0
        public static void CheckForDupe(Card card)
        {
            if (HasReno == false)
            {
                return;
            }
            var dupeNames = Dupes.Select(x => x.Name).ToList();

            if (dupeNames.Contains(card.Name))
            {
                Logger.WriteLine("Getting Closer... " + card.Name + " removed.", "RenoTime");
                var cardToRemove = Dupes.FirstOrDefault(x => x.Name == card.Name);
                Dupes.Remove(cardToRemove);

                RenoPanel.RenoText.Text = string.Empty;
                foreach (var c in Dupes)
                {
                    RenoPanel.RenoText.Text += c.Name + "\n";
                }
            }

            if (Dupes.Count == 0) //RENO TIME
            {
                RenoPanel.RenoText.Text = "Reno is hawt!";
                RenoPanel.RenoText.Fill = Brushes.LimeGreen;

                Logger.WriteLine("RENO TIME !!!!", "RenoTime");
            }
        }
Exemplo n.º 2
0
        public static void LoadDupes()
        {
            if (HasReno == false)
            {
                return;
            }
            Logger.WriteLine("LoadDupes();", "RenoTime");

            Dupes.Clear();
            var deck = DeckList.Instance.ActiveDeck;

            RenoPanel.RenoText.Text = string.Empty;

            foreach (var c in deck.Cards.Where(x => x.Count == 2))
            {
                RenoPanel.RenoText.Text += c.Name + "\n";
                Dupes.Add(c);
            }
        }