public void SaveSecret(string secret)
 {
     if (!Secrets.Any(s => s.IsExcluded(secret)))
     {
         SavedSecrets.Add(secret);
     }
 }
 public void SaveSecret(MultiIdCard secret)
 {
     if (!Secrets.Any(s => s.IsExcluded(secret)))
     {
         SavedSecrets.Add(secret);
     }
 }
Exemple #3
0
 public void Trigger(string cardId)
 {
     if (Secrets.Any(s => s.PossibleSecrets[cardId]))
     {
         SetZero(cardId);
     }
     else
     {
         SetMax(cardId);
     }
 }
 public void Trigger(string cardId)
 {
     if (Secrets.Any(s => s.TryGetSecret(cardId)))
     {
         SetZero(cardId);
     }
     else
     {
         SetMax(cardId);
     }
 }
Exemple #5
0
		public void Toggle(string cardId)
		{
			var excluded = Secrets.Any(s => s.IsExcluded(cardId));
			if(excluded)
			{
				foreach(var secret in Secrets)
					secret.Include(cardId);
			}
			else
				Exclude(cardId, false);
			Refresh();
		}
Exemple #6
0
        public void Toggle(string cardId)
        {
            var excluded = Secrets.Any(s => s.IsExcluded(cardId));

            if (excluded)
            {
                foreach (var secret in Secrets)
                {
                    secret.Include(cardId);
                }
            }
            else
            {
                Exclude(cardId, false);
            }
            OnSecretsChanged?.Invoke(GetSecretList());
        }
Exemple #7
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);
            }
        }
Exemple #8
0
        public void Toggle(MultiIdCard cardId)
        {
            var excluded = Secrets.Any(s => s.IsExcluded(cardId));

            if (excluded)
            {
                foreach (var secret in Secrets)
                {
                    secret.Include(cardId);
                }
            }
            else
            {
                Exclude(cardId, false);
            }
            Refresh();
        }
        public void AddSecret(UserOrNpcInfo target)
        {
            if (!target.IsNpc && Secrets.Any(u => u.UserId == ((UserInfo)target).User.Id))
            {
                return;
            }
            else if (Secrets.Any(u => u.Name == target.NickOrName))
            {
                return;
            }

            if (target.IsNpc)
            {
                Secrets.Add(new Secret(target.NickOrName));
            }
            else
            {
                Secrets.Add(new Secret(((UserInfo)target).User));
            }
        }
Exemple #10
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;
                }
            }
        }