예제 #1
0
 // Core Logic
 #region
 public void SetTalentTierCount(int newValue)
 {
     Debug.Log("TalentChangeButton.SetTalentTierCount() called, new value: " + talentSchool.ToString() + " (" +
               newValue.ToString() + ")");
     talentTierCount = newValue;
     AutoApplyTextColour();
 }
예제 #2
0
    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);
    }
예제 #3
0
    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);
    }