wangguan
2020-12-22 3c54c3efb141adf11146eff7678e363f1be9cad3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
 * 12.增加水精灵冰冻小怪的概率
 * @Author: chenxin
 * @Date: 2020-12-05 16:26:20
 */
namespace KTGMGemClient
{
    public class FrostProbabilityAdd : EndlessBuff
    {
        /// <summary>
        /// 获得冰冻概率
        /// </summary>
        /// <param name="elfId">精灵id</param>
        /// <returns></returns>
        public float GetFrostProbaility(int elfId)
        {
            float ret = 0f;
 
            for (int i = 0; i < BuffList.Count; ++i)
            {
                if (!IsEffective(BuffList[i], elfId)) continue;
 
                ret += BuffList[i].Config.buff_effect[1] / 1000f;
            }
 
            return ret;
        }
    }
}