| 123456789101112131415161718192021222324252627282930313233343536 | using GameLogic.Combat.CombatTool;using GameLogic.Player;using UnityEngine;namespace GameLogic.Combat.Buff{    /// <summary>    /// 3、毒:每层毒对敌人每秒照成1%伤害,10层毒后毒气会入侵五脏对敌人对敌人施加噬魂    /// </summary>    public class b_1003 : BuffBasic    {        private float _time;        protected override void ProUpdate(float t)        {            _time += t;            if (_time >= 1)            {                _time -= 1;                float harmbl = buffCount * buffInf.BuffConfig.effectValue[0];                long harm = CombatCalculateTool.Instance.GetVlaueRatioForLong(                    source.CurrCombatHeroInfo.attack.Value, harmbl);                CombatCalculateTool.Instance.Harm(source, combatHeroEntity, harm, AttType.Buff, _triggerData,                    WuXingType.Null);            }        }        protected override void ProUpdateEffect()        {            if (buffCount >= 10)            {                Debug.Log("添加噬魂");            }        }    }}
 |