示例#1
0
文件: Player.cs 项目: Marosa/Calc
 public double hasteToGCD(Spell spell)
 {
     return (32.79 * 100) * ((spell.baseCasttime / 1) - 1);
 }
示例#2
0
 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;
 }