예제 #1
0
 public static double CalculateHitPoints(Attribute constitution,
                                         Attribute strength,
                                         Attribute willpower)
 {
     return ((constitution.Value * 0.5) + (strength.Value * 0.25) + (willpower.Value * 0.25)) * 10;
 }
예제 #2
0
 public static double CalculateMana(Attribute attunement,
                                    Attribute intelligence,
                                    Attribute willpower)
 {
     return ((attunement.Value * 0.5) + (intelligence.Value * 0.25) + (willpower.Value * 0.25)) * 10;
 }