Esempio n. 1
0
 public int GetUpgrateExperience(int level)
 {
     SkillConfig.SkillUpgradeSetting skillUpgradeSettingByQualityLevel = ConfigDatabase.DefaultCfg.SkillConfig.GetSkillUpgradeSettingByQualityLevel(this.qualityLevel);
     if (((skillUpgradeSettingByQualityLevel != null) && (level >= 0)) && (level <= skillUpgradeSettingByQualityLevel.skillUpgrades.Count))
     {
         return(skillUpgradeSettingByQualityLevel.skillUpgrades[level - 1].upgrateExperiences);
     }
     return(0);
 }
Esempio n. 2
0
 public List <Cost> GetUpgrateCosts(int level)
 {
     SkillConfig.SkillUpgradeSetting skillUpgradeSettingByQualityLevel = ConfigDatabase.DefaultCfg.SkillConfig.GetSkillUpgradeSettingByQualityLevel(this.qualityLevel);
     if (((skillUpgradeSettingByQualityLevel != null) && (level >= 0)) && (level <= skillUpgradeSettingByQualityLevel.skillUpgrades.Count))
     {
         return(skillUpgradeSettingByQualityLevel.skillUpgrades[level - 1].upgrateCosts);
     }
     return(null);
 }