public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { int score = (int)value; int mod = RuleBook.CalcModFromAbilityScore(score); return((mod >= 0 ? "+" : "") + mod.ToString()); }
private void UpdateHitPoints() { if (IsInitialized) { HPLabel.Content = RuleBook.CalculateHitPoints(Character); } }