コード例 #1
0
ファイル: Helpers.cs プロジェクト: incandera/Janthus
 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
ファイル: Helpers.cs プロジェクト: incandera/Janthus
 public static double CalculateMana(Attribute attunement,
                                    Attribute intelligence,
                                    Attribute willpower)
 {
     return ((attunement.Value * 0.5) + (intelligence.Value * 0.25) + (willpower.Value * 0.25)) * 10;
 }