public void AddHitPoints(DieType hitDieType, CharacterCoreAttribute statisticSource, int additionalHitPoints, bool enforceMinimumGain = true) { if (enforceMinimumGain) { additionalHitPoints = Math.Min(hitDieType.GetMedianValue(), additionalHitPoints); } this.StatisticBase = this.StatisticBase + additionalHitPoints + statisticSource.StatisticValue; }
public CharacterSkill(string skillName, CharacterCoreAttribute backingAttribute) { this.SkillName = skillName; this.backingStatistic = backingAttribute; this.isCrossClass = true; this.SkillRank = 0; this.SkillPoints = 0; this.skillRankMaximum = 0; this.isSkillRankMaximized = false; }
public CharacterAttributeHitPoints(DieType hitDieType, CharacterCoreAttribute statisicSource) : base(CharacterAttributeName.HitPoints) { this.StatisticBase = hitDieType.GetMaxValue(); this.ModifyStatisticModifier(statisicSource.StatisticName, statisicSource.StatisticModifier); }
public CharacterAttributeHitPoints(DieType hitDieType, CharacterCoreAttribute statisticSource, int additionalHitpoints) : this(hitDieType, statisticSource) { this.StatisticBase += additionalHitpoints; }
public CharacterDerivedAttribute(string attributeName, CharacterCoreAttribute statisticSource, int additionalAttributePoints) : base(attributeName) { this.ModifyStatisticModifier(statisticSource.StatisticName, statisticSource.StatisticModifier); this.StatisticBase += additionalAttributePoints; }