55 lines
1.3 KiB
C#
55 lines
1.3 KiB
C#
using ET;
|
|
using Sirenix.OdinInspector;
|
|
using System;
|
|
using UnityEngine;
|
|
#if UNITY_EDITOR
|
|
#endif
|
|
|
|
namespace Cal
|
|
{
|
|
[GUIColor(0.8f, 0.9f, 0.2f)]
|
|
[System.Serializable]
|
|
public class SkillOption_额外攻击目标 : SkillOptionBase
|
|
{
|
|
public override SkillOptionType optionType => SkillOptionType.额外攻击目标;
|
|
|
|
[BoxGroup("$optionType", CenterLabel = true)]
|
|
[LabelText("伤害系数")]
|
|
#if UNITY
|
|
[SerializeField]
|
|
#endif
|
|
public SkillParam valueParam;
|
|
|
|
[BoxGroup("$optionType", CenterLabel = true)]
|
|
[LabelText("是否随机数量")]
|
|
public bool isRndom;
|
|
|
|
[BoxGroup("$optionType", CenterLabel = true)]
|
|
[LabelText("最小额外攻击数")]
|
|
[ShowIf("isRndom")]
|
|
#if UNITY
|
|
[SerializeField]
|
|
#endif
|
|
public SkillParam minCount;
|
|
|
|
[BoxGroup("$optionType", CenterLabel = true)]
|
|
[LabelText("最大额外攻击数")]
|
|
#if UNITY
|
|
[SerializeField]
|
|
#endif
|
|
public SkillParam maxCount;
|
|
|
|
#if UNITY
|
|
public override void CheckData()
|
|
{
|
|
base.CheckData();
|
|
if (!isRndom)
|
|
{
|
|
minCount.skillSourcetype = SkillSourcetype.None;
|
|
minCount.values = null;
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
}
|