/**
|
* 11.减少木属性强化子弹的蓄力时间
|
* @Author: chenxin
|
* @Date: 2020-11-24 15:14:00
|
*/
|
namespace KTGMGemClient
|
{
|
public class DecreaseWoodChargeTime : EndlessBuff
|
{
|
/// <summary>
|
/// 获取木属性强化子弹的蓄力时间,计算buff加成
|
/// </summary>
|
/// <param name="preTime"></param>
|
public float GetWoodChargeTime(float preTime)
|
{
|
float ret = preTime;
|
|
for (int i = 0; i < BuffList.Count; ++i)
|
{
|
ret -= BuffList[i].Config.buff_effect[1];
|
|
if (ret < BuffList[i].Config.buff_effect[2])
|
{
|
ret = BuffList[i].Config.buff_effect[2];
|
break;
|
}
|
}
|
|
return ret;
|
}
|
}
|
}
|