//public int? GetBaseAttackForAttack(int getAttacksTaken) //{ // var baseAttack = GetBaseAttack(); // var babForAttack = baseAttack.ElementAtOrDefault(getAttacksTaken); // var babBonusesList = Tools.GetBonusesApplyingTo(Configuration.BabId, BonusApplyToType.BaseAttack, _bonusDto.Bonuses); // var babBonus = babBonusesList.MaxBonuesSum(_bonusDto); // return babForAttack - babBonus; //} #region Description public string GetClassesAndLevelString() { if (CurrentClasses == null || CurrentClasses.Count == 0) { return(""); } return(string.Join(" ,", CurrentClasses.Select(x => x.Class.Name + "/" + x.Level).ToArray())); }
public string GetBaseAttackCalculationString() { return(CurrentClasses.Select(x => x.GetBaseAttackBonus() + "(" + x.Class.Name + ")").ToList().Aggregate((current, next) => current + " + " + next)); }