예제 #1
0
        public float GetUptime(ItemInstance item)
        {
            float uptime = 0;

            if (item != null)
            {
                foreach (SpecialEffect effect in item.GetTotalStats().SpecialEffects())
                {
                    SetTriggerChanceAndSpeed(effect);
                    uptime = effect.GetAverageUptime(trigger, chance, unhastedAttackSpeed);
                }
            }
            return(uptime);
        }
예제 #2
0
 public float GetUptime(ItemInstance item)
 {
     float uptime = 0;
     if (item != null)
         foreach (SpecialEffect effect in item.GetTotalStats().SpecialEffects())
         {
             SetTriggerChanceAndSpeed(effect);
             uptime = effect.GetAverageUptime(trigger, chance, unhastedAttackSpeed);
         }
     return uptime;
 }