Esempio n. 1
0
        public void SetZero(string cardId)
        {
            var index = SecretHelper.GetSecretIndex(HeroClass, cardId);

            if (index != -1)
            {
                SetZero(index);
            }
        }
Esempio n. 2
0
        public void Trigger(string cardId)
        {
            var index = SecretHelper.GetSecretIndex(HeroClass, cardId);

            if (index == -1)
            {
                return;
            }
            if (Secrets.Any(s => s.PossibleSecrets[index]))
            {
                SetZero(index);
            }
            else
            {
                SetMax(index);
            }
        }
Esempio n. 3
0
        public void SetZero(string cardId, HeroClass?heroClass)
        {
            if (heroClass == null)
            {
                heroClass = GetHeroClass(cardId);
                if (!heroClass.HasValue)
                {
                    return;
                }
            }
            var index = SecretHelper.GetSecretIndex(heroClass.Value, cardId);

            if (index != -1)
            {
                SetZero(index, heroClass.Value);
            }
        }
Esempio n. 4
0
        public void Trigger(string cardId)
        {
            var index = SecretHelper.GetSecretIndex(HeroClass, cardId);

            if (index == -1)
            {
                return;
            }
            if (Secrets.Any(s => s.PossibleSecrets[index]))
            {
                foreach (var secret in Secrets)
                {
                    secret.PossibleSecrets[index] = false;
                }
            }
            else
            {
                foreach (var secret in Secrets)
                {
                    secret.PossibleSecrets[index] = true;
                }
            }
        }
Esempio n. 5
0
        public void Trigger(string cardId)
        {
            var heroClass = GetHeroClass(cardId);

            if (!heroClass.HasValue)
            {
                return;
            }
            var index = SecretHelper.GetSecretIndex(heroClass.Value, cardId);

            if (index == -1)
            {
                return;
            }
            //index += GetIndexOffset(heroClass.Value);
            if (Secrets.Where(s => s.HeroClass == heroClass).Any(s => s.PossibleSecrets[index]))
            {
                SetZero(index, heroClass.Value);
            }
            else
            {
                SetMax(index, heroClass.Value);
            }
        }