/**
|
* 6.暴击伤害增加
|
* @Author: chenxin
|
* @Date: 2020-11-17 11:29:29
|
*/
|
namespace KTGMGemClient
|
{
|
public class CritDamageAdd : EndlessBuff
|
{
|
/// <summary>
|
/// 根据宝石id获得暴击增加的伤害比率(千分比)
|
/// </summary>
|
/// <param name="gemId"></param>
|
/// <returns></returns>
|
public float GetCritDamageRate(int gemId)
|
{
|
float ret = 0;
|
|
for (int i = 0; i < BuffList.Count; ++i)
|
{
|
if (!IsEffective(BuffList[i], gemId)) continue;
|
|
ret += BuffList[i].Config.buff_effect[1] / 1000f;
|
}
|
|
return ret;
|
}
|
}
|
}
|