예제 #1
0
 public BonusBuilder(TKind collection, string name, CharacterVariable newValue)
 {
     _collection      = collection;
     _workingVariable = newValue;
     _name            = name;
 }
예제 #2
0
 public BonusBuilder(TKind collection, string name)
 {
     _collection      = collection;
     _workingVariable = collection.GetVariable(name);
     _name            = name;
 }
예제 #3
0
 public CharacterData(Fungus.Character v)
 {
     characterVal = v;
     characterRef = null;
 }
예제 #4
0
 public ComputedValue(string type, CharacterVariable source) : this(type, source, null)
 {
 }
예제 #5
0
 public ComputedValue(string type, CharacterVariable source, ComputeValue?computation)
 {
     Type        = type;
     Source      = source;
     Computation = computation;
 }
예제 #6
0
 public static int AbilityScoreModifier(CharacterVariable abilityScore) => abilityScore.Value / 2 - 5;