// Core Logic #region public void SetTalentTierCount(int newValue) { Debug.Log("TalentChangeButton.SetTalentTierCount() called, new value: " + talentSchool.ToString() + " (" + newValue.ToString() + ")"); talentTierCount = newValue; AutoApplyTextColour(); }
public List <StatusPairingDataSO> GetAllStatusPairingsFromTalentSchool(AbilityDataSO.AbilitySchool school, int maxTierLimit) { List <StatusPairingDataSO> dataReturned = new List <StatusPairingDataSO>(); foreach (StatusPairingDataSO ability in allStatusPairingData) { if (ability.abilitySchool == school && ability.tier <= maxTierLimit) { dataReturned.Add(ability); } } Debug.Log("StatusIconLibrary.GetAllStatusPairingsFromTalentSchool() found " + dataReturned.Count.ToString() + " " + school.ToString() + " abilities at tier " + maxTierLimit.ToString() + " or lower"); return(dataReturned); }
public List <AbilityDataSO> GetAllAbilitiesFromTalentSchool(AbilityDataSO.AbilitySchool school, int tierMaxLimit) { Debug.Log("AbilityLibrary.GetAllAbilitiesFromTalentSchool() called..."); List <AbilityDataSO> dataReturned = new List <AbilityDataSO>(); foreach (AbilityDataSO ability in AllAbilities) { if (ability.abilitySchool == school && ability.tier <= tierMaxLimit) { dataReturned.Add(ability); } } Debug.Log("AbilityLibrary.GetAllAbilitiesFromTalentSchool() found " + dataReturned.Count.ToString() + " " + school.ToString() + " abilities at tier " + tierMaxLimit.ToString() + " or lower"); return(dataReturned); }