Пример #1
0
 protected override void InitializeCharacter(Character character)
 {
     foreach (string abilityScore in s_abilityScores)
     {
         character.ModifyVariable(abilityScore).Add(10);
         character.ModifyVariable(abilityScore + "Mod")
         .AddReference(abilityScore, BonusComputation.AbilityScoreModifier);
         character.ModifyVariable(abilityScore + "Bonus")
         .AddReference(abilityScore + "Mod", BonusComputation.WithMin(0));
     }
 }
Пример #2
0
 protected override Character InitializeCharacter(Character character)
 {
     character = character.WithName("Sir Testy McTestington");
     character = character.ModifyVariable("StrMod").AddReference("Str", BonusComputation.AbilityScoreModifier).Build();
     character = character.ModifyVariable("StrBonus").AddReference("StrMod", BonusComputation.WithMin(0)).Build();
     return(character);
 }
Пример #3
0
 protected override void InitializeCharacter(Character character)
 {
     character.Name = "Sir Testy McTestington";
     character.ModifyVariable("StrMod").AddReference("Str", BonusComputation.AbilityScoreModifier);
     character.ModifyVariable("StrBonus").AddReference("StrMod", BonusComputation.WithMin(0));
 }