|
@@ -31,6 +31,7 @@ namespace GameLogic.Combat.Skill
|
|
|
/// 使用时候延长多长时间才能使用
|
|
|
/// </summary>
|
|
|
public float DelayUseSkillCd;
|
|
|
+
|
|
|
public int skillGuid;
|
|
|
public int UseCount;
|
|
|
|
|
@@ -71,9 +72,9 @@ namespace GameLogic.Combat.Skill
|
|
|
|
|
|
private CombatHeroEntity _combatHeroEntity;
|
|
|
|
|
|
- private Map<string, System.Action<string, CombatHeroHitPoint, ITimelineFxLogic, TriggerData,ISkillFeatures>>
|
|
|
+ private Map<string, System.Action<string, CombatHeroHitPoint, ITimelineFxLogic, TriggerData, ISkillFeatures>>
|
|
|
_triggerCallBack =
|
|
|
- new Map<string, Action<string, CombatHeroHitPoint, ITimelineFxLogic, TriggerData,ISkillFeatures>>();
|
|
|
+ new Map<string, Action<string, CombatHeroHitPoint, ITimelineFxLogic, TriggerData, ISkillFeatures>>();
|
|
|
|
|
|
public SkillConfig SelfSkillConfig;
|
|
|
|
|
@@ -141,9 +142,9 @@ namespace GameLogic.Combat.Skill
|
|
|
|
|
|
protected SkillInfo skillInfo;
|
|
|
|
|
|
- protected int ballisticsCount=1;
|
|
|
+ protected int ballisticsCount = 1;
|
|
|
+
|
|
|
|
|
|
-
|
|
|
public T This<T>()
|
|
|
{
|
|
|
return (T)(object)this;
|
|
@@ -175,8 +176,12 @@ namespace GameLogic.Combat.Skill
|
|
|
public SkillFeaturesData GetSkillFeaturesData()
|
|
|
{
|
|
|
SkillFeaturesData skillFeaturesData = SkillFeaturesData.CapyFeaturesData();
|
|
|
- skillFeaturesData.hp =
|
|
|
- (long)(skillFeaturesData.hp * CombatHeroEntity.CurrCombatHeroInfo.GetWuXingShuXing(wuXingType)/ballisticsCount);
|
|
|
+
|
|
|
+ long v = (long)(skillFeaturesData.hp * CombatHeroEntity.CurrCombatHeroInfo.GetWuXingShuXing(wuXingType));
|
|
|
+ v += CombatCalculateTool.Instance.GetVlaueRatioForLong(v,
|
|
|
+ CombatHeroEntity.CurrCombatHeroInfo.gongFaStrength);
|
|
|
+ skillFeaturesData.hp = v /
|
|
|
+ ballisticsCount;
|
|
|
skillFeaturesData.maxHp = skillFeaturesData.hp;
|
|
|
return skillFeaturesData;
|
|
|
}
|
|
@@ -249,7 +254,6 @@ namespace GameLogic.Combat.Skill
|
|
|
_isDis = false;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
|
|
|
/// <summary>
|
|
|
/// 开始游戏
|
|
@@ -328,19 +332,20 @@ namespace GameLogic.Combat.Skill
|
|
|
|
|
|
|
|
|
public HarmReturnInfo Harm(CombatHeroEntity source, CombatHeroHitPoint target, long att, AttType attType,
|
|
|
- TriggerData triggerData,ISkillFeatures skillFeatures, HarmType harmType = HarmType.Null)
|
|
|
+ TriggerData triggerData, ISkillFeatures skillFeatures, HarmType harmType = HarmType.Null)
|
|
|
{
|
|
|
if (target == null || target.combatHeroEntity == null)
|
|
|
{
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
- return CombatCalculateTool.Instance.Harm(source, target, att, attType, triggerData, wuXingType,skillFeatures,
|
|
|
+ return CombatCalculateTool.Instance.Harm(source, target, att, attType, triggerData, wuXingType,
|
|
|
+ skillFeatures,
|
|
|
harmType);
|
|
|
}
|
|
|
|
|
|
public HarmReturnInfo Recover(CombatHeroEntity source, CombatHeroHitPoint target, long att,
|
|
|
- AttType attType, HarmType harmType=HarmType.Recover)
|
|
|
+ AttType attType, HarmType harmType = HarmType.Recover)
|
|
|
{
|
|
|
return CombatCalculateTool.Instance.Recover(source, target, att, attType, harmType, triggerData);
|
|
|
}
|
|
@@ -395,9 +400,6 @@ namespace GameLogic.Combat.Skill
|
|
|
_combatHeroEntity = null;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
public SpecialDotInfo GetSpecialDotInfo(string specialDotName)
|
|
|
{
|
|
@@ -426,7 +428,7 @@ namespace GameLogic.Combat.Skill
|
|
|
/// <param name="groupName"></param>
|
|
|
/// <param name="callBack"></param>
|
|
|
protected void AddTriggerCallBack(string groupName,
|
|
|
- System.Action<string, CombatHeroHitPoint, ITimelineFxLogic, TriggerData,ISkillFeatures> callBack)
|
|
|
+ System.Action<string, CombatHeroHitPoint, ITimelineFxLogic, TriggerData, ISkillFeatures> callBack)
|
|
|
{
|
|
|
if (!_triggerCallBack.ContainsKey(groupName))
|
|
|
{
|
|
@@ -534,7 +536,7 @@ namespace GameLogic.Combat.Skill
|
|
|
/// <param name="time"></param>
|
|
|
public void CombatUpdate(float time)
|
|
|
{
|
|
|
- DelayUseSkillCd-=time;
|
|
|
+ DelayUseSkillCd -= time;
|
|
|
ProCombatUpdate(time);
|
|
|
}
|
|
|
|
|
@@ -577,7 +579,7 @@ namespace GameLogic.Combat.Skill
|
|
|
/// <param name="targetEntity">目标对象(敌人)</param>
|
|
|
/// <param name="triggerData">触发的额外数据——透传数据</param>
|
|
|
public void TimeLineTrigger(string groupName, ILifetCycleHitPoint targetEntity,
|
|
|
- ITimelineFxLogic timelineFxLogic, TriggerData triggerData,ISkillFeatures skillFeatures)
|
|
|
+ ITimelineFxLogic timelineFxLogic, TriggerData triggerData, ISkillFeatures skillFeatures)
|
|
|
{
|
|
|
if (targetEntity == null || _isDis)
|
|
|
{
|
|
@@ -588,13 +590,13 @@ namespace GameLogic.Combat.Skill
|
|
|
{
|
|
|
_triggerCallBack[groupName]?.Invoke(groupName,
|
|
|
targetEntity != null ? targetEntity.This<CombatHeroHitPoint>() : null, timelineFxLogic,
|
|
|
- triggerData,skillFeatures);
|
|
|
+ triggerData, skillFeatures);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
ProDefaultTimeLineTrigger(groupName,
|
|
|
targetEntity != null ? targetEntity.This<CombatHeroHitPoint>() : null, timelineFxLogic,
|
|
|
- triggerData,skillFeatures);
|
|
|
+ triggerData, skillFeatures);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -722,7 +724,7 @@ namespace GameLogic.Combat.Skill
|
|
|
/// <param name="targetEntity"></param>
|
|
|
/// <param name="triggerData"></param>
|
|
|
protected virtual void ProDefaultTimeLineTrigger(string groupName, CombatHeroHitPoint targetEntity,
|
|
|
- ITimelineFxLogic timelineFxLogic, TriggerData triggerData,ISkillFeatures skillFeatures)
|
|
|
+ ITimelineFxLogic timelineFxLogic, TriggerData triggerData, ISkillFeatures skillFeatures)
|
|
|
{
|
|
|
}
|
|
|
|