public Secret[] GetSecrets() { var count = SecretHelper.GetMaxSecretCount(HeroClass); var returnThis = new Secret[count]; for(var i = 0; i < count; i++) returnThis[i] = new Secret(SecretHelper.GetSecretIds(HeroClass)[i], 0); foreach(var secret in Secrets) { for(var i = 0; i < count; i++) { if(secret.PossibleSecrets[i]) returnThis[i].Count++; } } return returnThis; }
public Secret[] GetDefaultSecrets(HeroClass heroClass) { var count = SecretHelper.GetMaxSecretCount(heroClass); var returnThis = new Secret[count]; for(var i = 0; i < count; i++) returnThis[i] = new Secret(SecretHelper.GetSecretIds(heroClass)[i], 1); return returnThis; }