private void SetActiveCombo() { for (int i = possibleCombos.Count - 1; i >= 0; i--) { int runeMatch = 0; for (int j = possibleCombos[i].combo.Count - 1; j >= 0; j--) { if (runes.Contains(possibleCombos[i].combo[j])) { runeMatch++; } } if (runeMatch == possibleCombos[i].combo.Count - 1) { activeCombo = possibleCombos[i]; break; } } }
public void Initialize() { possibleCombos.Clear(); activeCombo = new RuneSequence(); runes.Clear(); }