Files
MinFt/Client/Assets/Scripts/GampPlay/FishSkill/SuperDashSpSkillData.cs
2026-04-27 12:07:32 +08:00

63 lines
1.9 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using cfg;
/// <summary>
/// 超级冲刺支持Dash
/// </summary>
public class SuperDashSpSkillData : FishSpSkillData<SuperDash>
{
/// <summary>
/// 冲刺时z轴的初始随机范围
/// </summary>
public System.Collections.Generic.List<float> PosZInit { get; private set; }
/// <summary>
/// z轴随机范围的变化值最小值 += 参数 * 累积冲刺次数,最大值 -= 参数 * 累积冲刺次数
/// </summary>
public float PosZChange { get; private set; }
/// <summary>
/// 冲刺速度的变化值,蓄力速度 *= 参数 * 累积冲刺次数
/// </summary>
public float DashSpeedChange { get; private set; }
/// <summary>
/// 累积冲刺次数上限每次冲刺一次后加1
/// </summary>
public int ChangeMaxCount { get; private set; }
/// <summary>
/// 重新释放技能后,累积冲刺次数 += 参数不能超过上限也不能小于0
/// </summary>
public int NewSkillCountOffset { get; private set; }
public int StrengthChange => spSkill.StrengthChange;
public int ChargeCount { get; private set; }
public override string DashWaterFx(){
return spSkill.DashWaterFx;
}
public override string FxDash()
{
return spSkill.DashFx;
}
public void AddChargeCount(int offset = 1)
{
if (ChargeCount < ChangeMaxCount)
{
ChargeCount += offset;
}
}
public float GetDashPrepareTime(int index)
{
if (index >= spSkill.DashPrepareTime.Count)
{
return 0;
}
return spSkill.DashPrepareTime[index];
}
protected override void RefreshSkill()
{
PosZInit = spSkill.PosZInit;
PosZChange = spSkill.PosZChange;
DashSpeedChange = spSkill.DashSpeedChange;
ChangeMaxCount = spSkill.ChangeMaxCount;
NewSkillCountOffset = spSkill.NewSkillCountOffset;
}
}