コード例 #1
0
ファイル: Player.cs プロジェクト: Marosa/Calc
 public double hasteToGCD(Spell spell)
 {
     return (32.79 * 100) * ((spell.baseCasttime / 1) - 1);
 }
コード例 #2
0
ファイル: Scene.cs プロジェクト: secondage/projXdemo_wp7
 public void AddSpell(Spell ch)
 {
     spells.Add(ch);
 }
コード例 #3
0
ファイル: Player.cs プロジェクト: Marosa/Calc
 public double getEffectiveHastePercentageForSpell(List<HasteBuff> hasteBuffList, HasteBuff current, Spell spell)
 {
     double maxPercentage = hasteToGCD(spell);
     double totalPercentage = 0;
     foreach (HasteBuff hastebuff in hasteBuffList)
     {
         totalPercentage += hastebuff.percentage;
     }
     if (maxPercentage > totalPercentage)
         return current.percentage;
     else
         return (maxPercentage / totalPercentage) * current.percentage;
 }