| | |
| | | { |
| | | var hurt = hB427_TagSCUseSkill.HurtList[i]; |
| | | totalSuckHp += hurt.SuckHP; |
| | | for (int k = 0; k < hurt.HurtListEx.Length; k++) |
| | | { |
| | | var hurtEx = hurt.HurtListEx[k]; |
| | | totalSuckHp += hurtEx.SuckHP; |
| | | } |
| | | } |
| | | for (int i = 0; i < hB427_TagSCUseSkill.HurtListEx.Length; i++) |
| | | { |
| | | var hurt = hB427_TagSCUseSkill.HurtListEx[i]; |
| | | totalSuckHp += hurt.SuckHP; |
| | | } |
| | | return totalSuckHp; |
| | | } |
| | |
| | | tempDropList.TryGetValue(objID, out BattleDrops battleDrops); |
| | | tempDeadPackList.TryGetValue(objID, out BattleDeadPack deadPack); |
| | | |
| | | bool clearSuckHp = tagUseSkillAttack.HurtList.ToList().IndexOf(hurt) != 0; |
| | | |
| | | // ============ 参数打包 ============ |
| | | BattleHurtParam hurtParam = BattleUtility.CalcBattleHurtParam(this, _hitIndex, target, hurt, battleDrops, deadPack); |
| | | |
| | | if (clearSuckHp) |
| | | { |
| | | hurtParam.caster.suckHpList.Clear(); |
| | | } |
| | | #if UNITY_EDITOR |
| | | PrintHurtParamDebugInfo(hurtParam); |
| | | #endif |
| | |
| | | /// </summary> |
| | | private Vector2 GetBeginPosition() |
| | | { |
| | | return runtimeBeginPos ?? config.beginPos; |
| | | Vector2 vector2 = runtimeBeginPos ?? config.beginPos; |
| | | return vector2;// + new Vector2(UnityEngine.Random.Range(-100, 100), UnityEngine.Random.Range(-100, 100)); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | private Vector2 GetEndPosition() |
| | | { |
| | | return runtimeEndPos ?? config.endPos; |
| | | Vector2 vector2 = runtimeEndPos ?? config.endPos; |
| | | return vector2;// + new Vector2(UnityEngine.Random.Range(-100, 100), UnityEngine.Random.Range(-100, 100)); |
| | | } |
| | | |
| | | /// <summary> |