public static int ProficientSkillScoreGet(this ClassModel cls, ProficiencyModel prof) { var abilityMod = cls.AbilityModifierGet(prof.Ability); var proficiencyMod = LevelConstants.ProficiencyBonus(cls.Level); return abilityMod + proficiencyMod; }
public static int HitPointsAverageGet(this ClassModel cls) { // parsing will round it down, so we add one per level to round back up again var diceAverageFudge = (int)((cls.HitDieType / 2) + 1) * cls.Level; var conBonus = cls.Level * cls.AbilityModifierGet(Abilities.Constitution); return diceAverageFudge + conBonus; }
public static int HitPointsMaxGet(this ClassModel cls) { return (cls.HitDieType + cls.AbilityModifierGet(Abilities.Constitution)) * cls.Level; }
public static string AbilityModStringGet(this ClassModel cls, Abilities ability) { return cls.AbilityModifierGet(ability).AbilityModStringGet(); }