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); }
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; }